FreeBSD/sys/netinet/in_mcast.c
/*
 * Purge all source nodes from an in_multi's filter set.
 */
Purge all source nodes from an in_multi's filter set.
Purge all source nodes from an in_multi ' s filter set .
static void
inm_purge(struct in_multi *inm)
{
	struct ip_msource	*ims, *tims;
	RB_FOREACH_SAFE(ims, ip_msource_tree, &inm->inm_srcs, tims) {
		CTR2(KTR_IGMPV3, "%s: free ims %p", __func__, ims);
		RB_REMOVE(ip_msource_tree, &inm->inm_srcs, ims);
		free(ims, M_IPMSOURCE);
		inm->inm_nsrc--;
	}
}
static void inm_purge ( struct in_multi * inm ) { struct ip_msource * ims , * tims ; RB_FOREACH_SAFE ( ims , ip_msource_tree , & inm -> inm_srcs , tims ) { CTR2 ( KTR_IGMPV3 , " " , __func__ , ims ) ; RB_REMOVE ( ip_msource_tree , & inm -> inm_srcs , ims ) ; free ( ims , M_IPMSOURCE ) ; inm -> inm_nsrc -- ; } }
Purge all source nodes from an in_multi's filter set.
Purge all source nodes from an in_multi ' s filter set .