summaryrefslogtreecommitdiff
path: root/sharpd/sharp_zebra.c
diff options
context:
space:
mode:
authorSoman K S <somanks@gmail.com>2020-11-06 08:39:28 +0530
committerSoman K S <somanks@gmail.com>2020-11-06 08:39:28 +0530
commit77b38a4a7dc1dde3a8c24a650884f956fae11157 (patch)
treee204bfa341c5c1e1473875a24a1fbc88f894cafc /sharpd/sharp_zebra.c
parent164f94a45292dacf12c61265b6a56f4594c613c3 (diff)
bgpd: Advertise FIB installed routes to bgp peers (Part 1)
Issue: The bgp routes learnt from peers which are not installed in kernel are advertised to peers. This can cause routers to send traffic to these destinations only to get dropped. The fix is to provide a configurable option "bgp suppress-fib-pending". When the option is enabled, bgp will advertise routes only if it these are successfully installed in kernel. Fix (Part1) : * Added message ZEBRA_ROUTE_NOTIFY_REQUEST used by client to request FIB install status for routes * Added AFI/SAFI to ZAPI messages * Modified the functions zapi_route_notify_decode(), zsend_route_notify_owner() and route_notify_internal() to include AFI, SAFI as parameters Signed-off-by: kssoman <somanks@gmail.com>
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r--sharpd/sharp_zebra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index 231de6403d..7a335fca3b 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -301,7 +301,8 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS)
enum zapi_route_notify_owner note;
uint32_t table;
- if (!zapi_route_notify_decode(zclient->ibuf, &p, &table, &note))
+ if (!zapi_route_notify_decode(zclient->ibuf, &p, &table, &note,
+ NULL, NULL))
return -1;
switch (note) {