summaryrefslogtreecommitdiff
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-06 02:30:40 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-09 01:22:41 +0300
commitd15662682db232da77136cd348f4c9df312ca6f9 (patch)
treedfa79b49c8771ca89225749eae14bf422829793a /tools/testing/selftests
parent19a9d136f198cd7c4e26ea6897a0cf067d3f7ecb (diff)
downloadlinux-d15662682db232da77136cd348f4c9df312ca6f9.tar.xz
ipv4: Allow ipv6 gateway with ipv4 routes
Add support for RTA_VIA and allow an IPv6 nexthop for v4 routes: $ ip ro add 172.16.1.0/24 via inet6 2001:db8::1 dev eth0 $ ip ro ls ... 172.16.1.0/24 via inet6 2001:db8::1 dev eth0 For convenience and simplicity, userspace can use RTA_VIA to specify AF_INET or AF_INET6 gateway. The common fib_nexthop_info dump function compares the gateway address family to the nh_common family to know if the gateway should be encoded as RTA_VIA or RTA_GATEWAY. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions