| /freebsd-13-stable/sys/net/ |
| HD | slcompress.c | 223 hlen += th->th_off; in sl_compress_tcp() 255 hlen += th->th_off; in sl_compress_tcp() 263 th->th_off != oth->th_off || in sl_compress_tcp() 266 (th->th_off > 5 && in sl_compress_tcp() 267 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2))) in sl_compress_tcp() 478 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core()
|
| /freebsd-13-stable/sys/netinet/libalias/ |
| HD | alias_ftp.c | 230 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut() 289 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpIn() 664 hlen = (pip->ip_hl + tc->th_off) << 2; in NewFtpMessage() 736 pip->ip_len, tc->th_seq, tc->th_off); in NewFtpMessage()
|
| HD | alias_smedia.c | 250 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out() 397 tc->th_seq, tc->th_off); in alias_rtsp_out() 478 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleRtspOut()
|
| HD | alias_irc.c | 179 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut() 441 pip->ip_len, tc->th_seq, tc->th_off); in AliasHandleIrcOut()
|
| HD | alias_local.h | 322 u_short ip_len, u_long th_seq, u_int th_off); 368 return (&p[tcphdr->th_off * 4]); in tcp_next()
|
| HD | alias_proxy.c | 328 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream() 350 tc->th_off); in ProxyEncodeTcpStream()
|
| HD | alias_skinny.c | 311 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleSkinny()
|
| HD | alias_pptp.c | 437 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasVerifyPptp()
|
| /freebsd-13-stable/sys/netpfil/ipfw/pmod/ |
| HD | tcpmod.c | 142 hlen = tcp->th_off << 2; in tcpmod_ipv6_setmss() 162 hlen = tcp->th_off << 2; in tcpmod_ipv4_setmss()
|
| /freebsd-13-stable/sys/netinet/ |
| HD | tcpip.h | 54 #define ti_off ti_t.th_off
|
| HD | tcp.h | 58 th_off:4; /* data offset */ member 61 u_char th_off:4, /* data offset */ member
|
| HD | tcp_lro.c | 295 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser() 333 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser() 497 len = th->th_off; in tcp_lro_rx_csum_tcphdr() 687 tlen = (pa->ip4->ip_hl << 2) + (pa->tcp->th_off << 2) + payload_len; in tcp_lro_update_checksum() 699 tlen = (pa->tcp->th_off << 2) + payload_len; in tcp_lro_update_checksum() 872 tcp_opt_len = (th->th_off << 2); in tcp_set_entry_to_mbuf() 991 tcp_opt_len = (th->th_off << 2); in tcp_lro_condense() 1025 tcp_opt_len = (th->th_off << 2); in tcp_lro_condense() 1214 switch (th->th_off << 2) { in tcp_lro_ack_valid() 1799 tcp_opt_len = (th->th_off << 2); in tcp_lro_rx_common()
|
| HD | tcp_debug.c | 184 len -= th->th_off << 2; in tcp_trace()
|
| HD | tcp_pcap.c | 177 tcp_off = th->th_off << 2; in tcp_pcap_copy_bestfit()
|
| /freebsd-13-stable/usr.sbin/ppp/ |
| HD | slcompress.c | 234 #define THOFFSET(th) (th->th_off) in sl_compress_tcp() 235 hlen += th->th_off; in sl_compress_tcp() 267 hlen += th->th_off; in sl_compress_tcp()
|
| HD | tcpmss.c | 111 hlen = tc->th_off << 2; in MSSFixup()
|
| /freebsd-13-stable/sys/netpfil/pf/ |
| HD | pf_osfp.c | 78 pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp)) in pf_osfp_fingerprint() 88 if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL, in pf_osfp_fingerprint() 136 cnt = (tcp->th_off << 2) - sizeof(*tcp); in pf_osfp_fingerprint_hdr()
|
| HD | pf_norm.c | 1409 if (th->th_off < (sizeof(struct tcphdr) >> 2)) in pf_normalize_tcp() 1490 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init() 1491 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_init() 1495 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init() 1610 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful() 1613 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_stateful() 1617 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_stateful() 1688 (th->th_off << 2) - sizeof(struct tcphdr), hdr + in pf_normalize_tcp_stateful() 1970 thoff = th->th_off << 2; in pf_normalize_tcpopt()
|
| HD | pf_syncookies.c | 294 mss = max(V_tcp_mssdflt, pf_get_mss(m, off, pd->hdr.tcp.th_off, pd->af)); in pf_syncookie_send() 474 wscale = pf_get_wscale(m, off, pd->hdr.tcp.th_off, pd->af); in pf_syncookie_generate()
|
| /freebsd-13-stable/sys/dev/sfxge/ |
| HD | sfxge_rx.c | 401 if (c_th->th_off == c->th_last->th_off) { in sfxge_lro_deliver() 403 int optlen = ((c_th->th_off - 5) & 0xf) << 2u; in sfxge_lro_deliver() 543 hdr_length = (char *) th + th->th_off * 4 - eh; in sfxge_lro_try_merge() 551 if (th->th_off != 5) { in sfxge_lro_try_merge() 553 if (th->th_off == 8 && in sfxge_lro_try_merge()
|
| /freebsd-13-stable/cddl/lib/libdtrace/ |
| HD | tcp.d | 266 tcp_offset = p == NULL ? -1 : (p->th_off << 2); 285 tcp_offset = p == NULL ? -1 : (p->th_off << 2);
|
| /freebsd-13-stable/sbin/ipf/iplang/ |
| HD | iplang_y.y | 952 tcp->th_off = sizeof(*tcp) >> 2; in new_tcpheader() 1015 inc_anipheaders((off - tcp->th_off) << 2); in set_tcpoff() 1016 tcp->th_off = off; in set_tcpoff() 1173 tcp->th_off = (sizeof(*tcp) + canip->ah_optlen) >> 2; in end_tcpopt()
|
| /freebsd-13-stable/sys/netipsec/ |
| HD | xform_tcp.c | 218 len += (th->th_off << 2); in tcp_signature_compute()
|
| /freebsd-13-stable/sys/netgraph/ |
| HD | ng_tcpmss.c | 322 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()
|
| /freebsd-13-stable/sys/dev/virtio/network/ |
| HD | virtio_net.h | 473 hdr->hdr_len = offset + (tcp->th_off << 2); in virtio_net_tx_offload_tso()
|