Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174917954
D60348.id188654.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
D60348.id188654.diff
View Options
Index: sys/netinet6/ndp.sh
===================================================================
--- sys/netinet6/ndp.sh
+++ sys/netinet6/ndp.sh
@@ -85,17 +85,21 @@
vnet_mkjail ${jname} ${epair0}a
- jexec ${jname} ndp -i ${epair0}a -- -disabled
- jexec ${jname} ifconfig ${epair0}a up
+ ndp_if_up ${epair0}a ${jname}
+ ndp_if_up ${epair0}b
jexec ${jname} ifconfig ${epair0}a inet6 2001:db8::1/64
+ ifconfig ${epair0}b inet6 2001:db8::2/64
# wait for DAD to complete
- while [ `jexec ${jname} ifconfig | grep inet6 | grep -c tentative` != "0" ]; do
+ while jexec ${jname} ifconfig ${epair0}a inet6 | grep -q tentative ||
+ ifconfig ${epair0}b inet6 | grep -q tentative; do
sleep 0.1
done
- jexec ${jname} ping -c1 -t1 2001:db8::2
+ # A reachable peer keeps the entry alive; an unanswered solicitation
+ # would expire it after nd6_mmaxtries retransmissions (about 3s).
+ atf_check -o ignore jexec ${jname} ping -c1 -t5 2001:db8::2
atf_check -o match:"2001:db8::2 \(2001:db8::2\) deleted" jexec ${jname} ndp -nd 2001:db8::2
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 7, 11:23 PM (5 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40266124
Default Alt Text
D60348.id188654.diff (1 KB)
Attached To
Mode
D60348: tests/netinet6: fix ndp_del_gu_success flakiness
Attached
Detach File
Event Timeline
Log In to Comment