diff options
| author | Sarita Patra <saritap@vmware.com> | 2022-07-07 08:03:45 -0700 | 
|---|---|---|
| committer | Sarita Patra <saritap@vmware.com> | 2022-08-03 07:47:36 -0700 | 
| commit | 4459f499c4ad7a835993bfb4b3140ed7b18eaab2 (patch) | |
| tree | 36e909ac1404cdb357bc39d7a5ea2803678972a9 /pimd/pim6_mld.c | |
| parent | 3aa7d2b2c456af58aef2736c4bf64a5e2643ca63 (diff) | |
pim6d: fix clear ipv6 mroute
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim6_mld.c')
| -rw-r--r-- | pimd/pim6_mld.c | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c index 255fd62ba7..c5c98d8024 100644 --- a/pimd/pim6_mld.c +++ b/pimd/pim6_mld.c @@ -2280,6 +2280,22 @@ void gm_ifp_update(struct interface *ifp)  	}  } +void gm_group_delete(struct gm_if *gm_ifp) +{ +	struct gm_sg *sg, *sg_start; + +	sg_start = gm_sgs_first(gm_ifp->sgs); + +	/* clean up all mld groups */ +	frr_each_from (gm_sgs, gm_ifp->sgs, sg, sg_start) { +		THREAD_OFF(sg->t_sg_expire); +		if (sg->oil) +			pim_channel_oil_del(sg->oil, __func__); +		gm_sgs_del(gm_ifp->sgs, sg); +		gm_sg_free(sg); +	} +} +  /*   * CLI (show commands only)   */  | 
