| 3328 | } |
| 3329 | |
| 3330 | void |
| 3331 | sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t *list) |
| 3332 | { |
| 3333 | uint32_t i; |
| 3334 | uint16_t temp; |
| 3335 | |
| 3336 | /* |
| 3337 | * We set things to 0xffffffff since this is the last delivered |
| 3338 | * sequence and we will be sending in 0 after the reset. |
| 3339 | */ |
| 3340 | |
| 3341 | if (number_entries) { |
| 3342 | for (i = 0; i < number_entries; i++) { |
| 3343 | temp = ntohs(list[i]); |
| 3344 | if (temp >= stcb->asoc.streamincnt) { |
| 3345 | continue; |
| 3346 | } |
| 3347 | stcb->asoc.strmin[temp].last_mid_delivered = 0xffffffff; |
| 3348 | } |
| 3349 | } else { |
| 3350 | list = NULL; |
| 3351 | for (i = 0; i < stcb->asoc.streamincnt; i++) { |
| 3352 | stcb->asoc.strmin[i].last_mid_delivered = 0xffffffff; |
| 3353 | } |
| 3354 | } |
| 3355 | sctp_ulp_notify(SCTP_NOTIFY_STR_RESET_RECV, stcb, number_entries, (void *)list, SCTP_SO_NOT_LOCKED); |
| 3356 | } |
| 3357 | |
| 3358 | static void |
| 3359 | sctp_reset_out_streams(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t *list) |
no test coverage detected