++
This commit is contained in:
parent
7338580517
commit
766dbba5c3
1 changed files with 2 additions and 2 deletions
|
@ -252,9 +252,9 @@ class L2Controller(object):
|
||||||
for field in CpuHeader.fields_desc:
|
for field in CpuHeader.fields_desc:
|
||||||
sz += field.sz
|
sz += field.sz
|
||||||
|
|
||||||
shift_by = (sz*8) -1
|
shift_by = sz -1
|
||||||
|
|
||||||
log.debug("Len of cpu= {}, {}, shift={}".format(sz, shift_by))
|
log.debug("Len of cpu= {}, shift={}".format(sz, shift_by))
|
||||||
|
|
||||||
ether_orig = Ether(src=packet.src, dst=packet.dst, type=0x86dd)
|
ether_orig = Ether(src=packet.src, dst=packet.dst, type=0x86dd)
|
||||||
orig_packet = ether_orig / IPv6(packet.load[shift_by:])
|
orig_packet = ether_orig / IPv6(packet.load[shift_by:])
|
||||||
|
|
Loading…
Reference in a new issue