From 46b0f16f0ddc48e4c5909eeb8b5b9b8d7c05efb4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 4 Mar 2019 16:40:05 +0100 Subject: [PATCH] ++debug --- p4app/controller.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/p4app/controller.py b/p4app/controller.py index e1b5f24..3d1b1f2 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -233,15 +233,10 @@ class L2Controller(object): elif packet.type == 0x86dd: pass elif packet.type == 0x4242: + print("Special handling needed") cpu_header = CpuHeader(packet.payload) - original_pkg = pkg[0:111] - - pass - elif packet.type == 0x2323: - # Set back (incorrectly maybe) to IPv6 - packet.type = 0x86dd - print("Debug pkg: ".format(packet)) - + print("cpu = {}".format(cpu_header.__repr__())) + print("orig = {}".format(pkg)) else: print("Broken pkg: {}".format(pkg.__repr__())) return