use header type from switch
This commit is contained in:
parent
60a3c8d8c5
commit
e2b382119a
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue