Lines Matching +full:mac +full:- +full:s
41 local TAP0 TAP1 LAGG MAC
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
60 # Check that all members have the same MAC
61 MAC=`ifconfig $LAGG | awk '/ether/ {print $2}'`
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
84 local TAP0 TAP1 LAGG MAC
96 # Up the lagg's children
109 echo -n . >> creator_count.txt
113 # Second thread: Query the lagg's status
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"
139 local TAP0 TAP1 LAGG MAC
147 # Up the lagg's children
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:
193 local TAP0 TAP1 LAGG MAC SRCDIR
208 # Up the lagg's children
225 echo -n . >> linkstate_count.txt ; } &
228 echo -n . >> destroy_count.txt ; } &
236 echo "Disconnected the children `stat -f %z linkstate_count.txt` times."
237 echo "Destroyed the lagg `stat -f %z destroy_count.txt` times."
252 local TAP0 TAP1 LAGG MAC SRCDIR
269 # Up the lagg's children
282 echo -n . >> up_count.txt ; } &
285 echo -n . >> destroy_count.txt ; } &
293 echo "Upped the lagg `stat -f %z up_count.txt` times."
294 echo "Destroyed it `stat -f %z destroy_count.txt` times."
304 atf_set "descr" "Set a lagg's ethernet address"
309 local TAP0 TAP1 LAGG MAC
314 MAC="00:11:22:33:44:55"
326 # Change the lagg's ethernet address
327 atf_check ifconfig $LAGG ether ${MAC}
329 # Check that all members have the same MAC
330 atf_check -o match:"ether ${MAC}" ifconfig $LAGG
331 atf_check -o match:"ether ${MAC}" ifconfig $TAP0
332 atf_check -o match:"ether ${MAC}" ifconfig $TAP1
347 local TAP0 TAP1 LAGG MAC
352 MAC="00:11:22:33:44:55"
366 atf_check -o not-match:"flags=.*\<UP\>" ifconfig $LAGG
367 atf_check -o not-match:"flags=.*\<UP\>" ifconfig $TAP0
368 atf_check -o not-match:"flags=.*\<UP\>" ifconfig $TAP1
371 atf_check -o match:"flags=.*\<UP\>" ifconfig $LAGG
372 atf_check -o match:"flags=.*\<UP\>" ifconfig $TAP0
373 atf_check -o match:"flags=.*\<UP\>" ifconfig $TAP1
375 # Check that no members have acquired an IPv6 link-local address by
376 # virtue of being upped. IPv6 link-local addresses should never be
378 atf_check -o not-match:"inet6 fe80:" ifconfig $TAP0
379 atf_check -o not-match:"inet6 fe80:" ifconfig $TAP1
386 # Check for lock-order reversals. For best results, this test should be run
391 atf_set "descr" "Check witness(4) for lock-order reversals in if_lagg"
398 if [ `sysctl -n debug.witness.watch` -ne 1 ]; then
401 if `sysctl -n debug.witness.badstacks | grep -q 'at lagg_'`; then
403 atf_fail "Lock-order reversals involving if_lagg.c detected"
426 if [ "$TAPN" -ge 8 ]; then
443 if [ "$LAGGN" -ge 8 ]; then