Page MenuHomeFreeBSD

D56712.id176816.diff
No OneTemporary

D56712.id176816.diff

diff --git a/tests/sys/netinet6/ndp.sh b/tests/sys/netinet6/ndp.sh
--- a/tests/sys/netinet6/ndp.sh
+++ b/tests/sys/netinet6/ndp.sh
@@ -834,11 +834,15 @@
done
# Make sure routes from rti option are being installed
+ atf_check -s exit:0 -o save:netstat_out netstat -j ${jname} -rn6
+ atf_check -s exit:0 -o match:"^default[[:space:]]+${lladdr}" \
+ cat netstat_out
atf_check -s exit:0 \
- -o match:"^${route1}/32[[:space:]]+${lladdr}.*1800" \
- -o match:"^${route2}/48[[:space:]]+${lladdr}.*600" \
- -o match:"^default[[:space:]]+${lladdr}" \
- jexec ${jname} netstat -rn6
+ grep "^${route1}/32[[:space:]]+${lladdr}" netstat_out | cut -wf5 | \
+ xargs -L1 test 1800 -ge
+ atf_check -s exit:0 \
+ grep "^${route2}/48[[:space:]]+${lladdr}" netstat_out | cut -wf5 | \
+ xargs -L1 test 600 -ge
# Verify the default route lifetime and its preference is overwrited
atf_check -s exit:0 \

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 3, 2:31 PM (9 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38120889
Default Alt Text
D56712.id176816.diff (903 B)

Event Timeline