ipv4: Add support to fib_config for IPv6 gateway
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Apr 2019 23:30:30 +0000 (16:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 22:22:40 +0000 (15:22 -0700)
commita4ea5d43c807be28545625c1e0641905022fa0d1
tree81dece465c821345b0b176e555bdcd3389a5c8fe
parent0f5f7d7bf6e6bda4dffe7b42812a16ada6ea9816
ipv4: Add support to fib_config for IPv6 gateway

Add support for an IPv6 gateway to fib_config. Since a gateway is either
IPv4 or IPv6, make it a union with fc_gw4 where fc_gw_family decides
which address is in use. Update current checks on family and gw4 to
handle ipv6 as well.

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_semantics.c