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

Function sctp_reset_clear_pending

freebsd/netinet/sctp_input.c:3383–3403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3381}
3382
3383static void
3384sctp_reset_clear_pending(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t *list)
3385{
3386 uint32_t i;
3387 uint16_t temp;
3388
3389 if (number_entries > 0) {
3390 for (i = 0; i < number_entries; i++) {
3391 temp = ntohs(list[i]);
3392 if (temp >= stcb->asoc.streamoutcnt) {
3393 /* no such stream */
3394 continue;
3395 }
3396 stcb->asoc.strmout[temp].state = SCTP_STREAM_OPEN;
3397 }
3398 } else {
3399 for (i = 0; i < stcb->asoc.streamoutcnt; i++) {
3400 stcb->asoc.strmout[i].state = SCTP_STREAM_OPEN;
3401 }
3402 }
3403}
3404
3405struct sctp_stream_reset_request *
3406sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, struct sctp_tmit_chunk **bchk)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected