summaryrefslogtreecommitdiff
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-03-11 10:55:53 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-25 11:13:37 -0400
commit8032b71737520f883abeb1e43476d88cd5a4c304 (patch)
tree3358ec95be3409d374868745458956342b92e1bd /zebra/rt_netlink.c
parent77a44d94f8d75461dc98fa27a94c8802481ab13e (diff)
zebra: Update rib_add to take a nexthop ID
Add a parameter to the rib_add function so that it takes a nexthop ID from the kernel if one is passed along with the route. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index a030356f38..2744e6da9a 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -618,7 +618,8 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id,
gate, afi, nh_vrf_id);
}
rib_add(afi, SAFI_UNICAST, vrf_id, proto, 0, flags, &p,
- &src_p, &nh, table, metric, mtu, distance, tag);
+ &src_p, &nh, nhe_id, table, metric, mtu,
+ distance, tag);
} else {
/* This is a multipath route */
uint8_t nhop_num;