diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 18:04:20 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 18:04:20 -0700 |
| commit | 078430f609ecd4a4e3d9690662a396c36bff53f7 (patch) | |
| tree | ae21e09d28e03c3e564efe123ca9fdbabe7da7c7 /bgpd/bgp_nht.h | |
| parent | 5b6dc0dddce563d4806d8182c2a9b919cf906ca2 (diff) | |
bgpd-nht-import-check-fix.patch
BGP: Fix network import check use with NHT instead of scanner
When next hop tracking was implemented and the bgp scanner was eliminated,
the "network import-check" command got broken. This patch fixes that
issue. NHT is used to not just track nexthops, but also the static routes
that are announced as part of BGP's network command. The routes are
registered only when import-check is enabled. To optimize performance,
we register static routes only when import-check is enabled.
Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_nht.h')
| -rw-r--r-- | bgpd/bgp_nht.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nht.h b/bgpd/bgp_nht.h index 963dd00f27..952268789f 100644 --- a/bgpd/bgp_nht.h +++ b/bgpd/bgp_nht.h @@ -25,7 +25,7 @@ /** * bgp_parse_nexthop_update() - parse a nexthop update message from Zebra. */ -extern void bgp_parse_nexthop_update(); +extern void bgp_parse_nexthop_update(int command); /** * bgp_find_nexthop() - lookup the nexthop cache table for the bnc object |
