Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163978914
D56712.id177163.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56712.id177163.diff
View Options
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,18 @@
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
+
+ # Ensure that route1's and route2's expiration times are correct
+ # respectively (i.e. they do not get swapped)
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 -I% test 601 -le % -a % -le 1800
+ atf_check -s exit:0 \
+ grep "^${route2}/48[[:space:]]+${lladdr}" netstat_out | cut -wf5 | \
+ xargs -I% test % -le 600
# Verify the default route lifetime and its preference is overwrited
atf_check -s exit:0 \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 28, 3:20 PM (12 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32704691
Default Alt Text
D56712.id177163.diff (1 KB)
Attached To
Mode
D56712: tests/ndp: fix ndp_routeinfo_option testcase flakiness
Attached
Detach File
Event Timeline
Log In to Comment