Checksum in scapy: none = recalc
This commit is contained in:
parent
23fa17d01d
commit
ec8d8abff4
1 changed files with 5 additions and 0 deletions
|
@ -246,8 +246,13 @@ class L2Controller(object):
|
|||
|
||||
# S=1 -> solicitated
|
||||
i2 = ICMPv6ND_NA(S=1, tgt=src_addr)
|
||||
|
||||
# Force scapy to recalculate
|
||||
i2.chksum = None
|
||||
|
||||
i3 = ICMPv6NDOptSrcLLAddr(lladdr=src_mac)
|
||||
|
||||
|
||||
answer = e / i / i2 / i3
|
||||
self.send_pkg(answer)
|
||||
|
||||
|
|
Loading…
Reference in a new issue