Lines Matching +full:up +full:- +full:to
12 # substantially similar to the "NO WARRANTY" disclaimer below
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
23 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
43 # Configure the lagg interface to use an RFC5737 nonrouteable addresses
52 ifconfig $TAP0 up
53 ifconfig $TAP1 up
54 atf_check ifconfig $LAGG up laggport $TAP0 laggport $TAP1 \
56 atf_check -o match:"inet ${ADDR}" ifconfig $LAGG
57 atf_check -o match:"laggport: ${TAP0}" ifconfig $LAGG
58 atf_check -o match:"laggport: ${TAP1}" ifconfig $LAGG
62 atf_check -o match:"ether ${MAC}" ifconfig $TAP0
63 atf_check -o match:"ether ${MAC}" ifconfig $TAP1
65 # Check that no members have an IPv6 link-local address. IPv6
66 # link-local addresses should never be merged in any way to prevent
68 atf_check -o not-match:"inet6 fe80:" ifconfig $TAP0
69 atf_check -o not-match:"inet6 fe80:" ifconfig $TAP1
86 # Configure the lagg interface to use an RFC5737 nonrouteable addresses
96 # Up the lagg's children
97 ifconfig $TAP0 inet6 ifdisabled up
98 ifconfig $TAP1 inet6 ifdisabled up
99 ifconfig $TAP2 inet6 ifdisabled up
100 ifconfig $TAP3 inet6 ifdisabled up
107 ifconfig $LAGG up laggport $TAP0 laggport $TAP1 laggport $TAP2\
109 echo -n . >> creator_count.txt
115 ifconfig -am 2> /dev/null > /dev/null
116 echo -n . >> querier_count.txt
123 echo "Created the lagg `stat -f %z creator_count.txt` times."
124 echo "Queried its status `stat -f %z querier_count.txt` times"
147 # Up the lagg's children
148 ifconfig $TAP0 inet6 ifdisabled up
149 ifconfig $TAP1 inet6 ifdisabled up
150 ifconfig $TAP2 inet6 ifdisabled up
151 ifconfig $TAP3 inet6 ifdisabled up
156 echo -n . >> creator_count.txt
163 echo -n . >> destroyer_count.txt
170 echo "Created the lagg `stat -f %z creator_count.txt` times."
171 echo "Destroyed it `stat -f %z destroyer_count.txt` times."
178 # This test regresses a panic that is particular to LACP. If the child's link
180 # use-after-free. The problem is compounded by two factors:
199 # Configure the lagg interface to use an RFC5737 nonrouteable addresses
202 # ifconfig takes about 10ms to run. To increase race coverage,
203 # randomly delay the two commands relative to each other by 5ms either
212 # Up the lagg's children
213 ifconfig $TAP0 inet6 ifdisabled up
214 ifconfig $TAP1 inet6 ifdisabled up
219 # We must open the tap devices to change their link states
224 ifconfig $LAGG up laggport $TAP0 laggport $TAP1 \
229 echo -n . >> linkstate_count.txt ; } &
232 echo -n . >> destroy_count.txt ; } &
240 echo "Disconnected the children `stat -f %z linkstate_count.txt` times."
241 echo "Destroyed the lagg `stat -f %z destroy_count.txt` times."
251 atf_set "descr" "Simultaneously up and destroy a lagg"
258 # Configure the lagg interface to use an RFC5737 nonrouteable addresses
261 # ifconfig takes about 10ms to run. To increase race coverage,
262 # randomly delay the two commands relative to each other by 5ms either
273 # Up the lagg's children
274 ifconfig $TAP0 inet6 ifdisabled up
275 ifconfig $TAP1 inet6 ifdisabled up
276 ifconfig $TAP2 inet6 ifdisabled up
277 ifconfig $TAP3 inet6 ifdisabled up
283 ifconfig $LAGG up laggport $TAP0 laggport $TAP1 \
286 echo -n . >> up_count.txt ; } &
289 echo -n . >> destroy_count.txt ; } &
297 echo "Upped the lagg `stat -f %z up_count.txt` times."
298 echo "Destroyed it `stat -f %z destroy_count.txt` times."
315 # Configure the lagg interface to use an RFC5737 nonrouteable addresses
325 ifconfig $TAP0 up
326 ifconfig $TAP1 up
327 atf_check ifconfig $LAGG up laggport $TAP0 laggport $TAP1 \
334 atf_check -o match:"ether ${MAC}" ifconfig $LAGG
335 atf_check -o match:"ether ${MAC}" ifconfig $TAP0
336 atf_check -o match:"ether ${MAC}" ifconfig $TAP1
353 # Configure the lagg interface to use an RFC5737 nonrouteable addresses
363 ifconfig $TAP0 up
364 ifconfig $TAP1 up
365 atf_check ifconfig $LAGG up laggport $TAP0 laggport $TAP1 \
370 atf_check -o not-match:"flags=.*\<UP\>" ifconfig $LAGG
371 atf_check -o not-match:"flags=.*\<UP\>" ifconfig $TAP0
372 atf_check -o not-match:"flags=.*\<UP\>" ifconfig $TAP1
373 # Up the lagg again
374 ifconfig $LAGG up
375 atf_check -o match:"flags=.*\<UP\>" ifconfig $LAGG
376 atf_check -o match:"flags=.*\<UP\>" ifconfig $TAP0
377 atf_check -o match:"flags=.*\<UP\>" ifconfig $TAP1
379 # Check that no members have acquired an IPv6 link-local address by
380 # virtue of being upped. IPv6 link-local addresses should never be
381 # merged in any way to prevent scope violation.
382 atf_check -o not-match:"inet6 fe80:" ifconfig $TAP0
383 atf_check -o not-match:"inet6 fe80:" ifconfig $TAP1
390 # Check for lock-order reversals. For best results, this test should be run
395 atf_set "descr" "Check witness(4) for lock-order reversals in if_lagg"
402 if [ `sysctl -n debug.witness.watch` -ne 1 ]; then
405 if `sysctl -n debug.witness.badstacks | grep -q 'at lagg_'`; then
407 atf_fail "Lock-order reversals involving if_lagg.c detected"
430 if [ "$TAPN" -ge 8 ]; then
437 # Record the TAP device so we can clean it up later
447 if [ "$LAGGN" -ge 8 ]; then
454 # Record the lagg device so we can clean it up later