ipv4: Add support to rtable for ipv6 gateway
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Apr 2019 23:30:29 +0000 (16:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:22:40 +0000 (15:22 -0700)
commit0f5f7d7bf6e6bda4dffe7b42812a16ada6ea9816
tree20c54a4846f8631c1d2af99085fbdce2c44283ae
parentf35b794b3b405e2478654ea875bc0b29fe1a1bc5
ipv4: Add support to rtable for ipv6 gateway

Add support for an IPv6 gateway to rtable. Since a gateway is either
IPv4 or IPv6, make it a union with rt_gw4 where rt_gw_family decides
which address is in use.

When dumping the route data, encode an ipv6 nexthop using RTA_VIA.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
include/net/route.h
net/ipv4/route.c
net/ipv4/xfrm4_policy.c
net/mpls/mpls_iptunnel.c