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

Function sctp_free_vrf

freebsd/netinet/sctp_pcb.c:230–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void
231sctp_free_vrf(struct sctp_vrf *vrf)
232{
233 if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&vrf->refcount)) {
234 if (vrf->vrf_addr_hash) {
235 SCTP_HASH_FREE(vrf->vrf_addr_hash, vrf->vrf_addr_hashmark);
236 vrf->vrf_addr_hash = NULL;
237 }
238 /* We zero'd the count */
239 LIST_REMOVE(vrf, next_vrf);
240 SCTP_FREE(vrf, SCTP_M_VRF);
241 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_vrfs), 1);
242 }
243}
244
245void
246sctp_free_ifn(struct sctp_ifn *sctp_ifnp)

Callers 1

sctp_free_ifnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected