summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
authorSoman K S <somanks@gmail.com>2020-11-06 04:09:28 +0100
committerSoman K S <somanks@gmail.com>2020-11-06 04:09:28 +0100
commit77b38a4a7dc1dde3a8c24a650884f956fae11157 (patch)
treee204bfa341c5c1e1473875a24a1fbc88f894cafc /lib/log.c
parentMerge pull request #7466 from idryzhov/fix-bfd-null-deref (diff)
downloadfrr-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 'lib/log.c')
-rw-r--r--lib/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/log.c b/lib/log.c
index b629658f7..7b37ba7f2 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -455,7 +455,8 @@ static const struct zebra_desc_table command_types[] = {
DESC_ENTRY(ZEBRA_NEIGH_DISCOVER),
DESC_ENTRY(ZEBRA_NHG_ADD),
DESC_ENTRY(ZEBRA_NHG_DEL),
- DESC_ENTRY(ZEBRA_NHG_NOTIFY_OWNER)};
+ DESC_ENTRY(ZEBRA_NHG_NOTIFY_OWNER),
+ DESC_ENTRY(ZEBRA_ROUTE_NOTIFY_REQUEST)};
#undef DESC_ENTRY
static const struct zebra_desc_table unknown = {0, "unknown", '?'};