]> git.baikalelectronics.ru Git - kernel.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)
commite37deecd04779deba5c1f3b861be171eceaa0230
tree837a93287c1714bbd80c573e4d04284d64a9866b
parentf5e216954d5318c8f8e06343511838ce379ce605
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]