]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests: forwarding: Add multicast routing test
authorNir Dotan <nird@mellanox.com>
Mon, 10 Dec 2018 07:11:46 +0000 (07:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Dec 2018 07:01:33 +0000 (23:01 -0800)
commit6d4efada3b823b3e9019e50c40114abca43a677b
tree837a93287c1714bbd80c573e4d04284d64a9866b
parentcf7221a4f5a53f4975bdf55a9fa5de7a32acfc6d
selftests: forwarding: Add multicast routing test

Introduce basic testing for both IPv4 and IPv6 multicast. The test creates
an (S,G) type route, sends traffic and verifies traffic arrives when the
route is present and then verifies traffic does not arrive after deleting
the route.
This test requires smcroute - https://github.com/troglobit/smcroute which
is a tool that allows creation of static multicast routes.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/router_multicast.sh [new file with mode: 0755]