From e1146070c4746fded727b440fad5a8db60fad578 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 25 Mar 2019 13:14:29 +0100 Subject: [PATCH] IP should be IPv4, but isn't --- p4app/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 31916ce..428d2b0 100755 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -431,7 +431,7 @@ class L2Controller(object): self.debug_print_pkg(pkg) cpu_header = CpuHeader(packet.payload) ether_orig = Ether(src=packet.src, dst=packet.dst, type=cpu_header.type) - orig_packet = ether_orig / IPv4(cpu_header.load) + orig_packet = ether_orig / IP(cpu_header.load) log.debug("v4 reassambled={}".format(orig_packet.__repr__())) elif packet.type == 0x4242: