]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Add VRF route leaking tests
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 12 Oct 2020 14:50:16 +0000 (10:50 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 Oct 2020 00:14:28 +0000 (17:14 -0700)
commitb126e6845895cf0e95e078fe0458ad4b7d1c1e18
treea03cbb350ab12ae2b5ce24898d434473c37d245b
parentc5530cf56f942e0b706c66f54649f91ba1ea3381
selftests: Add VRF route leaking tests

The objective of the tests is to check that ICMP errors generated while
crossing between VRFs are properly routed back to the source host.

The first ttl test sends a ping with a ttl of 1 from h1 to h2 and parses the
output of the command to check that a ttl expired error is received.

The second ttl test runs traceroute from h1 to h2 and parses the output to
check for a hop on r1.

The mtu test sends a ping with a payload of 1450 from h1 to h2, through
r1 which has an interface with a mtu of 1400 and parses the output of the
command to check that a fragmentation needed error is received.

[ The IPv6 MTU test still fails with the symmetric routing setup. It
  appears to be caused by source address selection picking ::1.  Fixing
  this is beyond the scope of this series. ]

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/vrf_route_leaking.sh [new file with mode: 0755]