diff options
author | Soman K S <somanks@gmail.com> | 2020-11-06 04:09:28 +0100 |
---|---|---|
committer | Soman K S <somanks@gmail.com> | 2020-11-06 04:09:28 +0100 |
commit | 77b38a4a7dc1dde3a8c24a650884f956fae11157 (patch) | |
tree | e204bfa341c5c1e1473875a24a1fbc88f894cafc /staticd/static_zebra.c | |
parent | Merge pull request #7466 from idryzhov/fix-bfd-null-deref (diff) | |
download | frr-77b38a4a7dc1dde3a8c24a650884f956fae11157.tar.xz frr-77b38a4a7dc1dde3a8c24a650884f956fae11157.zip |
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 'staticd/static_zebra.c')
-rw-r--r-- | staticd/static_zebra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index a9b570de8..0bccbfbea 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -110,7 +110,8 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS) enum zapi_route_notify_owner note; uint32_t table_id; - if (!zapi_route_notify_decode(zclient->ibuf, &p, &table_id, ¬e)) + if (!zapi_route_notify_decode(zclient->ibuf, &p, &table_id, ¬e, + NULL, NULL)) return -1; switch (note) { |