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

Function sctp_asconf_find_param

freebsd/netinet/sctp_asconf.c:1542–1556  ·  view source on GitHub ↗

* find a specific asconf param on our "sent" queue */

Source from the content-addressed store, hash-verified

1540 * find a specific asconf param on our "sent" queue
1541 */
1542static struct sctp_asconf_addr *
1543sctp_asconf_find_param(struct sctp_tcb *stcb, uint32_t correlation_id)
1544{
1545 struct sctp_asconf_addr *aa;
1546
1547 TAILQ_FOREACH(aa, &stcb->asoc.asconf_queue, next) {
1548 if (aa->ap.aph.correlation_id == correlation_id &&
1549 aa->sent == 1) {
1550 /* found it */
1551 return (aa);
1552 }
1553 }
1554 /* didn't find it */
1555 return (NULL);
1556}
1557
1558/*
1559 * process an SCTP_ERROR_CAUSE_IND for a ASCONF-ACK parameter and do

Callers 1

sctp_handle_asconf_ackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected