++ unchecked checksums
This commit is contained in:
parent
e4dd6eee93
commit
12097d0085
2 changed files with 9 additions and 4 deletions
|
|
@ -248,10 +248,11 @@ class L2Controller(object):
|
|||
i2 = ICMPv6ND_NA(S=1, R=0, tgt=src_addr)
|
||||
i3 = ICMPv6NDOptDstLLAddr(lladdr=src_mac)
|
||||
|
||||
# Force scapy to recalculate ??
|
||||
i.chksum = None
|
||||
|
||||
answer = e / i / i2 / i3
|
||||
|
||||
# Let scapy recalc checksum (try3)
|
||||
answer = answer.__class__(str(answer))
|
||||
|
||||
self.send_pkg(answer)
|
||||
|
||||
def send_pkg(self, pkg):
|
||||
|
|
@ -283,7 +284,6 @@ class L2Controller(object):
|
|||
elif cpu_header.task == self.task['ICMP6_GENERAL']:
|
||||
log.info("Replying to ICMP packet")
|
||||
|
||||
|
||||
else:
|
||||
print("Broken pkg: {}".format(pkg.__repr__()))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue