summaryrefslogtreecommitdiffstats
path: root/zebra/rtread_getmsg.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-01-08 16:21:09 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-01-12 15:20:36 +0100
commit8795f90448e45e674ea60da83c2ad571ff2f9fec (patch)
tree8d48d1a1f5fd5f616664269bb427ad9a85afbe22 /zebra/rtread_getmsg.c
parentzebra: Use the correct vrf id to lookup the ifp pointer (diff)
downloadfrr-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.c5
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)