selftests: forwarding: lib: Add helpers to build IGMP/MLD leave packets
authorPetr Machata <petrm@nvidia.com>
Thu, 2 Feb 2023 17:59:33 +0000 (18:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 08:48:27 +0000 (08:48 +0000)
commit9ae8546973171230488ad631d2b9eb844466a37d
tree653ba8efaf4d796ee2ea16c328fbf91f9b89b0f4
parent705d4bc7b6b6563e7c2d4b3b3da8da9af842aacc
selftests: forwarding: lib: Add helpers to build IGMP/MLD leave packets

The testsuite that checks for mcast_max_groups functionality will need to
wipe the added groups as well. Add helpers to build an IGMP or MLD packets
announcing that host is leaving a given group.

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