From 481675372df284d56f2c6c17b2768df39862f7ad Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 5 Mar 2019 17:01:21 +0100 Subject: [PATCH] lladdr == src in this context --- p4app/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 2ce7ae9..3602960 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -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)