Lines Matching refs:todrop
2027 int todrop, acked = 0, ourfinisacked, needoutput = 0; in tcp_input() local
4045 todrop = tlen - tp->rcv_wnd; in tcp_input()
4046 m_adj(m, -todrop); in tcp_input()
4050 tcpstat.tcps_rcvbyteafterwin += todrop; in tcp_input()
4315 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4316 if (todrop > 0) { in tcp_input()
4328 todrop--; in tcp_input()
4335 if (todrop > tlen in tcp_input()
4336 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_input()
4360 if (todrop == 1) { in tcp_input()
4365 todrop = tlen; in tcp_input()
4367 tcpstat.tcps_rcvdupbyte += todrop; in tcp_input()
4370 tcpstat.tcps_rcvpartdupbyte += todrop; in tcp_input()
4373 if (todrop > 1) { in tcp_input()
4379 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4384 todrop, NSTAT_RX_FLAG_DUPLICATE); in tcp_input()
4386 INP_ADD_STAT(inp, ifnet_count_type, rxbytes, todrop); in tcp_input()
4387 tp->t_stat.rxduplicatebytes += todrop; in tcp_input()
4390 drop_hdrlen += todrop; /* drop from the top afterwards */ in tcp_input()
4391 th->th_seq += todrop; in tcp_input()
4392 tlen -= todrop; in tcp_input()
4393 if (th->th_urp > todrop) { in tcp_input()
4394 th->th_urp -= todrop; in tcp_input()
4447 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4448 if (todrop > 0) { in tcp_input()
4450 if (todrop >= tlen) { in tcp_input()
4480 tcpstat.tcps_rcvbyteafterwin += todrop; in tcp_input()
4482 m_adj(m, -todrop); in tcp_input()
4483 tlen -= todrop; in tcp_input()