Lines Matching +full:bridge0 +full:- +full:2
2 # SPDX-License-Identifier: BSD-2-Clause
14 # 2. Redistributions in binary form must reproduce the above copyright
61 atf_check -s exit:0 -o ignore jexec alcatraz ping -c 3 -t 1 192.0.2.2
62 atf_check -s exit:0 -o ignore jexec singsing ping -c 3 -t 1 192.0.2.1
117 if [ -z "${a_discard}" ] && [ -z "${b_discard}" ]
126 if [ -z "${a_forwarding}" ] && [ -z "${b_forwarding}" ]
192 if [ -z "${a_discard}" ] && [ -z "${b_discard}" ]
201 if [ -z "${a_forwarding}" ] && [ -z "${b_forwarding}" ]
236 atf_check -s exit:1 -o ignore -e ignore \
240 atf_check -s exit:1 -o ignore -e ignore \
244 atf_check -s exit:0 -o ignore \
248 atf_check -s exit:0 \
249 -o match:"00:01:02:03:04:05 Vlan0 ${epair}a 0 flags=1<STATIC>" \
253 atf_check -s exit:1 -o ignore -e ignore \
257 atf_check -s exit:1 -o ignore -e ignore \
261 atf_check -s exit:0 -o ignore \
294 atf_check -s exit:1 -o ignore -e ignore jexec one \
298 atf_check -s exit:1 -o ignore -e ignore jexec one \
302 atf_check -s exit:1 -o ignore -e ignore jexec one \
306 atf_check -s exit:0 -o ignore jexec one \
310 atf_check -s exit:0 \
311 -o match:"00:01:02:03:04:05 Vlan10 ${epair}a 0 flags=1<STATIC>" \
315 atf_check -s exit:1 -o ignore -e ignore jexec one \
319 atf_check -s exit:1 -o ignore -e ignore jexec one \
323 atf_check -s exit:1 -o ignore -e ignore jexec one \
327 atf_check -s exit:0 -o ignore jexec one \
367 jexec one ping -c 1 -t 1 192.0.2.2
370 atf_check -s exit:0 \
372 --sendif ${epair}b \
373 --to 192.0.2.2 \
374 --recvif ${epair_span}b
376 jexec one ifconfig ${bridge} -span ${epair_span}a
379 atf_check -s exit:1 \
381 --sendif ${epair}b \
382 --to 192.0.2.2 \
383 --recvif ${epair_span}b
439 jexec bridge_mac_conflict_one ifconfig bridge0 192.0.2.1/24 up \
444 jexec bridge_mac_conflict_two ifconfig bridge0 192.0.2.2/24 up \
448 atf_check -s exit:0 -o ignore \
449 jexec bridge_mac_conflict_one ping -c 3 192.0.2.2
519 atf_check -s exit:0 \
521 --sendif ${epair_one}b \
522 --recvif ${epair_two}b
547 jexec one sysctl net.link.gif.max_nesting=2
548 jexec two sysctl net.link.gif.max_nesting=2
570 atf_check -s exit:0 -o ignore \
571 jexec one ping -c 1 192.0.2.2
574 atf_check -s exit:0 -o ignore \
575 jexec one ping -c 1 198.51.100.2
576 atf_check -s exit:0 -o ignore \
577 jexec one ping -c 1 -s 1200 198.51.100.2
578 atf_check -s exit:0 -o ignore \
579 jexec one ping -c 1 -s 2000 198.51.100.2
585 atf_check -s exit:0 -o ignore \
586 jexec one ping -c 1 -s 1200 198.51.100.2
587 atf_check -s exit:0 -o ignore \
588 jexec one ping -c 1 -s 2000 198.51.100.2
592 atf_check -s exit:0 -o ignore \
594 atf_check -s exit:0 -o ignore \
597 atf_check -s exit:0 -o ignore \
601 atf_check -s exit:0 -o ignore \
603 atf_check -s exit:0 -o ignore \
604 jexec two ifconfig ${gif_two} inet6 no_dad 2001:db8::2/64
606 atf_check -s exit:0 -o ignore \
632 expected=$2
635 if [ "$mtu" -ne "$expected" ];
651 atf_check -s exit:0 \
655 atf_check -s exit:0 \
659 atf_check -s exit:0 \
667 atf_check -s exit:1 -e ignore \
675 atf_check -s exit:1 -e ignore \
682 atf_check -s exit:0 -e ignore \
745 atf_check -s exit:0 -o ignore \
746 jexec one ping -c 1 -t 1 192.0.2.2
755 atf_check -s exit:0 -o ignore \
756 jexec one ping -c 1 -t 1 192.0.2.2
783 atf_check -s exit:0 -o inline:"$ifcount\n" \
784 sh -c "ifconfig ${bridge} | grep member: | wc -l | xargs"
810 jexec one ifconfig bridge0 create addm ${ep}b
812 atf_check -s exit:0 -o ignore ping -c3 -t1 192.0.2.2
840 atf_check -s exit:1 -e ignore jexec one ifconfig ${bridge} addm ${ep}
845 atf_check -s exit:1 -e ignore jexec one ifconfig ${bridge} addm ${ep}
847 # adding an interface with an IPv6 link-local address
849 jexec one ifconfig ${ep} inet6 -ifdisabled auto_linklocal up
850 atf_check -s exit:1 -e ignore jexec one ifconfig ${bridge} addm ${ep}
855 atf_check -s exit:1 -e ignore jexec one ifconfig ${ep} inet 192.0.2.2/32
860 atf_check -s exit:1 -e ignore jexec one ifconfig ${ep} inet6 2001:db8::1/128
889 atf_check -s exit:0 jexec one ifconfig ${epone}a up
890 atf_check -s exit:0 jexec one \
898 atf_check -s exit:0 -o save:bridge jexec two ifconfig bridge create
900 atf_check -s exit:0 jexec two ifconfig ${bridge} addm ${epone}b up
902 atf_check -s exit:0 -o ignore jexec two \
904 atf_check -s exit:0 jexec two ifconfig ${epone}b up
905 atf_check -s exit:0 jexec two \
909 atf_check -s exit:0 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
910 atf_check -s exit:0 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
948 atf_check -s exit:0 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
949 atf_check -s exit:0 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
952 ifconfig ${bridge} -ifuntagged ${epone}a
953 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
954 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
980 atf_check -s exit:0 jexec one ifconfig ${epone}b 192.0.2.1/24 up
981 atf_check -s exit:0 jexec two ifconfig ${eptwo}b 192.0.2.2/24 up
985 atf_check -s exit:0 ifconfig ${bridge} vlanfilter up
986 atf_check -s exit:0 ifconfig ${epone}a up
987 atf_check -s exit:0 ifconfig ${eptwo}a up
988 atf_check -s exit:0 ifconfig ${bridge} addm ${epone}a untagged 20
989 atf_check -s exit:0 ifconfig ${bridge} addm ${eptwo}a untagged 30
991 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
992 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1019 atf_check -s exit:0 jexec one ifconfig ${epone}b up
1020 atf_check -s exit:0 jexec one ifconfig ${epone}b.20 \
1022 atf_check -s exit:0 jexec two ifconfig ${eptwo}b up
1023 atf_check -s exit:0 jexec two ifconfig ${eptwo}b.20 \
1028 atf_check -s exit:0 ifconfig ${bridge} vlanfilter up
1029 atf_check -s exit:0 ifconfig ${epone}a up
1030 atf_check -s exit:0 ifconfig ${eptwo}a up
1031 atf_check -s exit:0 ifconfig ${bridge} addm ${epone}a untagged 20
1032 atf_check -s exit:0 ifconfig ${bridge} addm ${eptwo}a untagged 20
1035 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1036 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1066 atf_check -s exit:0 jexec one ifconfig ${epone}b 192.0.2.1/24 up
1067 atf_check -s exit:0 jexec two ifconfig ${eptwo}b up
1068 atf_check -s exit:0 jexec two ifconfig ${eptwo}b.20 create 192.0.2.2/24 up
1072 atf_check -s exit:0 ifconfig ${bridge} vlanfilter up
1073 atf_check -s exit:0 ifconfig ${bridge} addm ${epone}a untagged 20
1074 atf_check -s exit:0 ifconfig ${bridge} addm ${eptwo}a tagged 20
1076 atf_check -s exit:0 ifconfig ${epone}a up
1077 atf_check -s exit:0 ifconfig ${eptwo}a up
1079 atf_check -s exit:0 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1080 atf_check -s exit:0 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1109 atf_check -s exit:0 jexec one ifconfig ${epone}b up
1110 atf_check -s exit:0 jexec one ifconfig ${epone}b.20 \
1112 atf_check -s exit:0 jexec two ifconfig ${eptwo}b up
1113 atf_check -s exit:0 jexec two ifconfig ${eptwo}b.20 \
1118 atf_check -s exit:0 ifconfig ${bridge} vlanfilter up
1119 atf_check -s exit:0 ifconfig ${epone}a up
1120 atf_check -s exit:0 ifconfig ${eptwo}a up
1121 atf_check -s exit:0 ifconfig ${bridge} addm ${epone}a
1122 atf_check -s exit:0 ifconfig ${bridge} addm ${eptwo}a
1126 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1127 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1132 atf_check -s exit:0 ifconfig ${bridge} ifuntagged ${epone}a 20
1133 atf_check -s exit:0 ifconfig ${bridge} ifuntagged ${eptwo}a 20
1135 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1136 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1138 atf_check -s exit:0 ifconfig ${bridge} -ifuntagged ${epone}a
1139 atf_check -s exit:0 ifconfig ${bridge} -ifuntagged ${eptwo}a
1141 # Add VLANs 10-30 to the access list; now access should be allowed.
1142 atf_check -s exit:0 ifconfig ${bridge} +iftagged ${epone}a 10-30
1143 atf_check -s exit:0 ifconfig ${bridge} +iftagged ${eptwo}a 10-30
1144 atf_check -s exit:0 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1145 atf_check -s exit:0 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1149 atf_check -s exit:0 ifconfig ${bridge} -iftagged ${epone}a 20
1150 atf_check -s exit:0 ifconfig ${bridge} -iftagged ${eptwo}a 20
1151 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1152 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1177 atf_check -s exit:0 ifconfig ${bridge} vlanfilter up
1179 atf_check -s exit:0 ifconfig ${bridge} addm ${ep}a
1180 atf_check -s exit:0 ifconfig ${ep}a up
1183 atf_check -s exit:0 -o not-match:"tagged" ifconfig ${bridge}
1185 # Add vlans 100-149.
1186 atf_check -s exit:0 ifconfig ${bridge} iftagged ${ep}a 100-149
1187 atf_check -s exit:0 -o match:"tagged 100-149" ifconfig ${bridge}
1189 # Replace the vlan list with 139-199.
1190 atf_check -s exit:0 ifconfig ${bridge} iftagged ${ep}a 139-199
1191 atf_check -s exit:0 -o match:"tagged 139-199" ifconfig ${bridge}
1193 # Add vlans 100-170.
1194 atf_check -s exit:0 ifconfig ${bridge} +iftagged ${ep}a 100-170
1195 atf_check -s exit:0 -o match:"tagged 100-199" ifconfig ${bridge}
1197 # Remove vlans 104, 105, and 150-159
1198 atf_check -s exit:0 ifconfig ${bridge} -iftagged ${ep}a 104,105,150-159
1199 atf_check -s exit:0 -o match:"tagged 100-103,106-149,160-199" \
1203 atf_check -s exit:0 ifconfig ${bridge} iftagged ${ep}a none
1204 atf_check -s exit:0 -o not-match:"tagged" ifconfig ${bridge}
1207 for bad_vlan in -1 0 4096 4097 foo 0-10 4000-5000 foo-40 40-foo; do
1208 atf_check -s exit:1 -e ignore \
1237 atf_check -s exit:0 jexec one ifconfig ${epone}b up
1238 atf_check -s exit:0 jexec one ifconfig ${epone}b.20 \
1243 atf_check -s exit:0 ifconfig ${bridge} vlanfilter up
1244 atf_check -s exit:0 ifconfig ${epone}a up
1245 atf_check -s exit:0 ifconfig ${bridge} addm ${epone}a tagged 20
1248 atf_check -s exit:0 ifconfig ${svi} vlan 20 vlandev ${bridge}
1249 atf_check -s exit:0 ifconfig ${svi} inet 192.0.2.2/24 up
1251 atf_check -s exit:0 -o ignore ping -c 3 -t 1 192.0.2.1
1283 atf_check -s exit:0 jexec one ifconfig ${epone}b up
1284 atf_check -s exit:0 jexec one \
1286 atf_check -s exit:0 jexec one \
1289 atf_check -s exit:0 jexec two ifconfig ${eptwo}b up
1290 atf_check -s exit:0 jexec two ifconfig \
1292 atf_check -s exit:0 jexec two ifconfig \
1297 atf_check -s exit:0 ifconfig ${bridge} vlanfilter defqinq up
1298 atf_check -s exit:0 ifconfig ${epone}a up
1299 atf_check -s exit:0 ifconfig ${eptwo}a up
1300 atf_check -s exit:0 ifconfig ${bridge} addm ${epone}a
1301 atf_check -s exit:0 ifconfig ${bridge} addm ${eptwo}a
1305 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1306 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1309 atf_check -s exit:0 ifconfig ${bridge} +iftagged ${epone}a 5
1310 atf_check -s exit:0 ifconfig ${bridge} +iftagged ${eptwo}a 5
1311 atf_check -s exit:0 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1312 atf_check -s exit:0 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1316 atf_check -s exit:0 ifconfig ${bridge} -qinq ${epone}a
1317 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1318 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1340 atf_check -s exit:0 ifconfig ${bridge}.1 create
1341 atf_check -s exit:1 -e ignore ifconfig ${bridge} addm ${bridge}.1
1379 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1380 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1383 atf_check -s exit:0 ifconfig ${bridge} ifuntagged ${eptwo}a 20
1384 atf_check -s exit:0 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1385 atf_check -s exit:0 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1389 atf_check -s exit:0 ifconfig ${bridge} -ifuntagged ${epone}a
1390 atf_check -s exit:2 -o ignore jexec one ping -c 3 -t 1 192.0.2.2
1391 atf_check -s exit:2 -o ignore jexec two ping -c 3 -t 1 192.0.2.1
1414 atf_check -s exit:1 -ematch:"invalid vlan id: 0" \
1416 atf_check -s exit:1 -ematch:"invalid vlan id: 4095" \
1418 atf_check -s exit:1 -ematch:"invalid vlan id: 5000" \
1422 atf_check -s exit:0 -onot-match:"defuntagged=" \
1425 atf_check -s exit:0 ifconfig ${bridge} defuntagged 10
1426 atf_check -s exit:0 -omatch:"defuntagged=10$" \
1429 atf_check -s exit:0 ifconfig ${bridge} -defuntagged
1430 atf_check -s exit:0 -onot-match:"defuntagged=" \
1434 atf_check -s exit:0 ifconfig ${bridge} defuntagged 10
1437 atf_check -s exit:0 ifconfig ${bridge} addm ${epair}a
1439 tag=$(ifconfig ${bridge} | sed -Ene \
1440 "/member: ${epair}a/ { N;s/.*untagged ([0-9]+).*/\\1/p;q; }")