summaryrefslogtreecommitdiffstats
path: root/pimd/pim_iface.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-10-10 01:50:13 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-10 02:24:31 +0200
commitd5c65bf1a2b43d97e19e169223d8a33269bc6625 (patch)
tree543831bbc4aa6e90c786cffe7c5639732002590b /pimd/pim_iface.c
parentlib: Don't add/del from name tree if name isnt set (diff)
downloadfrr-d5c65bf1a2b43d97e19e169223d8a33269bc6625.tar.xz
frr-d5c65bf1a2b43d97e19e169223d8a33269bc6625.zip
*: Cleanup interface creation apis
Cleanup the interface creation apis to make it more clear what they are doing. Make it explicit that the creation via name/ifindex will only add it to the appropriate list. Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_iface.c')
-rw-r--r--pimd/pim_iface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c
index bc8dedc4f..3ee9caebc 100644
--- a/pimd/pim_iface.c
+++ b/pimd/pim_iface.c
@@ -1476,7 +1476,7 @@ void pim_if_create_pimreg(struct pim_instance *pim)
snprintf(pimreg_name, sizeof(pimreg_name), "pimreg%u",
pim->vrf->data.l.table_id);
- pim->regiface = if_create(pimreg_name, pim->vrf_id);
+ pim->regiface = if_create_name(pimreg_name, pim->vrf_id);
pim->regiface->ifindex = PIM_OIF_PIM_REGISTER_VIF;
pim_if_new(pim->regiface, false, false, true,