OSDN Git Service

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

Similar to rtable, fib_config needs to allow the gateway to be either an
IPv4 or an IPv6 address. To that end, rename fc_gw to fc_gw4 to mean an
IPv4 address and add fc_gw_family. Checks on 'is a gateway set' are changed
to see if fc_gw_family is set. In the process prepare the code for a
fc_gw_family == AF_INET6.

Signed-off-by: David Ahern <dsahern@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_semantics.c