git: ee8cb6ab6741 - main - tests/netinet6: Turn off stable addresses in ndp_prefix_len_mismatch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Oct 2026 13:27:32 UTC
The branch main has been updated by rcm:
URL: https://cgit.FreeBSD.org/src/commit/?id=ee8cb6ab6741014218a9157d316e1a675390edc4
commit ee8cb6ab6741014218a9157d316e1a675390edc4
Author: R. Christian McDonald <rcm@FreeBSD.org>
AuthorDate: 2026-10-13 13:15:10 +0000
Commit: R. Christian McDonald <rcm@FreeBSD.org>
CommitDate: 2026-10-13 13:27:28 +0000
tests/netinet6: Turn off stable addresses in ndp_prefix_len_mismatch
ndp_prefix_len_mismatch exercises the fallback in in6_ifadd() for an
interface whose link-local address does not have the advertised prefix
length (9e792f7ef729). Since a2eb0894b79b made stable addresses
(RFC 7217) the default, in6_ifadd() takes the interface identifier from
in6_get_stableifid() and never looks at the link-local address, so the
case passes without reaching the fallback. Turn stable addresses off
on the interface.
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
tests/sys/netinet6/ndp.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/sys/netinet6/ndp.sh b/tests/sys/netinet6/ndp.sh
index 61945ec3c354..d70258bb3925 100755
--- a/tests/sys/netinet6/ndp.sh
+++ b/tests/sys/netinet6/ndp.sh
@@ -213,6 +213,8 @@ ndp_prefix_len_mismatch_body() {
jexec alcatraz ifconfig ${epair}a inet6 -auto_linklocal
jexec alcatraz ifconfig ${epair}a inet6 -ifdisabled
jexec alcatraz ifconfig ${epair}a inet6 accept_rtadv
+ # Stable addresses (RFC 7217) do not use the link-local address.
+ jexec alcatraz ifconfig ${epair}a inet6 -stableaddr
jexec alcatraz ifconfig ${epair}a inet6 fe80::5a9c:fcff:fe10:5d07/127
jexec alcatraz ifconfig ${epair}a up