summaryrefslogtreecommitdiffstats
path: root/test/test_nat64.py
diff options
context:
space:
mode:
authorOle Troan <otroan@employees.org>2023-10-13 09:19:45 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2023-10-16 14:48:46 +0000
commitdbeb56d2dab0a5c86b4b61b5dccdcb997cdaef1f (patch)
tree52bd509f77f23975a2de6a7c12cc07b8f611059a /test/test_nat64.py
parentf68afe85a6e4d5e00fdad1af19a76eb40fdfa388 (diff)
ip-neighbor: do not use sas to determine NS source address
Using the source address selection algorithm to determine the best source of an NS for address resolution risks incompatible behavior. It may choose a source address that is off-link to the other host. Which may drop it. A safer approach is to always use the link-local address as the SA. It's recommended to pick a source that an application will later use, as VPP is mostly a router, that rarely applies. And regardlessly we have no mechanism to signal from an application that triggered address resolutiuon what source address it intends to use. Type: fix Change-Id: I3c5de66e41505f3682767706ef1195a20e4f0e54 Signed-off-by: Ole Troan <otroan@employees.org>
Diffstat (limited to 'test/test_nat64.py')
-rw-r--r--test/test_nat64.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_nat64.py b/test/test_nat64.py
index 4ae9f6614dd..5c0fe733c96 100644
--- a/test/test_nat64.py
+++ b/test/test_nat64.py
@@ -651,7 +651,7 @@ class TestNAT64(VppTestCase):
capture = self.pg5.get_capture(len(pkts))
packet = capture[0]
try:
- self.assertEqual(packet[IPv6].src, self.pg5.local_ip6)
+ self.assertEqual(packet[IPv6].src, self.pg5.local_ip6_ll)
self.assertEqual(packet.haslayer(ICMPv6ND_NS), 1)
tgt = packet[ICMPv6ND_NS].tgt
except: