Lines Matching refs:snd_nxt

478 	 * snd_nxt.  There may be SACK information that allows us to avoid
479 * resending already delivered data. Adjust snd_nxt accordingly.
481 if (SACK_ENABLED(tp) && SEQ_LT(tp->snd_nxt, tp->snd_max))
484 off = tp->snd_nxt - tp->snd_una;
601 * If snd_nxt == snd_max and we have transmitted a FIN, the
605 * acks after fast-retransmit because TCP will reset snd_nxt
608 * In the normal retransmit-FIN-only case, however, snd_nxt will
638 (tp->snd_nxt - tp->sack_newdata) -
654 if ((flags & TH_SYN) && SEQ_GT(tp->snd_nxt, tp->snd_una)) {
716 * cancel pending retransmit, pull snd_nxt back
726 tp->snd_nxt = tp->snd_una;
748 (tp->snd_nxt - tp->snd_una))) {
851 if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc))
898 if (SEQ_LT(tp->snd_nxt, tp->snd_max))
997 (!(tp->t_flags & TF_SENTFIN) || tp->snd_nxt == tp->snd_una))
1098 tp->snd_nxt = tp->iss;
1197 !SEQ_LT(tp->snd_nxt, tp->snd_max) && !sack_rxmit) {
1434 else if (SEQ_LT(tp->snd_nxt, tp->snd_max) || sack_rxmit) {
1632 !SEQ_LT(tp->snd_nxt, tp->snd_max) && !sack_rxmit) {
1645 !SEQ_LT(tp->snd_nxt, tp->snd_max) && !sack_rxmit) {
1656 tp->snd_nxt == tp->snd_max)
1657 tp->snd_nxt--;
1659 * If we are doing retransmissions, then snd_nxt will
1664 * (and no SYN or FIN), use snd_max instead of snd_nxt
1667 * right edge of the window, so use snd_nxt in that
1673 th->th_seq = htonl(tp->snd_nxt);
1734 if (SEQ_GT(tp->snd_up, tp->snd_nxt)) {
1735 th->th_urp = htons((u_short)(tp->snd_up - tp->snd_nxt));
1796 tcp_seq startseq = tp->snd_nxt;
1799 * Advance snd_nxt over sequence space of this segment.
1803 tp->snd_nxt++;
1806 tp->snd_nxt++;
1812 tp->snd_nxt += len;
1813 if (SEQ_GT(tp->snd_nxt, tp->snd_max)) {
1814 tp->snd_max = tp->snd_nxt;
1836 ((sack_rxmit && tp->snd_nxt != tp->snd_max) ||
1837 tp->snd_nxt != tp->snd_una ||
1850 * persist mode (no window) we do not update snd_nxt.
1860 if (SEQ_GT(tp->snd_nxt + xlen, tp->snd_max))
1861 tp->snd_max = tp->snd_nxt + len;
2098 if (SEQ_GT((tp->snd_nxt - lost),
2100 tp->snd_nxt -= lost;
2102 tp->snd_nxt = tp->snd_una;