PcapPacketUtils.java: change implementation of getSourceIp(PcapPacket) to throw a...
authorJanus Varmarken <varmarken@gmail.com>
Fri, 21 Sep 2018 23:00:48 +0000 (16:00 -0700)
committerJanus Varmarken <varmarken@gmail.com>
Sat, 22 Sep 2018 00:34:58 +0000 (17:34 -0700)
commit579e5f9d8af276e0e62e0ee39d104e048a4eb6ec
treeae9409757ed02bb9012b021bcbbca71e521e849d
parentd1d08c6c615098b31c54cc4a3cac38d795587d00
PcapPacketUtils.java: change implementation of getSourceIp(PcapPacket) to throw a NullPointerException instead of returning null if the provided packet does not contain an IpV4Packet; add implementations of getDestinationIp(PcapPacket), isSrcIpLocal(PcapPacket), isDstIpLocal(PcapPacket), getIpV4PacketOrThrow(PcapPacket).
Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/util/PcapPacketUtils.java