Include correct offset AND debug info
This commit is contained in:
parent
766dbba5c3
commit
59655e0d32
2 changed files with 10 additions and 4 deletions
|
@ -257,7 +257,13 @@ class L2Controller(object):
|
|||
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:])
|
||||
#orig_packet = ether_orig / IPv6(packet.load[shift_by:])
|
||||
|
||||
for i in range(1,10):
|
||||
try:
|
||||
orig_packet = ether_orig / IPv6(packet.load[i:])
|
||||
except Except
|
||||
|
||||
log.debug("o={}".format(orig_packet.__repr__()))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue