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

Function sctp_free_ifn

freebsd/netinet/sctp_pcb.c:245–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void
246sctp_free_ifn(struct sctp_ifn *sctp_ifnp)
247{
248 if (SCTP_DECREMENT_AND_CHECK_REFCOUNT(&sctp_ifnp->refcount)) {
249 /* We zero'd the count */
250 if (sctp_ifnp->vrf) {
251 sctp_free_vrf(sctp_ifnp->vrf);
252 }
253 SCTP_FREE(sctp_ifnp, SCTP_M_IFN);
254 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_ifns), 1);
255 }
256}
257
258void
259sctp_update_ifn_mtu(uint32_t ifn_index, uint32_t mtu)

Callers 3

sctp_free_ifaFunction · 0.85
sctp_delete_ifnFunction · 0.85
sctp_remove_ifa_from_ifnFunction · 0.85

Calls 1

sctp_free_vrfFunction · 0.85

Tested by

no test coverage detected