Debug send ipv4 packets to controller

This commit is contained in:
Nico Schottelius 2019-03-25 13:09:29 +01:00
commit 236bd8e7d6
3 changed files with 9 additions and 8 deletions

View file

@ -421,12 +421,12 @@ class L2Controller(object):
def recv_msg_cpu(self, pkg):
packet = Ether(str(pkg))
# self.debug_print_pkg(pkg)
if packet.type == 0x0800:
pass
elif packet.type == 0x86dd:
pass
self.debug_print_pkg(pkg)
elif packet.type == 0x4242:
cpu_header = CpuHeader(packet.payload)