diff options
author | David Ahern <dsahern@gmail.com> | 2019-04-05 16:30:40 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-08 15:22:41 -0700 |
commit | d15662682db232da77136cd348f4c9df312ca6f9 (patch) | |
tree | dfa79b49c8771ca89225749eae14bf422829793a /tools/testing/selftests/net/fib_tests.sh | |
parent | ipv4: Flag fib_info with a fib_nh using IPv6 gateway (diff) | |
download | linux-dev-d15662682db232da77136cd348f4c9df312ca6f9.tar.xz linux-dev-d15662682db232da77136cd348f4c9df312ca6f9.zip |
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 '')
0 files changed, 0 insertions, 0 deletions