Lines Matching refs:todrop
1096 int todrop, acked, ourfinisacked, needoutput = 0;
2743 todrop = tlen - tp->rcv_wnd;
2744 m_adj(m, -todrop);
2748 tcpstat.tcps_rcvbyteafterwin += todrop;
2956 todrop = tp->rcv_nxt - th->th_seq;
2957 if (todrop > 0) {
2965 todrop--;
2970 if (todrop > tlen
2971 || (todrop == tlen && (thflags & TH_FIN) == 0)) {
2984 if (todrop == 1) {
2989 todrop = tlen;
2991 tcpstat.tcps_rcvdupbyte += todrop;
2994 tcpstat.tcps_rcvpartdupbyte += todrop;
2997 nstat_route_rx(tp->t_inpcb->inp_route.ro_rt, 1, todrop, NSTAT_RX_FLAG_DUPLICATE);
2999 locked_add_64(&inp->inp_stat->rxbytes, todrop);
3000 tp->t_stat.rxduplicatebytes += todrop;
3002 drop_hdrlen += todrop; /* drop from the top afterwards */
3003 th->th_seq += todrop;
3004 tlen -= todrop;
3005 if (th->th_urp > todrop)
3006 th->th_urp -= todrop;
3033 todrop = (th->th_seq+tlen) - (tp->rcv_nxt+tp->rcv_wnd);
3034 if (todrop > 0) {
3036 if (todrop >= tlen) {
3065 tcpstat.tcps_rcvbyteafterwin += todrop;
3066 m_adj(m, -todrop);
3067 tlen -= todrop;