use header type from switch

This commit is contained in:
Nico Schottelius 2019-03-04 18:07:00 +01:00
parent 60a3c8d8c5
commit e2b382119a
1 changed files with 2 additions and 2 deletions

View File

@ -244,8 +244,8 @@ class L2Controller(object):
print("cpu = {} {}".format(cpu_header.__repr__(), len(cpu_header)))
ether_part = pkg[Ether]
# read from cpu header
ether_part.type = 0x86dd
ether_part.type = cpu_header.type
ether_orig = Ether(src=packet.src, dst=packet.dst, type=0x86dd)