This commit is contained in:
Nico Schottelius 2019-03-04 18:41:10 +01:00
parent 7338580517
commit 766dbba5c3
1 changed files with 2 additions and 2 deletions

View File

@ -252,9 +252,9 @@ class L2Controller(object):
for field in CpuHeader.fields_desc:
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)
orig_packet = ether_orig / IPv6(packet.load[shift_by:])