| 3381 | } |
| 3382 | |
| 3383 | static void |
| 3384 | sctp_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 | |
| 3405 | struct sctp_stream_reset_request * |
| 3406 | sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, struct sctp_tmit_chunk **bchk) |
no outgoing calls
no test coverage detected