diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-03-11 10:55:53 -0400 | 
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 11:13:37 -0400 | 
| commit | 8032b71737520f883abeb1e43476d88cd5a4c304 (patch) | |
| tree | 3358ec95be3409d374868745458956342b92e1bd /zebra/kernel_socket.c | |
| parent | 77a44d94f8d75461dc98fa27a94c8802481ab13e (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/kernel_socket.c')
| -rw-r--r-- | zebra/kernel_socket.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index f5aca2341d..13dd9c8dc1 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -1144,7 +1144,8 @@ void rtm_read(struct rt_msghdr *rtm)  	if (rtm->rtm_type == RTM_GET || rtm->rtm_type == RTM_ADD  	    || rtm->rtm_type == RTM_CHANGE)  		rib_add(afi, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL, 0, -			zebra_flags, &p, NULL, &nh, RT_TABLE_MAIN, 0, 0, 0, 0); +			zebra_flags, &p, NULL, &nh, 0, RT_TABLE_MAIN, +			0, 0, 0, 0);  	else  		rib_delete(afi, SAFI_UNICAST, VRF_DEFAULT, ZEBRA_ROUTE_KERNEL,  			   0, zebra_flags, &p, NULL, &nh, RT_TABLE_MAIN,  | 
