FreeBSD/sys/netinet/sctp_asconf.c
/*
 * find a specific asconf param on our "sent" queue
 */
find a specific asconf param on our "sent" queue
find a specific asconf param on our " sent " queue
static struct sctp_asconf_addr *
sctp_asconf_find_param(struct sctp_tcb *stcb, uint32_t correlation_id)
{
	struct sctp_asconf_addr *aa;
	TAILQ_FOREACH(aa, &stcb->asoc.asconf_queue, next) {
		if (aa->ap.aph.correlation_id == correlation_id &&
		    aa->sent == 1) {
			return (aa);
		}
	}
	return (NULL);
}
static struct sctp_asconf_addr * sctp_asconf_find_param ( struct sctp_tcb * stcb , uint32_t correlation_id ) { struct sctp_asconf_addr * aa ; TAILQ_FOREACH ( aa , & stcb -> asoc . asconf_queue , next ) { if ( aa -> ap . aph . correlation_id == correlation_id && aa -> sent == 1 ) { return ( aa ) ; } } return ( NULL ) ; }
find a specific asconf param on our "sent" queue
find a specific asconf param on our " sent " queue
/* found it */ /* didn't find it */