lladdr == src in this context

This commit is contained in:
Nico Schottelius 2019-03-05 17:01:21 +01:00
parent a139ad6e83
commit 481675372d
1 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class L2Controller(object):
# Both ways should work
dst_mac = pkg[Ether].src
dst_mac = pkg[ICMPv6NDOptSrcLLAddr].src
dst_mac = pkg[ICMPv6NDOptSrcLLAddr].lladdr
src_mac = self.info['mac_address']
dst_addr = pkg[IPv6].src
@ -249,6 +249,7 @@ class L2Controller(object):
i2 = ICMPv6ND_NA(S=1, tgt=src_addr)
i3 = ICMPv6NDOptSrcLLAddr(lladdr=src_mac)
self.debug_print_pkg(answer, "OUTGOING")
answer = e / i / i2 / i3
sendp(answer, iface=self.intf, verbose=False)