ndp tests: Update to chase commit 9206c79961

"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:	9206c79961 ("usr.bin/netstat: -n should not print symbolic names")
This commit is contained in:
Mark Johnston 2024-11-29 16:55:24 +00:00
parent 7cd756ff4f
commit e090646d6f

View File

@ -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
}