diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-08-05 09:07:46 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:05 -0500 |
| commit | 75a26779e8f25e9868f1f33e0fd35677f17c978b (patch) | |
| tree | 095795d5b355c285bc7c1683c2ca2b072255cfec /pimd/pim_rp.h | |
| parent | dc686f820be848d9b80e3f3918228d6eb321c826 (diff) | |
pimd: Refactor RP code and start the ability to handle ranges
Refactor the qpim_rp into pim_rp.c so that the global data
is protected. This will allow us to easily add the group
ranges.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rp.h')
| -rw-r--r-- | pimd/pim_rp.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pimd/pim_rp.h b/pimd/pim_rp.h index ccbc5b6ad4..6299971567 100644 --- a/pimd/pim_rp.h +++ b/pimd/pim_rp.h @@ -21,12 +21,21 @@ #ifndef PIM_RP_H #define PIM_RP_H +int pim_rp_new (const char *rp, const char *group); +int pim_rp_del (const char *rp, const char *group); + +int pim_rp_config_write (struct vty *vty); + int pim_rp_setup (void); + 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_check_is_my_ip_address (struct in_addr group, struct in_addr dest_addr); + int pim_rp_set_upstream_addr (struct in_addr *up, struct in_addr source); + struct pim_rpf *pim_rp_g (struct in_addr group); -void pim_rp_forward_packet (struct ip *ip_hdr); #define I_am_RP(G) pim_rp_i_am_rp ((G)) #define RP(G) pim_rp_g ((G)) |
