Try deleting all chksums

This commit is contained in:
Nico Schottelius 2019-03-05 21:37:38 +01:00
parent 12097d0085
commit 7d53abef6d
1 changed files with 8 additions and 1 deletions

View File

@ -250,8 +250,15 @@ class L2Controller(object):
answer = e / i / i2 / i3
# try 4
for l in [Ether, IPv6, ICMPv6ND_NA, ICMPv6NDOptDstLLAddr]:
try:
del answer[l].chksum
except AttributeError:
pass
# Let scapy recalc checksum (try3)
answer = answer.__class__(str(answer))
# answer = answer.__class__(str(answer))
self.send_pkg(answer)