• Home
  • Raw
  • Download

Lines Matching refs:bridge

67 	ip link add name br0 type bridge vlan_filtering 1 vlan_default_pvid 0 \
69 bridge vlan add vid 10 dev br0 self
70 bridge vlan add vid 20 dev br0 self
75 bridge vlan add vid 10 dev $swp1
76 bridge vlan add vid 20 dev $swp1
80 bridge vlan add vid 10 dev $swp2
81 bridge vlan add vid 20 dev $swp2
92 bridge vlan del vid 20 dev $swp2
93 bridge vlan del vid 10 dev $swp2
97 bridge vlan del vid 20 dev $swp1
98 bridge vlan del vid 10 dev $swp1
103 bridge vlan del vid 20 dev br0 self
104 bridge vlan del vid 10 dev br0 self
147 bridge mdb add dev br0 port br0 grp $grp $state vid 10
148 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null
151 bridge mdb replace dev br0 port br0 grp $grp $state vid 10 &> /dev/null
154 bridge mdb del dev br0 port br0 grp $grp $state vid 10
155 bridge mdb get dev br0 grp $grp vid 10 &> /dev/null
159 bridge mdb add dev br0 port br0 grp $grp $invalid_state vid 10 \
163 bridge mdb add dev br0 port br0 grp $grp src $src $state vid 10 \
167 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
171 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
175 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
202 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 10
203 bridge mdb get dev br0 $grp_key vid 10 &> /dev/null
206 bridge mdb replace dev br0 port $swp1 $grp_key permanent vid 10 \
210 bridge mdb del dev br0 port $swp1 $grp_key permanent vid 10
211 bridge mdb get dev br0 $grp_key vid 10 &> /dev/null
215 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 10
216 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "static"
219 bridge mdb replace dev br0 port $swp1 $grp_key permanent vid 10 \
221 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "123"
223 bridge mdb del dev br0 port $swp1 $grp_key permanent vid 10
226 bridge mdb add dev br0 port $swp1 $grp_key permanent
227 bridge mdb get dev br0 $grp_key vid 10 &> /dev/null
229 bridge mdb get dev br0 $grp_key vid 20 &> /dev/null
232 bridge mdb del dev br0 port $swp1 $grp_key permanent
233 bridge mdb get dev br0 $grp_key vid 10 &> /dev/null
235 bridge mdb get dev br0 $grp_key vid 20 &> /dev/null
238 # Check behavior when bridge port is down.
241 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 10
242 check_err $? "Failed to add $name permanent entry when bridge port is down"
244 bridge mdb del dev br0 port $swp1 $grp_key permanent vid 10
246 bridge mdb add dev br0 port $swp1 $grp_key temp vid 10 &> /dev/null
247 check_fail $? "Managed to add $name temporary entry when bridge port is down"
254 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 10 \
256 check_fail $? "Managed to add $name entry when bridge is down"
259 ip link set dev br0 type bridge mcast_snooping 0
260 bridge mdb add dev br0 port $swp1 $grp_key permanent vid \
263 ip link set dev br0 type bridge mcast_snooping 1
265 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 5000 \
300 bridge mdb add dev br0 port $swp1 grp $grp vid 10
301 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "exclude"
303 bridge mdb del dev br0 port $swp1 grp $grp vid 10
306 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
308 bridge -d mdb get dev br0 grp $grp vid 10 &> /dev/null
310 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
312 bridge mdb del dev br0 port $swp1 grp $grp vid 10
313 bridge -d mdb get dev br0 grp $grp vid 10 &> /dev/null
315 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
321 bridge mdb add dev br0 port $swp1 grp $grp permanent vid 10 \
324 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "permanent"
326 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | \
330 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q " 0.00"
332 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q "/0.00"
335 bridge mdb del dev br0 port $swp1 grp $grp vid 10
339 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
342 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "temp"
344 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "temp"
347 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q " 0.00"
349 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q "/0.00"
352 bridge mdb del dev br0 port $swp1 grp $grp vid 10
356 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
359 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "temp"
361 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "temp"
364 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q " 0.00"
366 bridge -d -s mdb get dev br0 grp $grp vid 10 | grep -q "/0.00"
369 bridge mdb del dev br0 port $swp1 grp $grp vid 10
372 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
375 bridge -d -s mdb get dev br0 grp $grp src $src1 vid 10 | grep -q " 0.00"
378 bridge mdb del dev br0 port $swp1 grp $grp vid 10
384 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
387 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "include"
389 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
392 bridge mdb del dev br0 port $swp1 grp $grp vid 10
396 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
399 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "exclude"
401 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
404 bridge mdb del dev br0 port $swp1 grp $grp vid 10
410 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
413 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "zebra"
415 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "zebra"
418 bridge mdb del dev br0 port $swp1 grp $grp vid 10
423 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
426 bridge mdb replace dev br0 port $swp1 grp $grp permanent vid 10 \
428 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "permanent"
430 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "permanent"
433 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
435 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "temp"
437 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "temp"
440 bridge mdb del dev br0 port $swp1 grp $grp vid 10
443 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
446 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
448 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "include"
450 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
453 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
455 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "exclude"
457 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "blocked"
460 bridge mdb del dev br0 port $swp1 grp $grp vid 10
463 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
466 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
468 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
470 bridge -d mdb get dev br0 grp $grp src $src2 vid 10 &> /dev/null
472 bridge -d mdb get dev br0 grp $grp src $src3 vid 10 &> /dev/null
475 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
477 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 &> /dev/null
479 bridge -d mdb get dev br0 grp $grp src $src2 vid 10 &> /dev/null
481 bridge -d mdb get dev br0 grp $grp src $src3 vid 10 &> /dev/null
484 bridge mdb del dev br0 port $swp1 grp $grp vid 10
487 bridge mdb add dev br0 port $swp1 grp $grp temp vid 10 \
490 bridge mdb replace dev br0 port $swp1 grp $grp temp vid 10 \
492 bridge -d mdb get dev br0 grp $grp vid 10 | grep -q "bgp"
494 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep -q "bgp"
497 bridge mdb del dev br0 port $swp1 grp $grp vid 10
504 bridge mdb add dev br0 port $swp2 grp $grp vid 10 \
506 bridge mdb add dev br0 port $swp1 grp $grp vid 10
507 bridge -d mdb get dev br0 grp $grp src $src1 vid 10 | grep "$swp1" | \
510 bridge mdb del dev br0 port $swp1 grp $grp vid 10
511 bridge mdb del dev br0 port $swp2 grp $grp src $src1 vid 10
515 bridge mdb add dev br0 port $swp1 grp $invalid_grp vid 10 &> /dev/null
518 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
522 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
526 bridge mdb add dev br0 port $swp1 grp $grp vid 10 \
530 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
532 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
535 bridge mdb del dev br0 port $swp1 grp $grp vid 10
537 bridge mdb add dev br0 port $swp1 grp $grp src $src2 vid 10
538 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode include \
541 bridge mdb del dev br0 port $swp1 grp $grp src $src2 vid 10
544 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
546 num_srcs=$(bridge -d mdb show dev br0 vid 10 | grep "$grp" | \
550 bridge mdb del dev br0 port $swp1 grp $grp vid 10
552 bridge mdb add dev br0 port $swp1 grp $grp vid 10 filter_mode exclude \
580 bridge mdb add dev br0 port $swp1 $grp_key vid 10
581 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "include"
583 bridge mdb del dev br0 port $swp1 $grp_key vid 10
587 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 10
588 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "permanent"
590 bridge -d -s mdb get dev br0 $grp_key vid 10 | grep -q " 0.00"
592 bridge mdb del dev br0 port $swp1 $grp_key vid 10
594 bridge mdb add dev br0 port $swp1 $grp_key temp vid 10
595 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "temp"
597 bridge -d -s mdb get dev br0 $grp_key vid 10 | grep -q " 0.00"
599 bridge mdb del dev br0 port $swp1 $grp_key vid 10
602 bridge mdb add dev br0 port $swp1 $grp_key vid 10 \
606 bridge mdb add dev br0 port $swp1 $grp_key vid 10 \
610 bridge mdb add dev br0 port $swp1 grp $grp src $grp vid 10 &> /dev/null
613 bridge mdb add dev br0 port $swp1 $grp_key vid 10 temp
614 bridge mdb add dev br0 port $swp1 $grp_key vid 10 permanent &> /dev/null
616 bridge mdb del dev br0 port $swp1 $grp_key vid 10
619 bridge mdb add dev br0 port $swp1 $grp_key vid 10 proto 123
620 bridge mdb replace dev br0 port $swp1 $grp_key vid 10 proto 111
621 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "111"
624 bridge mdb replace dev br0 port $swp1 $grp_key vid 10 permanent
625 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "permanent"
627 bridge -d -s mdb get dev br0 $grp_key vid 10 | grep -q " 0.00"
630 bridge mdb replace dev br0 port $swp1 $grp_key vid 10 temp
631 bridge -d mdb get dev br0 $grp_key vid 10 | grep -q "temp"
633 bridge -d -s mdb get dev br0 $grp_key vid 10 | grep -q " 0.00"
635 bridge mdb del dev br0 port $swp1 $grp_key vid 10
639 bridge mdb add dev br0 port $swp2 grp $grp vid 10
640 bridge mdb add dev br0 port $swp1 $grp_key vid 10
641 bridge mdb get dev br0 $grp_key vid 10 | grep $swp2 | \
644 bridge mdb del dev br0 port $swp1 $grp_key vid 10
645 bridge mdb del dev br0 port $swp2 grp $grp vid 10
673 bridge meb add dev br0 port $swp grp 00:01:02:03:04:05 \
677 bridge mdb add dev br0 port $swp grp $grp src 00:01:02:03:04:05 \
681 bridge mdb add dev br0 port $swp1 grp $grp permanent vid 10 \
685 bridge mdb add dev br0 port $swp1 grp $grp permanent vid 10 \
754 ip link add name br-test${i} up type bridge vlan_filtering 1 \
775 bridge -b $batch_file
777 num_entries=$(bridge mdb show dev br-test${i} | \
837 # no matching MDB entry. The bridge is not configured as a multicast
845 bridge mdb add dev br0 port $swp2 grp $grp temp vid 10
851 bridge mdb add dev br0 port br0 grp $grp temp vid 10
858 bridge mdb del dev br0 port br0 grp $grp vid 10
863 bridge mdb del dev br0 port $swp2 grp $grp vid 10
893 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
899 bridge mdb add dev br0 port br0 grp $dmac permanent vid 10
906 bridge mdb del dev br0 port br0 grp $dmac permanent vid 10
911 bridge mdb del dev br0 port $swp2 grp $dmac permanent vid 10
920 # Disable multicast router on the bridge to ensure that packets are
922 ip link set dev br0 type bridge mcast_router 0
927 ip link set dev br0 type bridge mcast_router 1
975 bridge mdb add dev br0 port $swp2 grp $grp vid 10 \
986 bridge mdb replace dev br0 port $swp2 grp $grp vid 10 \
997 bridge mdb del dev br0 port $swp2 grp $grp vid 10
1036 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
1041 bridge mdb del dev br0 port $swp2 grp $dmac permanent vid 10
1055 bridge link set dev $swp2 mcast_flood off
1060 bridge link set dev $swp2 mcast_flood on
1069 # bridge will start forwarding according to its MDB soon after a
1071 ip link set dev br0 type bridge mcast_query_response_interval 100
1073 # Forwarding according to MDB entries only takes place when the bridge
1074 # detects that there is a valid querier in the network. Set the bridge
1078 ip link set dev br0 type bridge mcast_querier 1
1084 ip link set dev br0 type bridge mcast_querier 0
1086 ip link set dev br0 type bridge mcast_query_response_interval 1000
1095 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 permanent vid 10 \
1102 bridge mdb get dev br0 grp 239.1.1.1 src 192.0.2.2 vid 10 &> /dev/null
1108 bridge mdb replace dev br0 port $swp1 grp 239.1.1.1 temp vid 10 \
1115 bridge -d mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q 192.0.2.2
1118 bridge mdb get dev br0 grp 239.1.1.1 src 192.0.2.2 vid 10 &> /dev/null
1121 bridge mdb del dev br0 port $swp1 grp 239.1.1.1 vid 10
1132 bridge mdb add dev br0 port $swp1 grp ff0e::1 permanent vid 10 \
1140 bridge mdb get dev br0 grp ff0e::1 src 2001:db8:1::2 vid 10 &> /dev/null
1146 bridge mdb replace dev br0 port $swp1 grp ff0e::1 temp vid 10 \
1153 bridge -d mdb get dev br0 grp ff0e::1 vid 10 | grep -q 2001:db8:1::2
1156 bridge mdb get dev br0 grp ff0e::1 src 2001:db8:1::2 vid 10 &> /dev/null
1159 bridge mdb del dev br0 port $swp1 grp ff0e::1 vid 10
1173 if ! bridge mdb help 2>&1 | grep -q "get"; then
1174 echo "SKIP: iproute2 too old, missing bridge mdb get support"