From e090646d6f5a4a6848ecd4bcb1f2db498ea3b3e2 Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 29 Nov 2024 16:55:24 +0000 Subject: [PATCH] ndp tests: Update to chase commit 9206c79961986 "netstat -rn" no longer prints the default route using symbol names, but the test relied on it. Update it to look for ::/0 instead. MFC after: 1 week Fixes: 9206c7996198 ("usr.bin/netstat: -n should not print symbolic names") --- tests/sys/netinet6/ndp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/sys/netinet6/ndp.sh b/tests/sys/netinet6/ndp.sh index 038a640f331e..24c0853d7361 100755 --- a/tests/sys/netinet6/ndp.sh +++ b/tests/sys/netinet6/ndp.sh @@ -163,12 +163,12 @@ ndp_slaac_default_route_body() { while [ -z "$(jexec ${jname} ndp -r)" ]; do sleep 0.1 done - atf_check -o match:"^default[[:space:]]+fe80:" \ + atf_check -o match:"^::/0[[:space:]]+fe80:" \ jexec ${jname} netstat -rn -6 # Get rid of the default route. jexec ${jname} route -6 flush - atf_check -o not-match:"^default[[:space:]]+fe80:" \ + atf_check -o not-match:"^::/0[[:space:]]+fe80:" \ jexec ${jname} netstat -rn -6 # Send another RA, make sure that the default route is installed again. @@ -180,7 +180,7 @@ ndp_slaac_default_route_body() { while [ -z "$(jexec ${jname} ndp -r)" ]; do sleep 0.1 done - atf_check -o match:"^default[[:space:]]+fe80:" \ + atf_check -o match:"^::/0[[:space:]]+fe80:" \ jexec ${jname} netstat -rn -6 }