Thread (12 messages) 12 messages, 3 authors, 2026-01-14
STALE194d

[PATCH net-next 0/5] ipv6: Allow for nexthop device mismatch with "onlink"

From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-01-11 12:08:46

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help