Home | History | Annotate | Download | only in slirp

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;
149 if (i >= ti->ti_len) {
151 STAT(tcpstat.tcps_rcvdupbyte += ti->ti_len);
162 ti->ti_len -= i;
168 STAT(tcpstat.tcps_rcvoobyte += ti->ti_len);
176 register int i = (ti->ti_seq + ti->ti_len) - q->ti_seq;
179 if (i < q->ti_len) {
181 q->ti_len -= i;
206 if (tp->t_state == TCPS_SYN_RECEIVED && ti->ti_len)
209 tp->rcv_nxt += ti->ti_len;
301 ti->ti_len = htons((u_int16_t)tlen);
321 ti->ti_len = tlen;
499 * SEQ_LT(tp->last_ack_sent, ti->ti_seq + ti->ti_len)) {
504 if (ti->ti_len == 0) {
558 ti->ti_len <= sbspace(&so->so_rcv)) {
565 tp->rcv_nxt += ti->ti_len;
567 STAT(tcpstat.tcps_rcvbyte += ti->ti_len);
803 if (ti->ti_len > tp->rcv_wnd) {
804 todrop = ti->ti_len - tp->rcv_wnd;
806 ti->ti_len = tp->rcv_wnd;
844 * tcpstat.tcps_rcvdupbyte += ti->ti_len;
865 if (todrop > ti->ti_len
866 || (todrop == ti->ti_len && (tiflags & TH_FIN) == 0)) {
879 todrop = ti->ti_len;
888 ti->ti_len -= todrop;
901 tp->t_state > TCPS_CLOSE_WAIT && ti->ti_len) {
911 todrop = (ti->ti_seq+ti->ti_len) - (tp->rcv_nxt+tp->rcv_wnd);
914 if (todrop >= ti->ti_len) {
915 STAT(tcpstat.tcps_rcvbyteafterwin += ti->ti_len);
944 ti->ti_len -= todrop;
953 * SEQ_LT(tp->last_ack_sent, ti->ti_seq + ti->ti_len +
1078 if (ti->ti_len == 0 && tiwin == tp->snd_wnd) {
1289 if (ti->ti_len == 0 &&
1355 if ((ti->ti_len || (tiflags&TH_FIN)) &&
1440 /* if (ti->ti_len && (unsigned)ti->ti_len < tp->t_maxseg) {
1442 /* if ((ti->ti_len && (unsigned)ti->ti_len < tp->t_maxseg &&
1447 if (ti->ti_len && (unsigned)ti->ti_len <= 5 &&
1477 if (tiflags & TH_SYN) ti->ti_len++;
1478 tcp_respond(tp, ti, m, ti->ti_seq+ti->ti_len, (tcp_seq)0,