ipv4: Prepare rtable for IPv6 gateway
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Apr 2019 23:30:27 +0000 (16:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:22:40 +0000 (15:22 -0700)
commit1550c171935d264f522581fd037db5e64a716bb6
treec043f42751289b3cb3a93e0a5f883a6d086240f4
parentbdf004677107e3b847c5db09c9fbf8edefa24996
ipv4: Prepare rtable for IPv6 gateway

To allow the gateway to be either an IPv4 or IPv6 address, remove
rt_uses_gateway from rtable and replace with rt_gw_family. If
rt_gw_family is set it implies rt_uses_gateway. Rename rt_gateway
to rt_gw4 to represent the IPv4 version.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
drivers/infiniband/core/addr.c
drivers/infiniband/hw/nes/nes_cm.c
drivers/net/appletalk/ipddp.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
include/net/route.h
net/atm/clip.c
net/ipv4/inet_connection_sock.c
net/ipv4/ip_forward.c
net/ipv4/ip_output.c
net/ipv4/route.c
net/ipv4/xfrm4_policy.c
net/mpls/mpls_iptunnel.c