mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 05:53:36 +01:00
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:
parent
7cd756ff4f
commit
e090646d6f
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user