/freebsd/sys/net/ |
H A D | slcompress.c | 221 hlen += th->th_off; in sl_compress_tcp() 253 hlen += th->th_off; in sl_compress_tcp() 261 th->th_off != oth->th_off || in sl_compress_tcp() 264 (th->th_off > 5 && in sl_compress_tcp() 265 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2))) in sl_compress_tcp() 476 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core()
|
/freebsd/sys/netinet/ |
H A D | tcp_lro.c | 317 if (__predict_false(mlen < (parser->tcp->th_off << 2))) in tcp_lro_low_level_parser() 319 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser() 368 if (__predict_false(mlen < (parser->tcp->th_off << 2))) in tcp_lro_low_level_parser() 370 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser() 529 len = th->th_off; in tcp_lro_rx_csum_tcphdr() 688 tlen = (pa->ip4->ip_hl << 2) + (pa->tcp->th_off << 2) + payload_len; in tcp_lro_update_checksum() 700 tlen = (pa->tcp->th_off << 2) + payload_len; in tcp_lro_update_checksum() 873 tcp_opt_len = (th->th_off << 2); in tcp_set_entry_to_mbuf() 992 tcp_opt_len = (th->th_off << 2); in tcp_lro_condense() 1026 tcp_opt_len = (th->th_off << 2); in tcp_lro_condense() [all …]
|
H A D | tcpip.h | 52 #define ti_off ti_t.th_off
|
H A D | tcp.h | 55 th_off:4; /* data offset */ member 58 u_char th_off:4, /* data offset */ member
|
H A D | tcp_pcap.c | 179 tcp_off = th->th_off << 2; in tcp_pcap_copy_bestfit()
|
/freebsd/sys/netinet/libalias/ |
H A D | 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()
|
H A D | 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()
|
H A D | 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()
|
H A D | alias_local.h | 324 u_short ip_len, u_long th_seq, u_int th_off); 370 return (&p[tcphdr->th_off * 4]); in tcp_next()
|
H A D | alias_proxy.c | 328 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream() 350 tc->th_off); in ProxyEncodeTcpStream()
|
H A D | alias_skinny.c | 309 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleSkinny()
|
H A D | alias_pptp.c | 437 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasVerifyPptp()
|
/freebsd/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 141 hlen = tcp->th_off << 2; in tcpmod_ipv6_setmss() 161 hlen = tcp->th_off << 2; in tcpmod_ipv4_setmss()
|
/freebsd/usr.sbin/ppp/ |
H A D | slcompress.c | 232 #define THOFFSET(th) (th->th_off) in sl_compress_tcp() 233 hlen += th->th_off; in sl_compress_tcp() 265 hlen += th->th_off; in sl_compress_tcp()
|
H A D | tcpmss.c | 111 hlen = tc->th_off << 2; in MSSFixup()
|
H A D | ip.c | 368 if (datalen < 20 || datalen < (th->th_off << 2)) { in FilterCheck() 825 len = datalen - (th->th_off << 2); in PacketCheck()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf_osfp.c | 76 if (pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp)) in pf_osfp_fingerprint() 88 if (!pf_pull_hdr(pd->m, pd->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()
|
H A D | pf_norm.c | 1392 if (th->th_off < (sizeof(struct tcphdr) >> 2)) in pf_normalize_tcp() 1469 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init() 1470 pf_pull_hdr(pd->m, pd->off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_init() 1474 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init() 1586 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful() 1589 pf_pull_hdr(pd->m, pd->off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_stateful() 1593 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_stateful() 1664 (th->th_off << 2) - sizeof(struct tcphdr), hdr + in pf_normalize_tcp_stateful() 1945 thoff = th->th_off << 2; in pf_normalize_mss()
|
/freebsd/sys/dev/sfxge/ |
H A D | 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/cddl/lib/libdtrace/ |
H A D | tcp.d | 268 tcp_offset = p == NULL ? -1 : (p->th_off << 2); 287 tcp_offset = p == NULL ? -1 : (p->th_off << 2);
|
/freebsd/sbin/ipf/iplang/ |
H A D | 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() 1174 tcp->th_off = (sizeof(*tcp) + canip->ah_optlen) >> 2; in end_tcpopt()
|
/freebsd/sys/netipsec/ |
H A D | xform_tcp.c | 218 len += (th->th_off << 2); in tcp_signature_compute()
|
/freebsd/sys/netgraph/ |
H A D | ng_tcpmss.c | 328 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()
|
/freebsd/sys/dev/virtio/network/ |
H A D | virtio_net.h | 479 hdr->hdr_len = offset + (tcp->th_off << 2); in virtio_net_tx_offload_tso()
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_rx.c | 242 tcp_csum = csum_buf(tcp_csum, th, th->th_off * 4); in mlx5e_lro_update_hdr() 254 tot_len - sizeof(struct ip6_hdr), th->th_off * 4) & 0xffff; in mlx5e_lro_update_hdr()
|