This patchset aligns IPv6 with IPv4 with respect to the "onlink" keyword
and allows IPv6 routes to be configured with a gateway address that is
resolved out of a different interface than the one specified.
Patches #1-#3 are small preparations in the existing "onlink" selftest.
Patch #4 is the actual change. See the commit message for detailed
description and motivation.
Patch #5 adds test cases for both address families, to make sure that
this use case does not regress.
Ido Schimmel (5):
selftests: fib-onlink: Remove "wrong nexthop device" IPv4 tests
selftests: fib-onlink: Remove "wrong nexthop device" IPv6 tests
selftests: fib-onlink: Add a test case for IPv4 multicast gateway
ipv6: Allow for nexthop device mismatch with "onlink"
selftests: fib-onlink: Add test cases for nexthop device mismatch
net/ipv6/route.c | 7 ++---
.../testing/selftests/net/fib-onlink-tests.sh | 28 +++++++++----------
2 files changed, 16 insertions(+), 19 deletions(-)
--
2.52.0