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

Function sctp_remove_laddr

freebsd/netinet/sctp_pcb.c:2793–2802  ·  view source on GitHub ↗

* Remove an laddr entry from the local address list (on an assoc) */

Source from the content-addressed store, hash-verified

2791 * Remove an laddr entry from the local address list (on an assoc)
2792 */
2793static void
2794sctp_remove_laddr(struct sctp_laddr *laddr)
2795{
2796
2797 /* remove from the list */
2798 LIST_REMOVE(laddr, sctp_nxt_addr);
2799 sctp_free_ifa(laddr->ifa);
2800 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), laddr);
2801 SCTP_DECR_LADDR_COUNT();
2802}
2803
2804/* sctp_ifap is used to bypass normal local address validation checks */
2805int

Callers 4

sctp_inpcb_freeFunction · 0.85
sctp_free_assocFunction · 0.85
sctp_del_local_addr_epFunction · 0.85

Calls 1

sctp_free_ifaFunction · 0.85

Tested by

no test coverage detected