• 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()
504 if (ti->ti_len == 0) { in tcp_input()
558 ti->ti_len <= sbspace(&so->so_rcv)) { in tcp_input()
565 tp->rcv_nxt += ti->ti_len; in tcp_input()
567 STAT(tcpstat.tcps_rcvbyte += ti->ti_len); in tcp_input()
803 if (ti->ti_len > tp->rcv_wnd) { in tcp_input()
804 todrop = ti->ti_len - tp->rcv_wnd; in tcp_input()
806 ti->ti_len = tp->rcv_wnd; in tcp_input()
865 if (todrop > ti->ti_len in tcp_input()
866 || (todrop == ti->ti_len && (tiflags & TH_FIN) == 0)) { in tcp_input()
879 todrop = ti->ti_len; in tcp_input()
888 ti->ti_len -= todrop; in tcp_input()
901 tp->t_state > TCPS_CLOSE_WAIT && ti->ti_len) { in tcp_input()
911 todrop = (ti->ti_seq+ti->ti_len) - (tp->rcv_nxt+tp->rcv_wnd); in tcp_input()
914 if (todrop >= ti->ti_len) { in tcp_input()
915 STAT(tcpstat.tcps_rcvbyteafterwin += ti->ti_len); in tcp_input()
944 ti->ti_len -= todrop; in tcp_input()
1078 if (ti->ti_len == 0 && tiwin == tp->snd_wnd) { in tcp_input()
1289 if (ti->ti_len == 0 && in tcp_input()
1355 if ((ti->ti_len || (tiflags&TH_FIN)) && in tcp_input()
1447 if (ti->ti_len && (unsigned)ti->ti_len <= 5 && in tcp_input()
1477 if (tiflags & TH_SYN) ti->ti_len++; in tcp_input()
1478 tcp_respond(tp, ti, m, ti->ti_seq+ti->ti_len, (tcp_seq)0, in tcp_input()