]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: net: bridge: igmp: check for specific udp ip protocol
authorNikolay Aleksandrov <nikolay@nvidia.com>
Tue, 27 Oct 2020 18:59:21 +0000 (20:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 30 Oct 2020 17:50:28 +0000 (10:50 -0700)
We have to specifically check for udp protocol in addition to the mac
address because in IGMPv3 tests group-specific queries will use the same
mac address.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/bridge_igmp.sh

index 1c19459dbc5859d5c1ef0babea00224067b39f16..5562aef14c0acac4aaa62ebf056c0c3f0cff02b5 100755 (executable)
@@ -93,7 +93,7 @@ mcast_packet_test()
        # was received by it or not.
        tc qdisc add dev $host2_if ingress
        tc filter add dev $host2_if ingress protocol ip pref 1 handle 101 \
-               flower dst_mac $mac action drop
+               flower ip_proto udp dst_mac $mac action drop
 
        $MZ $host1_if -c 1 -p 64 -b $mac -A $src_ip -B $ip -t udp "dp=4096,sp=2048" -q
        sleep 1