• Home
  • Raw
  • Download

Lines Matching refs:ti_len

76                (tp)->rcv_nxt += (ti)->ti_len; \
79 STAT(tcpstat.tcps_rcvbyte += (ti)->ti_len); \
96 (tp)->rcv_nxt += (ti)->ti_len; \
99 STAT(tcpstat.tcps_rcvbyte += (ti)->ti_len); \
147 i = q->ti_seq + q->ti_len - ti->ti_seq; in tcp_reass()
149 if (i >= ti->ti_len) { in tcp_reass()
151 STAT(tcpstat.tcps_rcvdupbyte += ti->ti_len); in tcp_reass()
162 ti->ti_len -= i; in tcp_reass()
168 STAT(tcpstat.tcps_rcvoobyte += ti->ti_len); in tcp_reass()
176 register int i = (ti->ti_seq + ti->ti_len) - q->ti_seq; in tcp_reass()
179 if (i < q->ti_len) { in tcp_reass()
181 q->ti_len -= i; in tcp_reass()
206 if (tp->t_state == TCPS_SYN_RECEIVED && ti->ti_len) in tcp_reass()
209 tp->rcv_nxt += ti->ti_len; in tcp_reass()
301 ti->ti_len = htons((u_int16_t)tlen); in tcp_input()
321 ti->ti_len = tlen; in tcp_input()
509 if (ti->ti_len == 0) { in tcp_input()
563 ti->ti_len <= sbspace(&so->so_rcv)) { in tcp_input()
570 tp->rcv_nxt += ti->ti_len; in tcp_input()
572 STAT(tcpstat.tcps_rcvbyte += ti->ti_len); in tcp_input()
809 if (ti->ti_len > tp->rcv_wnd) { in tcp_input()
810 todrop = ti->ti_len - tp->rcv_wnd; in tcp_input()
812 ti->ti_len = tp->rcv_wnd; in tcp_input()
871 if (todrop > ti->ti_len in tcp_input()
872 || (todrop == ti->ti_len && (tiflags & TH_FIN) == 0)) { in tcp_input()
885 todrop = ti->ti_len; in tcp_input()
894 ti->ti_len -= todrop; in tcp_input()
907 tp->t_state > TCPS_CLOSE_WAIT && ti->ti_len) { in tcp_input()
917 todrop = (ti->ti_seq+ti->ti_len) - (tp->rcv_nxt+tp->rcv_wnd); in tcp_input()
920 if (todrop >= ti->ti_len) { in tcp_input()
921 STAT(tcpstat.tcps_rcvbyteafterwin += ti->ti_len); in tcp_input()
950 ti->ti_len -= todrop; in tcp_input()
1084 if (ti->ti_len == 0 && tiwin == tp->snd_wnd) { in tcp_input()
1295 if (ti->ti_len == 0 && in tcp_input()
1361 if ((ti->ti_len || (tiflags&TH_FIN)) && in tcp_input()
1453 if (ti->ti_len && (unsigned)ti->ti_len <= 5 && in tcp_input()
1483 if (tiflags & TH_SYN) ti->ti_len++; in tcp_input()
1484 tcp_respond(tp, ti, m, ti->ti_seq+ti->ti_len, (tcp_seq)0, in tcp_input()