diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-08 16:21:09 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-12 15:20:36 +0100 |
commit | 8795f90448e45e674ea60da83c2ad571ff2f9fec (patch) | |
tree | 8d48d1a1f5fd5f616664269bb427ad9a85afbe22 /zebra/rtread_getmsg.c | |
parent | zebra: Use the correct vrf id to lookup the ifp pointer (diff) | |
download | frr-8795f90448e45e674ea60da83c2ad571ff2f9fec.tar.xz frr-8795f90448e45e674ea60da83c2ad571ff2f9fec.zip |
zebra: Add nh_vrf_id to rib_add
Add to the rib_add function the ability to pass in the nexthops
vrf.
Additionally when we decode the netlink message from the linux
kernel, properly figure out the nexthops vrf_id.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rtread_getmsg.c')
-rw-r--r-- | zebra/rtread_getmsg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/rtread_getmsg.c b/zebra/rtread_getmsg.c index 69e45f9a6..ba45f54ad 100644 --- a/zebra/rtread_getmsg.c +++ b/zebra/rtread_getmsg.c @@ -97,8 +97,9 @@ static void handle_route_entry(mib2_ipRouteEntry_t *routeEntry) nh.type = NEXTHOP_TYPE_IPV4; nh.gate.ipv4.s_addr = routeEntry->ipRouteNextHop; - rib_add(AFI_IP, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL, 0, - zebra_flags, &prefix, NULL, &nh, 0, 0, 0, 0, 0); + rib_add(AFI_IP, SAFI_UNICAST, VRF_DEFAULT, VRF_DEFAULT, + ZEBRA_ROUTE_KERNEL, 0, zebra_flags, &prefix, NULL, + &nh, 0, 0, 0, 0, 0); } void route_read(struct zebra_ns *zns) |