Add code to figure out who the RP is for group G.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
return i_am_rp;
}
+/*
+ * RP(G)
+ *
+ * Return the RP that the Group belongs too.
+ */
+struct in_addr
+pim_rp_g (struct in_addr group)
+{
+ /*
+ * For staticly configured RP, it is always the qpim_rp
+ */
+ return(qpim_rp);
+}
+
/*
* Set the upstream IP address we want to talk to based upon
* the rp configured and the source address
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