// Make sure the PacketIn is due to our Classification table pktInAction
if(!this.flowProgrammer.compareClassificationTableCookie(packetIn.getFlowCookie())) {
- LOG.info("SfcIpv4PacketInHandler discarding packet by Flow Cookie");
+ LOG.debug("SfcIpv4PacketInHandler discarding packet by Flow Cookie");
return;
}
// Get the EtherType and check that its an IP packet
if(getEtherType(rawPacket) != ETHERTYPE_IPV4) {
- LOG.info("SfcIpv4PacketInHandler discarding NON-IPv4");
+ LOG.debug("SfcIpv4PacketInHandler discarding NON-IPv4");
return;
}
}
// Get the metadata
+ if(packetIn.getMatch() == null) {
+ LOG.error("SfcIpv4PacketInHandler Cant get packet flow match");
+ return;
+ }
+ if(packetIn.getMatch().getMetadata() == null) {
+ LOG.error("SfcIpv4PacketInHandler Cant get packet flow match metadata");
+ return;
+ }
+
Metadata pktMatchMetadata = packetIn.getMatch().getMetadata();
BigInteger metadata = pktMatchMetadata.getMetadata();