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

Function sctp_asconf_iterator_end

freebsd/netinet/sctp_asconf.c:2263–2282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2261}
2262
2263void
2264sctp_asconf_iterator_end(void *ptr, uint32_t val SCTP_UNUSED)
2265{
2266 struct sctp_asconf_iterator *asc;
2267 struct sctp_ifa *ifa;
2268 struct sctp_laddr *l, *nl;
2269
2270 asc = (struct sctp_asconf_iterator *)ptr;
2271 LIST_FOREACH_SAFE(l, &asc->list_of_work, sctp_nxt_addr, nl) {
2272 ifa = l->ifa;
2273 if (l->action == SCTP_ADD_IP_ADDRESS) {
2274 /* Clear the defer use flag */
2275 ifa->localifa_flags &= ~SCTP_ADDR_DEFER_USE;
2276 }
2277 sctp_free_ifa(ifa);
2278 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), l);
2279 SCTP_DECR_LADDR_COUNT();
2280 }
2281 SCTP_FREE(asc, SCTP_M_ASC_IT);
2282}
2283
2284/*
2285 * sa is the sockaddr to ask the peer to set primary to.

Callers 2

sctp_handle_addr_wqFunction · 0.85
sctp_addr_mgmt_ep_saFunction · 0.85

Calls 1

sctp_free_ifaFunction · 0.85

Tested by

no test coverage detected