ipv4: Allow routes to use nexthop objects
Add support for RTA_NH_ID attribute to allow a user to specify a nexthop id to use with a route. fc_nh_id is added to fib_config to hold the value passed in the RTA_NH_ID attribute. If a nexthop id is given, the gateway, device, encap and multipath attributes can not be set. Update fib_nh_match to check ids on a route delete. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2d44234bf9
commit
493ced1ac4
@@ -40,6 +40,7 @@ struct fib_config {
|
||||
u32 fc_flags;
|
||||
u32 fc_priority;
|
||||
__be32 fc_prefsrc;
|
||||
u32 fc_nh_id;
|
||||
struct nlattr *fc_mx;
|
||||
struct rtnexthop *fc_mp;
|
||||
int fc_mx_len;
|
||||
|
Reference in New Issue
Block a user