summaryrefslogtreecommitdiffstats
path: root/pimd/pim_neighbor.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-07 21:34:29 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:08 +0100
commit99deb321fcbd6b0519d21ccc1498e88341bd6bd7 (patch)
tree0375eade2ec1452e01b665f38668c695e27a2c6e /pimd/pim_neighbor.h
parentpimd: Allow ip address selection for BGP unnumbered (diff)
downloadfrr-99deb321fcbd6b0519d21ccc1498e88341bd6bd7.tar.xz
frr-99deb321fcbd6b0519d21ccc1498e88341bd6bd7.zip
pimd: Add the ability to lookup neighbor on a interface
On a specified interface return the single neighbor on that interface. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_neighbor.h')
-rw-r--r--pimd/pim_neighbor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_neighbor.h b/pimd/pim_neighbor.h
index 4bf78d063..3f5a121d4 100644
--- a/pimd/pim_neighbor.h
+++ b/pimd/pim_neighbor.h
@@ -48,6 +48,8 @@ void pim_neighbor_free(struct pim_neighbor *neigh);
struct pim_neighbor *pim_neighbor_find(struct interface *ifp,
struct in_addr source_addr);
+struct pim_neighbor *pim_neighbor_find_if (struct interface *ifp);
+
#define PIM_NEIGHBOR_SEND_DELAY 0
#define PIM_NEIGHBOR_SEND_NOW 1