diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-22 16:35:08 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-24 19:51:37 +0200 |
commit | 472ad3832c1db4802a604e44e049ada8f04b53fa (patch) | |
tree | d0fc5daa52a3fafa888e8736872adb38f5c60f82 /pimd/pim_rp.c | |
parent | pimd: Make pim MSDP pim instance aware to some extent (diff) | |
download | frr-472ad3832c1db4802a604e44e049ada8f04b53fa.tar.xz frr-472ad3832c1db4802a604e44e049ada8f04b53fa.zip |
pimd: Make msdp `struct pim_instance *` aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rp.c')
-rw-r--r-- | pimd/pim_rp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c index 969b28f7f..8e42bf6fb 100644 --- a/pimd/pim_rp.c +++ b/pimd/pim_rp.c @@ -212,9 +212,9 @@ static struct rp_info *pim_rp_find_match_group(struct pim_instance *pim, * * This is a placeholder function for now. */ -static void pim_rp_refresh_group_to_rp_mapping() +static void pim_rp_refresh_group_to_rp_mapping(struct pim_instance *pim) { - pim_msdp_i_am_rp_changed(); + pim_msdp_i_am_rp_changed(pim); } void pim_rp_prefix_list_update(struct pim_instance *pim, @@ -233,7 +233,7 @@ void pim_rp_prefix_list_update(struct pim_instance *pim, } if (refresh_needed) - pim_rp_refresh_group_to_rp_mapping(); + pim_rp_refresh_group_to_rp_mapping(pim); } static int pim_rp_check_interface_addrs(struct rp_info *rp_info, @@ -419,7 +419,7 @@ int pim_rp_new(struct pim_instance *pim, const char *rp, return PIM_RP_NO_PATH; } pim_rp_check_interfaces(pim, rp_all); - pim_rp_refresh_group_to_rp_mapping(); + pim_rp_refresh_group_to_rp_mapping(pim); return PIM_SUCCESS; } @@ -487,7 +487,7 @@ int pim_rp_new(struct pim_instance *pim, const char *rp, } pim_rp_check_interfaces(pim, rp_info); - pim_rp_refresh_group_to_rp_mapping(); + pim_rp_refresh_group_to_rp_mapping(pim); return PIM_SUCCESS; } @@ -550,7 +550,7 @@ int pim_rp_del(struct pim_instance *pim, const char *rp, } listnode_delete(pim->rp_list, rp_info); - pim_rp_refresh_group_to_rp_mapping(); + pim_rp_refresh_group_to_rp_mapping(pim); return PIM_SUCCESS; } @@ -629,7 +629,7 @@ void pim_rp_check_on_if_add(struct pim_interface *pim_ifp) } if (i_am_rp_changed) { - pim_msdp_i_am_rp_changed(); + pim_msdp_i_am_rp_changed(pim); } } @@ -671,7 +671,7 @@ void pim_i_am_rp_re_evaluate(struct pim_instance *pim) } if (i_am_rp_changed) { - pim_msdp_i_am_rp_changed(); + pim_msdp_i_am_rp_changed(pim); } } |