summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_nht.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:03:54 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-20 03:03:54 +0200
commit9a233a02be66401489e12b99f1e28ece056594ea (patch)
tree77f6354a34329712a2ed19278b9a33991f153d89 /bgpd/bgp_nht.h
parentEnsure that if 'update-source <interface>' is specified, that interface is (diff)
downloadfrr-9a233a02be66401489e12b99f1e28ece056594ea.tar.xz
frr-9a233a02be66401489e12b99f1e28ece056594ea.zip
Ensure connected nexthop entry for the peer is freed when the peer is freed.
Diffstat (limited to 'bgpd/bgp_nht.h')
-rw-r--r--bgpd/bgp_nht.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bgpd/bgp_nht.h b/bgpd/bgp_nht.h
index 2c779802b..963dd00f2 100644
--- a/bgpd/bgp_nht.h
+++ b/bgpd/bgp_nht.h
@@ -56,4 +56,14 @@ extern int bgp_find_or_add_nexthop(struct bgp *bgp, afi_t a,
*/
extern void bgp_unlink_nexthop(struct bgp_info *p);
+/**
+ * bgp_delete_connected_nexthop() - Reset the 'peer' pointer for a connected
+ * nexthop entry. If no paths reference the nexthop, it will be unregistered
+ * and freed.
+ * ARGUMENTS:
+ * afi - afi: AFI_IP or AF_IP6
+ * peer - Ptr to peer
+ */
+extern void bgp_delete_connected_nexthop (afi_t afi, struct peer *peer);
+
#endif /* _BGP_NHT_H */