Lines Matching refs:todrop
551 int32_t todrop; in ctf_drop_checks() local
557 todrop = tp->rcv_nxt - th->th_seq; in ctf_drop_checks()
558 if (todrop > 0) { in ctf_drop_checks()
566 todrop--; in ctf_drop_checks()
571 if (todrop > tlen in ctf_drop_checks()
572 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in ctf_drop_checks()
584 todrop = tlen; in ctf_drop_checks()
586 KMOD_TCPSTAT_ADD(tcps_rcvdupbyte, todrop); in ctf_drop_checks()
589 KMOD_TCPSTAT_ADD(tcps_rcvpartdupbyte, todrop); in ctf_drop_checks()
594 if ((todrop > 0) && (tp->t_flags & TF_SACK_PERMIT)) { in ctf_drop_checks()
602 th->th_seq + todrop); in ctf_drop_checks()
604 *drop_hdrlen += todrop; /* drop from the top afterwards */ in ctf_drop_checks()
605 th->th_seq += todrop; in ctf_drop_checks()
606 tlen -= todrop; in ctf_drop_checks()
607 if (th->th_urp > todrop) in ctf_drop_checks()
608 th->th_urp -= todrop; in ctf_drop_checks()
618 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in ctf_drop_checks()
619 if (todrop > 0) { in ctf_drop_checks()
621 if (todrop >= tlen) { in ctf_drop_checks()
638 KMOD_TCPSTAT_ADD(tcps_rcvbyteafterwin, todrop); in ctf_drop_checks()
639 m_adj(m, -todrop); in ctf_drop_checks()
640 tlen -= todrop; in ctf_drop_checks()