Lines Matching +full:host +full:- +full:port
2 # SPDX-License-Identifier: GPL-2.0
4 # +-----------------------+ +------------------------+
15 # +----|------------------+ +----|-------------------+
17 # +----|--------------------------------------------------|-------------------+
19 # | +--|--------------------------------------------------|-----------------+ |
24 # | +-----------------------------------------------------------------------+ |
25 # +---------------------------------------------------------------------------+
147 bridge mdb add dev br0 port br0 grp $grp $state vid 10
149 check_err $? "Failed to add $name host entry"
151 bridge mdb replace dev br0 port br0 grp $grp $state vid 10 &> /dev/null
152 check_fail $? "Managed to replace $name host entry"
154 bridge mdb del dev br0 port br0 grp $grp $state vid 10
156 check_fail $? "Failed to delete $name host entry"
159 bridge mdb add dev br0 port br0 grp $grp $invalid_state vid 10 \
161 check_fail $? "Managed to add $name host entry with a $invalid_state state"
163 bridge mdb add dev br0 port br0 grp $grp src $src $state vid 10 \
165 check_fail $? "Managed to add $name host entry with a source"
167 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
169 check_fail $? "Managed to add $name host entry with a filter mode"
171 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
173 check_fail $? "Managed to add $name host entry with a source list"
175 bridge mdb add dev br0 port br0 grp $grp $state vid 10 \
177 check_fail $? "Managed to add $name host entry with a protocol"
179 log_test "Common host entries configuration tests ($name)"
182 # Check configuration of host entries from all types.
186 log_info "# Host entries configuration tests"
202 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 10
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
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
232 bridge mdb del dev br0 port $swp1 $grp_key permanent
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 \
260 bridge mdb add dev br0 port $swp1 $grp_key permanent vid \
265 bridge mdb add dev br0 port $swp1 $grp_key permanent vid 5000 \
269 log_test "Common port group entries configuration tests ($name)"
283 echo $src_list | cut -c 2-
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 | \
327 grep -q "permanent"
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" | \
508 grep -q "added_by_star_ex"
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" | \
547 grep "src" | wc -l)
548 [[ $num_srcs -eq $max_srcs ]]
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 \
557 log_test "$name (*, G) port group entries configuration tests"
563 log_info "# Port group entries configuration tests - (*, G)"
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
642 grep -q "added_by_star_ex"
644 bridge mdb del dev br0 port $swp1 $grp_key vid 10
645 bridge mdb del dev br0 port $swp2 grp $grp vid 10
647 log_test "$name (S, G) port group entries configuration tests"
653 log_info "# Port group entries configuration tests - (S, G)"
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 \
689 log_test "L2 (*, G) port group entries configuration tests"
695 log_info "# Port group entries configuration tests - L2"
701 # Check configuration of regular (port) entries of all types.
713 for i in $(seq 0 $((max_grps - 1))); do
723 for i in $(seq 0 $((max_grps - 1))); do
733 for i in $(seq 0 $((max_grps - 1))); do
754 ip link add name br-test${i} up type bridge vlan_filtering 1 \
757 ip link add name br-test${i}-du${j} up \
758 master br-test${i} type dummy
767 echo "mdb add dev br-test${i} \
768 port br-test${i}-du${j} grp $grp \
775 bridge -b $batch_file
777 num_entries=$(bridge mdb show dev br-test${i} | \
778 grep "permanent" | wc -l)
779 [[ $num_entries -eq $((max_grps * max_ports)) ]]
780 check_err $? "Wrong number of entries in br-test${i}"
786 ip link del dev br-test${i}
788 ip link del dev br-test${i}-du${j}
814 # Different port.
815 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 vid 10
816 bridge mdb add dev br0 port $swp2 grp 239.1.1.2 vid 10
819 bridge mdb add dev br0 port $swp1 grp 239.1.1.3 vid 10
820 bridge mdb add dev br0 port $swp1 grp 239.1.1.4 vid 20
823 bridge mdb add dev br0 port $swp1 grp 239.1.1.5 vid 10 proto bgp
824 bridge mdb add dev br0 port $swp1 grp 239.1.1.6 vid 10 proto zebra
827 bridge mdb add dev br0 port $swp1 grp 239.1.1.7 vid 10 permanent
828 bridge mdb add dev br0 port $swp1 grp 239.1.1.8 vid 10 temp
831 num_entries=$(bridge mdb show dev br0 | wc -l)
832 [[ $num_entries -eq 0 ]]
835 # Check that when flushing by port only entries programmed with the
836 # specified port are flushed and the rest are not.
838 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 vid 10
839 bridge mdb add dev br0 port $swp2 grp 239.1.1.1 vid 10
840 bridge mdb add dev br0 port br0 grp 239.1.1.1 vid 10
842 bridge mdb flush dev br0 port $swp1
844 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp1"
845 check_fail $? "Entry not flushed by specified port"
846 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp2"
847 check_err $? "Entry flushed by wrong port"
848 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port br0"
849 check_err $? "Host entry flushed by wrong port"
851 bridge mdb flush dev br0 port br0
853 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port br0"
854 check_fail $? "Host entry not flushed by specified port"
861 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 vid 10
862 bridge mdb add dev br0 port $swp2 grp 239.1.1.1 vid 10
863 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 vid 20
864 bridge mdb add dev br0 port $swp2 grp 239.1.1.1 vid 20
878 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 permanent vid 10
879 bridge mdb add dev br0 port $swp2 grp 239.1.1.1 temp vid 10
883 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp1"
885 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp2"
893 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 permanent vid 10
894 bridge mdb add dev br0 port $swp2 grp 239.1.1.1 temp vid 10
898 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp1"
900 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp2"
905 # Check that L2 host entries are not flushed when "nopermanent" is
908 bridge mdb add dev br0 port br0 grp 01:02:03:04:05:06 permanent vid 10
913 check_err $? "L2 host entry flushed by wrong state (\"nopermanent\")"
918 check_fail $? "L2 host entry not flushed by \"permanent\" state"
922 # Check that IPv4 host entries are not flushed when "permanent" is
925 bridge mdb add dev br0 port br0 grp 239.1.1.1 temp vid 10
930 check_err $? "IPv4 host entry flushed by wrong state (\"permanent\")"
935 check_fail $? "IPv4 host entry not flushed by \"nopermanent\" state"
939 # Check that IPv6 host entries are not flushed when "permanent" is
942 bridge mdb add dev br0 port br0 grp ff0e::1 temp vid 10
947 check_err $? "IPv6 host entry flushed by wrong state (\"permanent\")"
952 check_fail $? "IPv6 host entry not flushed by \"nopermanent\" state"
959 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 vid 10 proto bgp
960 bridge mdb add dev br0 port $swp2 grp 239.1.1.1 vid 10 proto zebra
961 bridge mdb add dev br0 port br0 grp 239.1.1.1 vid 10
965 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp1"
967 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port $swp2"
969 bridge mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q "port br0"
970 check_err $? "Host entry flushed by wrong routing protocol"
984 check_fail $? "Managed to flush by UDP destination port"
1011 if [[ $mode == "-4" ]]; then
1025 # router port.
1026 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1030 # Install a regular port group entry and expect the packet to not be
1032 bridge mdb add dev br0 port $swp2 grp $grp temp vid 10
1033 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1037 # Add a host entry and expect the packet to be locally received.
1038 bridge mdb add dev br0 port br0 grp $grp temp vid 10
1039 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1041 check_err $? "Packet not locally received after adding a host entry"
1043 # Remove the host entry and expect the packet to not be locally
1045 bridge mdb del dev br0 port br0 grp $grp vid 10
1046 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $src -B $grp -t udp -q
1048 check_err $? "Packet locally received after removing a host entry"
1050 bridge mdb del dev br0 port $swp2 grp $grp vid 10
1054 log_test "$name host entries forwarding tests"
1059 __fwd_test_host_ip "239.1.1.1" "01:00:5e:01:01:01" "192.0.2.1" "-4"
1060 __fwd_test_host_ip "ff0e::1" "33:33:00:00:00:01" "2001:db8:1::1" "-6"
1074 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1078 # Install a regular port group entry and expect the packet to not be
1080 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
1081 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1085 # Add a host entry and expect the packet to be locally received.
1086 bridge mdb add dev br0 port br0 grp $dmac permanent vid 10
1087 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1089 check_err $? "Packet not locally received after adding a host entry"
1091 # Remove the host entry and expect the packet to not be locally
1093 bridge mdb del dev br0 port br0 grp $dmac permanent vid 10
1094 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1096 check_err $? "Packet locally received after removing a host entry"
1098 bridge mdb del dev br0 port $swp2 grp $dmac permanent vid 10
1102 log_test "L2 host entries forwarding tests"
1108 # only locally received when a matching host entry is present.
1131 if [[ $mode == "-4" ]]; then
1154 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
1158 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
1162 bridge mdb add dev br0 port $swp2 grp $grp vid 10 \
1165 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
1169 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
1173 bridge mdb replace dev br0 port $swp2 grp $grp vid 10 \
1176 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
1180 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
1184 bridge mdb del dev br0 port $swp2 grp $grp vid 10
1186 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $valid_src -B $grp -t udp -q
1190 $MZ $mode $h1.10 -a own -b $dmac -c 1 -p 128 -A $invalid_src -B $grp -t udp -q
1197 log_test "$name port group \"$filter_mode\" entries forwarding tests"
1202 __fwd_test_port_ip "239.1.1.1" "01:00:5e:01:01:01" "192.0.2.1" "192.0.2.2" "-4" "exclude"
1203 __fwd_test_port_ip "ff0e::1" "33:33:00:00:00:01" "2001:db8:1::1" "2001:db8:1::2" "-6" \
1205 __fwd_test_port_ip "239.1.1.1" "01:00:5e:01:01:01" "192.0.2.1" "192.0.2.2" "-4" "include"
1206 __fwd_test_port_ip "ff0e::1" "33:33:00:00:00:01" "2001:db8:1::1" "2001:db8:1::2" "-6" \
1219 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1223 bridge mdb add dev br0 port $swp2 grp $dmac permanent vid 10
1224 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1228 bridge mdb del dev br0 port $swp2 grp $dmac permanent vid 10
1229 $MZ $h1.10 -c 1 -p 128 -a own -b $dmac -q
1235 log_test "L2 port entries forwarding tests"
1241 # out of a port when a matching port group entry is present.
1262 # as the querier and assign it a valid IPv6 link-local address to be
1264 ip -6 address add fe80::1/64 nodad dev br0
1272 ip -6 address del fe80::1/64 dev br0
1282 bridge mdb add dev br0 port $swp1 grp 239.1.1.1 permanent vid 10 \
1286 $MZ $h1.10 -c 1 -a own -b 01:00:5e:01:01:01 -A 192.0.2.1 -B 239.1.1.1 \
1287 -t ip proto=2,p=$(igmpv3_is_in_get 239.1.1.1 192.0.2.2) -q
1295 bridge mdb replace dev br0 port $swp1 grp 239.1.1.1 temp vid 10 \
1299 $MZ $h1.10 -a own -b 01:00:5e:01:01:01 -c 1 -A 192.0.2.1 -B 239.1.1.1 \
1300 -t ip proto=2,p=$(igmpv3_is_in_get 239.1.1.1 192.0.2.2) -q
1302 bridge -d mdb get dev br0 grp 239.1.1.1 vid 10 | grep -q 192.0.2.2
1308 bridge mdb del dev br0 port $swp1 grp 239.1.1.1 vid 10
1319 bridge mdb add dev br0 port $swp1 grp ff0e::1 permanent vid 10 \
1324 $MZ -6 $h1.10 -a own -b 33:33:00:00:00:01 -c 1 -A fe80::1 -B ff0e::1 \
1325 -t ip hop=1,next=0,p="$p" -q
1333 bridge mdb replace dev br0 port $swp1 grp ff0e::1 temp vid 10 \
1337 $MZ -6 $h1.10 -a own -b 33:33:00:00:00:01 -c 1 -A fe80::1 -B ff0e::1 \
1338 -t ip hop=1,next=0,p="$p" -q
1340 bridge -d mdb get dev br0 grp ff0e::1 vid 10 | grep -q 2001:db8:1::2
1346 bridge mdb del dev br0 port $swp1 grp ff0e::1 vid 10
1360 if ! bridge mdb help 2>&1 | grep -q "flush"; then