lladdr == src in this context
This commit is contained in:
parent
a139ad6e83
commit
481675372d
1 changed files with 2 additions and 1 deletions
|
@ -235,7 +235,7 @@ class L2Controller(object):
|
||||||
|
|
||||||
# Both ways should work
|
# Both ways should work
|
||||||
dst_mac = pkg[Ether].src
|
dst_mac = pkg[Ether].src
|
||||||
dst_mac = pkg[ICMPv6NDOptSrcLLAddr].src
|
dst_mac = pkg[ICMPv6NDOptSrcLLAddr].lladdr
|
||||||
src_mac = self.info['mac_address']
|
src_mac = self.info['mac_address']
|
||||||
|
|
||||||
dst_addr = pkg[IPv6].src
|
dst_addr = pkg[IPv6].src
|
||||||
|
@ -249,6 +249,7 @@ class L2Controller(object):
|
||||||
i2 = ICMPv6ND_NA(S=1, tgt=src_addr)
|
i2 = ICMPv6ND_NA(S=1, tgt=src_addr)
|
||||||
i3 = ICMPv6NDOptSrcLLAddr(lladdr=src_mac)
|
i3 = ICMPv6NDOptSrcLLAddr(lladdr=src_mac)
|
||||||
|
|
||||||
|
self.debug_print_pkg(answer, "OUTGOING")
|
||||||
answer = e / i / i2 / i3
|
answer = e / i / i2 / i3
|
||||||
|
|
||||||
sendp(answer, iface=self.intf, verbose=False)
|
sendp(answer, iface=self.intf, verbose=False)
|
||||||
|
|
Loading…
Reference in a new issue