OSDN Git Service

selftests: net: lib: add support for IPv6 mcast packet test
authorNikolay Aleksandrov <nikolay@nvidia.com>
Tue, 3 Nov 2020 17:23:58 +0000 (19:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Nov 2020 00:55:47 +0000 (16:55 -0800)
commit450b0b84c6609e7ec1fb0276c8a7e4efa9e78a4c
tree3970d04f55e2393dd0391051f245dbbdcab8862d
parent537e48259eacbd92f3463900c20cc3acd9dd2072
selftests: net: lib: add support for IPv6 mcast packet test

In order to test an IPv6 multicast packet we need to pass different tc
and mausezahn protocols only, so add a simple check for the destination
address which decides if we should generate an IPv4 or IPv6 mcast
packet.

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