selftests: forwarding: lib: Allow list of IPs for IGMPv3/MLDv2
authorPetr Machata <petrm@nvidia.com>
Thu, 2 Feb 2023 17:59:32 +0000 (18:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 08:48:27 +0000 (08:48 +0000)
commit705d4bc7b6b6563e7c2d4b3b3da8da9af842aacc
treea206e21cd74f5bc5cb9a0207f2ec847b524cb948
parent506a1ac9d32b52606f59acbb0e20c1a7adbb8511
selftests: forwarding: lib: Allow list of IPs for IGMPv3/MLDv2

The testsuite that checks for mcast_max_groups functionality will need
to generate IGMP and MLD packets with configurable number of (S,G)
addresses. To that end, further extend igmpv3_is_in_get() and
mldv2_is_in_get() to allow a list of IP addresses instead of one
address.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh