MCPcopy Create free account
hub / github.com/F-Stack/f-stack / inm_commit

Function inm_commit

freebsd/netinet/in_mcast.c:1156–1169  ·  view source on GitHub ↗

* Mark an in_multi's filter set deltas as committed. * Called by IGMP after a state change has been enqueued. */

Source from the content-addressed store, hash-verified

1154 * Called by IGMP after a state change has been enqueued.
1155 */
1156void
1157inm_commit(struct in_multi *inm)
1158{
1159 struct ip_msource *ims;
1160
1161 CTR2(KTR_IGMPV3, "%s: commit inm %p", __func__, inm);
1162 CTR1(KTR_IGMPV3, "%s: pre commit:", __func__);
1163 inm_print(inm);
1164
1165 RB_FOREACH(ims, ip_msource_tree, &inm->inm_srcs) {
1166 ims->ims_st[0] = ims->ims_st[1];
1167 }
1168 inm->inm_st[0] = inm->inm_st[1];
1169}
1170
1171/*
1172 * Reap unreferenced nodes from an in_multi's filter set.

Callers 4

igmp_initial_joinFunction · 0.85
igmp_handle_state_changeFunction · 0.85
igmp_final_leaveFunction · 0.85

Calls 1

inm_printFunction · 0.85

Tested by

no test coverage detected