diff options
author | David Ahern <dsahern@gmail.com> | 2019-04-05 16:30:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-08 15:22:40 -0700 |
commit | f35b794b3b405e2478654ea875bc0b29fe1a1bc5 (patch) | |
tree | 1235d4a340a45ce09fd99f2abc8662a936b69146 /include/net/ip_fib.h | |
parent | 1550c171935d264f522581fd037db5e64a716bb6 (diff) | |
download | linux-rpi-f35b794b3b405e2478654ea875bc0b29fe1a1bc5.tar.gz linux-rpi-f35b794b3b405e2478654ea875bc0b29fe1a1bc5.tar.bz2 linux-rpi-f35b794b3b405e2478654ea875bc0b29fe1a1bc5.zip |
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>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r-- | include/net/ip_fib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index c68a40435ee0..1f72ad553c31 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -32,10 +32,11 @@ struct fib_config { u8 fc_protocol; u8 fc_scope; u8 fc_type; - /* 3 bytes unused */ + u8 fc_gw_family; + /* 2 bytes unused */ u32 fc_table; __be32 fc_dst; - __be32 fc_gw; + __be32 fc_gw4; int fc_oif; u32 fc_flags; u32 fc_priority; |