summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nht.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 02:47:21 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 02:47:21 +0200
commitfc9a856f7051b9e5ffd1cf0938ca2be20388a95f (patch)
treeb7e776b34f27c8476feca6b5e90348b2db1f1b5f /bgpd/bgp_nht.h
parentzebra: zebra-nht-routemap.patch (diff)
downloadfrr-fc9a856f7051b9e5ffd1cf0938ca2be20388a95f.tar.xz
frr-fc9a856f7051b9e5ffd1cf0938ca2be20388a95f.zip
bgpd-nht-connected-route.patch
BGP: Use next hop tracking for connected routes too And cleanup obsolete code in bgp_scan and bgp_import.
Diffstat (limited to 'bgpd/bgp_nht.h')
-rw-r--r--bgpd/bgp_nht.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/bgpd/bgp_nht.h b/bgpd/bgp_nht.h
index 0e43f0a44..0897d43a0 100644
--- a/bgpd/bgp_nht.h
+++ b/bgpd/bgp_nht.h
@@ -31,12 +31,9 @@ extern void bgp_parse_nexthop_update();
* bgp_find_nexthop() - lookup the nexthop cache table for the bnc object
* ARGUMENTS:
* p - path for which the nexthop object is being looked up
- * c - output variable that stores whether the nexthop object has changed
- * since last time.
- * m - output variable that stores whether the nexthop metric has changed
- * since last time.
+ * connected - True if NH MUST be a connected route
*/
-extern int bgp_find_nexthop(struct bgp_info *p, int *c, int *m);
+extern int bgp_find_nexthop(struct bgp_info *p, int connected);
/**
* bgp_find_or_add_nexthop() - lookup the nexthop cache table for the bnc
@@ -45,12 +42,11 @@ extern int bgp_find_nexthop(struct bgp_info *p, int *c, int *m);
* ARGUMENTS:
* a - afi: AFI_IP or AF_IP6
* p - path for which the nexthop object is being looked up
- * c - output variable that stores whether the nexthop object has changed
- * since last time.
- * m - output variable that stores whether the nexthop metric has changed
- * since last time.
+ * peer - The BGP peer associated with this NHT
+ * connected - True if NH MUST be a connected route
*/
-extern int bgp_find_or_add_nexthop(afi_t a, struct bgp_info *p, int *c, int *m);
+extern int bgp_find_or_add_nexthop(afi_t a, struct bgp_info *p,
+ struct peer *peer, int connected);
/**
* bgp_unlink_nexthop() - Unlink the nexthop object from the path structure.