Lines Matching refs:todrop
2029 int todrop, acked = 0, ourfinisacked, needoutput = 0; in tcp_input() local
4090 todrop = tlen - tp->rcv_wnd; in tcp_input()
4091 m_adj(m, -todrop); in tcp_input()
4095 tcpstat.tcps_rcvbyteafterwin += todrop; in tcp_input()
4363 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4364 if (todrop > 0) { in tcp_input()
4376 todrop--; in tcp_input()
4383 if (todrop > tlen in tcp_input()
4384 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_input()
4408 if (todrop == 1) { in tcp_input()
4413 todrop = tlen; in tcp_input()
4415 tcpstat.tcps_rcvdupbyte += todrop; in tcp_input()
4418 tcpstat.tcps_rcvpartdupbyte += todrop; in tcp_input()
4421 if (todrop > 1) { in tcp_input()
4427 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4432 todrop, NSTAT_RX_FLAG_DUPLICATE); in tcp_input()
4434 INP_ADD_STAT(inp, ifnet_count_type, rxbytes, todrop); in tcp_input()
4435 tp->t_stat.rxduplicatebytes += todrop; in tcp_input()
4438 drop_hdrlen += todrop; /* drop from the top afterwards */ in tcp_input()
4439 th->th_seq += todrop; in tcp_input()
4440 tlen -= todrop; in tcp_input()
4441 if (th->th_urp > todrop) { in tcp_input()
4442 th->th_urp -= todrop; in tcp_input()
4496 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4497 if (todrop > 0) { in tcp_input()
4499 if (todrop >= tlen) { in tcp_input()
4529 tcpstat.tcps_rcvbyteafterwin += todrop; in tcp_input()
4531 m_adj(m, -todrop); in tcp_input()
4532 tlen -= todrop; in tcp_input()