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__()))
|
||||
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@ const bit<8> ICMP6_NS = 135;
|
|||
const bit<8> ICMP6_NA = 136;
|
||||
|
||||
|
||||
const task_t TASK_ICMP6_NS = 1;
|
||||
const task_t TASK_ICMP6_GENERAL = 2;
|
||||
const task_t TASK_DEBUG = 3;
|
||||
const task_t TASK_ICMP6_NS = 1;
|
||||
const task_t TASK_ICMP6_GENERAL = 2;
|
||||
const task_t TASK_DEBUG = 3;
|
||||
|
||||
|
||||
header ethernet_t {
|
||||
|
|
Loading…
Reference in a new issue