summaryrefslogtreecommitdiffstats
path: root/pimd/pim_nb_config.c
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2023-01-03 14:37:34 +0100
committerMobashshera Rasool <mrasool@vmware.com>2023-06-07 08:58:29 +0200
commite7356fdba11691483d3e927d74aa50ffc62e900b (patch)
treefca9149be4c5181d5af0e1df72920d528075e3e8 /pimd/pim_nb_config.c
parentMerge pull request #13622 from kuldeepkash/bgp_always_compare_med (diff)
downloadfrr-e7356fdba11691483d3e927d74aa50ffc62e900b.tar.xz
frr-e7356fdba11691483d3e927d74aa50ffc62e900b.zip
pimd, pim6d: Move api pim_if_membership_clear
Move pim_if_membership_clear api from pimd/pim_nb_config.c to pimd/pim_iface.c Also fixed curly braces warning WARNING: braces {} are not necessary for single statement blocks 1773: FILE: /tmp/f1-127504/pim_iface.c:1773: Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Diffstat (limited to 'pimd/pim_nb_config.c')
-rw-r--r--pimd/pim_nb_config.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/pimd/pim_nb_config.c b/pimd/pim_nb_config.c
index d7e415455..d5d864f4a 100644
--- a/pimd/pim_nb_config.c
+++ b/pimd/pim_nb_config.c
@@ -45,20 +45,6 @@ MACRO_REQUIRE_SEMICOLON()
#define yang_dnode_get_pimaddr yang_dnode_get_ipv4
#endif /* PIM_IPV != 6 */
-static void pim_if_membership_clear(struct interface *ifp)
-{
- struct pim_interface *pim_ifp;
-
- pim_ifp = ifp->info;
- assert(pim_ifp);
-
- if (pim_ifp->pim_enable && pim_ifp->gm_enable) {
- return;
- }
-
- pim_ifchannel_membership_clear(ifp);
-}
-
/*
* When PIM is disabled on interface, IGMPv3 local membership
* information is not injected into PIM interface state.