Home
last modified time | relevance | path

Searched refs:thlen (Results 1 – 3 of 3) sorted by relevance

/freebsd/sbin/ipf/ipsend/
H A Dip.c239 int thlen, i, iplen, hlen; in send_tcp() local
248 thlen = TCP_OFF(t) << 2; in send_tcp()
249 if (!thlen) in send_tcp()
250 thlen = sizeof(tcphdr_t); in send_tcp()
256 bcopy((char *)ip + hlen, (char *)t2, thlen); in send_tcp()
267 bcopy((char *)ip + hlen + thlen, (char *)ip + hlen + thlen + 4, in send_tcp()
268 iplen - thlen - hlen); in send_tcp()
269 thlen += 4; in send_tcp()
271 TCP_OFF_A(t2, thlen >> 2); in send_tcp()
272 ip2->ip_len = htons(thlen); in send_tcp()
[all …]
/freebsd/sys/netgraph/
H A Dng_vjc.c593 int ihlen, thlen; in ng_vjc_pulluphdrs() local
607 thlen = tcp->th_off << 2; in ng_vjc_pulluphdrs()
608 if (m->m_len < ihlen + thlen) in ng_vjc_pulluphdrs()
609 m = m_pullup(m, ihlen + thlen); in ng_vjc_pulluphdrs()
/freebsd/sys/netinet/
H A Dtcp_subr.c581 int thlen; in tcp_recv_udp_tunneled_packet() local
590 thlen = sizeof(struct tcphdr); in tcp_recv_udp_tunneled_packet()
591 if (m->m_len < off + sizeof(struct udphdr) + thlen && in tcp_recv_udp_tunneled_packet()
592 (m = m_pullup(m, off + sizeof(struct udphdr) + thlen)) == NULL) { in tcp_recv_udp_tunneled_packet()
599 thlen = th->th_off << 2; in tcp_recv_udp_tunneled_packet()
600 if (m->m_len < off + sizeof(struct udphdr) + thlen) { in tcp_recv_udp_tunneled_packet()
601 m = m_pullup(m, off + sizeof(struct udphdr) + thlen); in tcp_recv_udp_tunneled_packet()