Lines Matching defs:tp1
2379 struct sctp_tmit_chunk *tp1;
2381 tp1 = TAILQ_FIRST(&stcb->asoc.sent_queue);
2382 while (tp1) {
2383 if (tp1->rec.data.TSN_seq == tsn) {
2387 if (compare_with_wrap(tp1->rec.data.TSN_seq, tsn,
2390 tp1 = NULL;
2393 tp1 = TAILQ_NEXT(tp1, sctp_next);
2395 if (tp1 == NULL) {
2398 tp1 = TAILQ_FIRST(&stcb->asoc.sent_queue);
2399 while (tp1) {
2400 if (tp1->rec.data.TSN_seq == tsn) {
2404 tp1 = TAILQ_NEXT(tp1, sctp_next);
2407 if (tp1 == NULL) {
2410 if ((tp1) && (tp1->sent < SCTP_DATAGRAM_ACKED)) {
2412 if (((tp1->rec.data.state_flags & SCTP_WINDOW_PROBE) == SCTP_WINDOW_PROBE) &&
2422 ddp = (u_int8_t *)(mtod(tp1->data, vaddr_t) +
2434 if (tp1->sent != SCTP_DATAGRAM_RESEND) {
2438 tp1->rec.data.ect_nonce = 0;
2440 if (tp1->do_rtt) {
2445 tp1->whoTo->rto_pending = 0;
2446 tp1->do_rtt = 0;
2449 tp1->sent = SCTP_DATAGRAM_RESEND;
2455 tp1->rec.data.doing_fast_retransmit = 1;
2460 tp1->rec.data.fast_retran_tsn = stcb->asoc.sending_seq;
2462 tp1->rec.data.fast_retran_tsn = (TAILQ_FIRST(&stcb->asoc.send_queue))->rec.data.TSN_seq;
2467 stcb, tp1->whoTo);
2469 stcb, tp1->whoTo);
2472 sctp_flight_size_decrease(tp1);
2473 sctp_total_flight_decrease(stcb, tp1);
2474 tp1->snd_count--;
2480 TAILQ_FOREACH(tp1, &stcb->asoc.sent_queue, sctp_next) {
2481 if (tp1->sent == SCTP_DATAGRAM_RESEND)
2484 TAILQ_FOREACH(tp1, &stcb->asoc.control_send_queue,
2486 if (tp1->sent == SCTP_DATAGRAM_RESEND)