ONLINK flag is per nexthop. For multipath routes it is specified in rtnh_flags
in struct rtnexthop versus rtm_flags for single path routes. Update
ip6_route_multipath_add to look at rtnh_flags before the call to
ip6_route_info_create.
Add multipath test cases as well.
David Ahern (2):
net/ipv6: Handle onlink flag with multipath routes
selftests: Add multipath tests for onlink flag
net/ipv6/route.c | 1 +
tools/testing/selftests/net/fib-onlink-tests.sh | 92 ++++++++++++++++++++++++-
2 files changed, 90 insertions(+), 3 deletions(-)
--
2.11.0