Lines Matching refs:todrop
1525 int rstreason, todrop, win, incforsyn = 0; in tcp_do_segment() local
2124 todrop = tlen - tp->rcv_wnd; in tcp_do_segment()
2125 m_adj(m, -todrop); in tcp_do_segment()
2129 TCPSTAT_ADD(tcps_rcvbyteafterwin, todrop); in tcp_do_segment()
2274 todrop = tp->rcv_nxt - th->th_seq; in tcp_do_segment()
2275 if (todrop > 0) { in tcp_do_segment()
2283 todrop--; in tcp_do_segment()
2288 if (todrop > tlen in tcp_do_segment()
2289 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_do_segment()
2302 todrop = tlen; in tcp_do_segment()
2304 TCPSTAT_ADD(tcps_rcvdupbyte, todrop); in tcp_do_segment()
2307 TCPSTAT_ADD(tcps_rcvpartdupbyte, todrop); in tcp_do_segment()
2312 if ((todrop > 0) && (tp->t_flags & TF_SACK_PERMIT)) { in tcp_do_segment()
2314 th->th_seq + todrop); in tcp_do_segment()
2321 drop_hdrlen += todrop; /* drop from the top afterwards */ in tcp_do_segment()
2322 th->th_seq += todrop; in tcp_do_segment()
2323 tlen -= todrop; in tcp_do_segment()
2324 if (th->th_urp > todrop) in tcp_do_segment()
2325 th->th_urp -= todrop; in tcp_do_segment()
2359 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_do_segment()
2360 if (todrop > 0) { in tcp_do_segment()
2362 if (todrop >= tlen) { in tcp_do_segment()
2377 TCPSTAT_ADD(tcps_rcvbyteafterwin, todrop); in tcp_do_segment()
2378 m_adj(m, -todrop); in tcp_do_segment()
2379 tlen -= todrop; in tcp_do_segment()