selftests: forwarding: lib: Add helpers for IP address handling
authorPetr Machata <petrm@nvidia.com>
Thu, 2 Feb 2023 17:59:29 +0000 (18:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2023 08:48:26 +0000 (08:48 +0000)
commitfcf4927632eecb25e40c8c5ac1e40df2090cc2eb
tree8b15340a7b145c17b49a77c10f3c9849be0153a6
parentf7ccf60c4adada7e13d3d6798621cabcdaf3828e
selftests: forwarding: lib: Add helpers for IP address handling

In order to generate IGMPv3 and MLDv2 packets on the fly, we will need
helpers to expand IPv4 and IPv6 addresses given as parameters in
mausezahn payload notation. Add helpers that do it.

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