nexthop: Add support for IPv6 gateways
authorDavid Ahern <dsahern@gmail.com>
Fri, 24 May 2019 21:43:06 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 04:37:30 +0000 (21:37 -0700)
commit53010f991a9f5e4ed2db705ddde6ff32709192a2
treef53445ab858d6ad371aaa7b7a8b8c7e391d3f65b
parent597cfe4fc3390a055f42546c254e48601b37009f
nexthop: Add support for IPv6 gateways

Handle IPv6 gateway in a nexthop spec. If nh_family is set to AF_INET6,
NHA_GATEWAY is expected to be an IPv6 address. Add ipv6 option to gw in
nh_config to hold the address, add fib6_nh to nh_info to leverage the
ipv6 initialization and cleanup code. Update nh_fill_node to dump the v6
address.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/nexthop.h
net/ipv4/nexthop.c