FreeBSD/sys/netinet/in_mcast.c
/*
 * Mark an in_multi's filter set deltas as committed.
 * Called by IGMP after a state change has been enqueued.
 */
Mark an in_multi's filter set deltas as committed.
Called by IGMP after a state change has been enqueued.
Mark an in_multi ' s filter set deltas as committed . Called by IGMP after a state change has been enqueued .
void
inm_commit(struct in_multi *inm)
{
	struct ip_msource	*ims;
	CTR2(KTR_IGMPV3, "%s: commit inm %p", __func__, inm);
	CTR1(KTR_IGMPV3, "%s: pre commit:", __func__);
	inm_print(inm);
	RB_FOREACH(ims, ip_msource_tree, &inm->inm_srcs) {
		ims->ims_st[0] = ims->ims_st[1];
	}
	inm->inm_st[0] = inm->inm_st[1];
}
void inm_commit ( struct in_multi * inm ) { struct ip_msource * ims ; CTR2 ( KTR_IGMPV3 , " " , __func__ , inm ) ; CTR1 ( KTR_IGMPV3 , " " , __func__ ) ; inm_print ( inm ) ; RB_FOREACH ( ims , ip_msource_tree , & inm -> inm_srcs ) { ims -> ims_st [ 0 ] = ims -> ims_st [ 1 ] ; } inm -> inm_st [ 0 ] = inm -> inm_st [ 1 ] ; }
Mark an in_multi's filter set deltas as committed.
Mark an in_multi ' s filter set deltas as committed .