FreeBSD/sys/netinet6/in6_mcast.c
/*
 * Mark an in6_multi's filter set deltas as committed.
 * Called by MLD after a state change has been enqueued.
 */
Mark an in6_multi's filter set deltas as committed.
Called by MLD after a state change has been enqueued.
Mark an in6_multi ' s filter set deltas as committed . Called by MLD after a state change has been enqueued .
void
in6m_commit(struct in6_multi *inm)
{
	struct ip6_msource	*ims;
	CTR2(KTR_MLD, "%s: commit inm %p", __func__, inm);
	CTR1(KTR_MLD, "%s: pre commit:", __func__);
	in6m_print(inm);
	RB_FOREACH(ims, ip6_msource_tree, &inm->in6m_srcs) {
		ims->im6s_st[0] = ims->im6s_st[1];
	}
	inm->in6m_st[0] = inm->in6m_st[1];
}
void in6m_commit ( struct in6_multi * inm ) { struct ip6_msource * ims ; CTR2 ( KTR_MLD , " " , __func__ , inm ) ; CTR1 ( KTR_MLD , " " , __func__ ) ; in6m_print ( inm ) ; RB_FOREACH ( ims , ip6_msource_tree , & inm -> in6m_srcs ) { ims -> im6s_st [ 0 ] = ims -> im6s_st [ 1 ] ; } inm -> in6m_st [ 0 ] = inm -> in6m_st [ 1 ] ; }
Mark an in6_multi's filter set deltas as committed.
Mark an in6_multi ' s filter set deltas as committed .