* Mark an in_multi's filter set deltas as committed. * Called by IGMP after a state change has been enqueued. */
| 1154 | * Called by IGMP after a state change has been enqueued. |
| 1155 | */ |
| 1156 | void |
| 1157 | inm_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. |
no test coverage detected