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

Function inm_clear_recorded

freebsd/netinet/in_mcast.c:658–673  ·  view source on GitHub ↗

* Clear recorded source entries for a group. * Used by the IGMP code. Caller must hold the IN_MULTI lock. * FIXME: Should reap. */

Source from the content-addressed store, hash-verified

656 * FIXME: Should reap.
657 */
658void
659inm_clear_recorded(struct in_multi *inm)
660{
661 struct ip_msource *ims;
662
663 IN_MULTI_LIST_LOCK_ASSERT();
664
665 RB_FOREACH(ims, ip_msource_tree, &inm->inm_srcs) {
666 if (ims->ims_stp) {
667 ims->ims_stp = 0;
668 --inm->inm_st[1].iss_rec;
669 }
670 }
671 KASSERT(inm->inm_st[1].iss_rec == 0,
672 ("%s: iss_rec %d not 0", __func__, inm->inm_st[1].iss_rec));
673}
674
675/*
676 * Record a source as pending for a Source-Group IGMPv3 query.

Callers 5

igmp_ifdetachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected