Lines Matching refs:tlen

139 	int32_t tlen;
181 tlen = ntohs(ip6->ip6_plen);
186 th->th_sum = in6_cksum_pseudo(ip6, tlen,
191 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen);
214 tlen = ntohs(ip->ip_len) - sizeof(struct ip);
221 htonl(m->m_pkthdr.csum_data + tlen + IPPROTO_TCP));
229 len = drop_hdrlen + tlen;
231 ipov->ih_len = htons(tlen);
361 int32_t retval, nxt_pkt, tlen, off;
403 tlen = ntohs(ip6->ip6_plen);
414 tlen = ntohs(ip->ip_len) - sizeof(struct ip);
419 if (off < sizeof (struct tcphdr) || off > tlen) {
420 printf("off:%d < hdrlen:%zu || > tlen:%u -- dump\n",
423 tlen);
428 tlen -= off;
444 tlen = 0;
459 drop_hdrlen, tlen, iptos, nxt_pkt, &tv);
525 int32_t rstreason, int32_t tlen)
528 tcp_dropwithreset(m, th, tp, tlen, rstreason);
531 tcp_dropwithreset(m, th, NULL, tlen, rstreason);
578 int32_t tlen;
581 tlen = *tlenp;
596 if (todrop > tlen
597 || (todrop == tlen && (thflags & TH_FIN) == 0)) {
609 todrop = tlen;
631 tlen -= todrop;
643 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd);
646 if (todrop >= tlen) {
647 KMOD_TCPSTAT_ADD(tcps_rcvbyteafterwin, tlen);
659 __ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val, ts, cnt);
665 tlen -= todrop;
669 *tlenp = tlen;
680 __ctf_do_dropafterack(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t *ret_val, uint32_t *ts, uint32_t *cnt)
700 ctf_do_dropwithreset(m, tp, th, BANDLIM_RST_OPENPORT, tlen);
852 int32_t tlen, int32_t thflags, int32_t * ret_val)
869 KMOD_TCPSTAT_ADD(tcps_rcvdupbyte, tlen);
872 if (tlen) {
873 ctf_do_dropafterack(m, tp, th, thflags, tlen, ret_val);
926 int32_t rstreason, int32_t tlen)
929 tcp_dropwithreset(m, th, tp, tlen, rstreason);