summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msdp.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-06-09 17:40:04 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-06-09 17:40:04 +0200
commitfb35f654e3e31a762b1b453efc6248df78c1717e (patch)
treef92aa64964207afc7669a6a3d79f1a7efa185044 /pimd/pim_msdp.c
parenttopotests: new test topology for MSDP (diff)
downloadfrr-fb35f654e3e31a762b1b453efc6248df78c1717e.tar.xz
frr-fb35f654e3e31a762b1b453efc6248df78c1717e.zip
pimd: rename some MSDP functions
Rename and shorten function names to make them uniform. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_msdp.c')
-rw-r--r--pimd/pim_msdp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c
index 6de793ff4..095c6de54 100644
--- a/pimd/pim_msdp.c
+++ b/pimd/pim_msdp.c
@@ -1260,7 +1260,7 @@ void pim_msdp_mg_free(struct pim_instance *pim, struct pim_msdp_mg **mgp)
/* SIP is being removed - tear down all active peer sessions */
for (ALL_LIST_ELEMENTS((*mgp)->mbr_list, n, nn, mbr))
- pim_msdp_mg_mbr_do_del((*mgp), mbr);
+ pim_msdp_mg_mbr_del((*mgp), mbr);
if (PIM_DEBUG_MSDP_EVENTS) {
zlog_debug("MSDP mesh-group %s deleted",
@@ -1315,7 +1315,7 @@ static void pim_msdp_mg_mbr_free(struct pim_msdp_mg_mbr *mbr)
XFREE(MTYPE_PIM_MSDP_MG_MBR, mbr);
}
-void pim_msdp_mg_mbr_do_del(struct pim_msdp_mg *mg, struct pim_msdp_mg_mbr *mbr)
+void pim_msdp_mg_mbr_del(struct pim_msdp_mg *mg, struct pim_msdp_mg_mbr *mbr)
{
/* Delete active peer session if any */
if (mbr->mp) {
@@ -1335,7 +1335,7 @@ void pim_msdp_mg_mbr_do_del(struct pim_msdp_mg *mg, struct pim_msdp_mg_mbr *mbr)
}
}
-static void pim_msdp_mg_src_do_del(struct pim_msdp_mg *mg)
+static void pim_msdp_src_del(struct pim_msdp_mg *mg)
{
struct pim_msdp_mg_mbr *mbr;
struct listnode *mbr_node;
@@ -1482,14 +1482,14 @@ void pim_msdp_exit(struct pim_instance *pim)
pim->msdp.work_obuf = NULL;
}
-void pim_msdp_mg_change_source(struct pim_instance *pim, struct pim_msdp_mg *mg,
- struct in_addr *ai)
+void pim_msdp_mg_src_add(struct pim_instance *pim, struct pim_msdp_mg *mg,
+ struct in_addr *ai)
{
struct pim_msdp_mg_mbr *mbr;
struct listnode *mbr_node;
/* Stop all connections and remove data structures. */
- pim_msdp_mg_src_do_del(mg);
+ pim_msdp_src_del(mg);
/* Set new address. */
mg->src_ip = *ai;
@@ -1512,9 +1512,9 @@ void pim_msdp_mg_change_source(struct pim_instance *pim, struct pim_msdp_mg *mg,
mg->mesh_group_name, &mg->src_ip);
}
-struct pim_msdp_mg_mbr *pim_msdp_mg_add_peer(struct pim_instance *pim,
- struct pim_msdp_mg *mg,
- struct in_addr *ia)
+struct pim_msdp_mg_mbr *pim_msdp_mg_mbr_add(struct pim_instance *pim,
+ struct pim_msdp_mg *mg,
+ struct in_addr *ia)
{
struct pim_msdp_mg_mbr *mbr;