summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rp.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-10-02 19:34:11 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-05-26 02:38:34 +0200
commit716940576443004c2a6dd14276bc28b438a371e0 (patch)
treef416412080e2bc4529142c0770ccfc037e409e4b /pimd/pim_rp.h
parentpimd: Add RP check code (diff)
downloadfrr-716940576443004c2a6dd14276bc28b438a371e0.tar.xz
frr-716940576443004c2a6dd14276bc28b438a371e0.zip
pimd: Add code to get RP(G)
Add code to figure out who the RP is for group G. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rp.h')
-rw-r--r--pimd/pim_rp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pimd/pim_rp.h b/pimd/pim_rp.h
index 4639e7ceb..3938e7251 100644
--- a/pimd/pim_rp.h
+++ b/pimd/pim_rp.h
@@ -24,5 +24,8 @@
void pim_rp_check_rp (struct in_addr old, struct in_addr new);
int pim_rp_i_am_rp (struct in_addr group);
int pim_rp_set_upstream_addr (struct in_addr *up, struct in_addr source);
+struct in_addr pim_rp_g (struct in_addr group);
+#define I_am_RP(G) pim_rp_i_am_rp ((G))
+#define RP(G) pim_rp_g ((G))
#endif