| /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 | 316 if (__predict_false(mlen < (parser->tcp->th_off << 2))) in tcp_lro_low_level_parser() 318 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser() 367 if (__predict_false(mlen < (parser->tcp->th_off << 2))) in tcp_lro_low_level_parser() 369 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser() 528 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() [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
|
| /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 | 326 u_short ip_len, u_long th_seq, u_int th_off); 372 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 | 144 hlen = tcp->th_off << 2; in tcpmod_ipv6_setmss() 164 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 | 73 if (pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp)) in pf_osfp_fingerprint() 85 if (!pf_pull_hdr(pd->m, pd->off, hdr, tcp->th_off << 2, NULL, in pf_osfp_fingerprint() 133 cnt = (tcp->th_off << 2) - sizeof(*tcp); in pf_osfp_fingerprint_hdr()
|
| /freebsd/sys/dev/sfxge/ |
| H A D | sfxge_rx.c | 389 if (c_th->th_off == c->th_last->th_off) { in sfxge_lro_deliver() 391 int optlen = ((c_th->th_off - 5) & 0xf) << 2u; in sfxge_lro_deliver() 531 hdr_length = (char *) th + th->th_off * 4 - eh; in sfxge_lro_try_merge() 539 if (th->th_off != 5) { in sfxge_lro_try_merge() 541 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 | 487 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()
|
| /freebsd/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_compat.h | 691 # define TCP_OFF(x) (x)->th_off 694 # define TCP_OFF_A(x,y) (x)->th_off = (y)
|
| /freebsd/sys/dev/qlxgbe/ |
| H A D | ql_isr.c | 309 iplen = (ip->ip_hl << 2) + (th->th_off << 2) + in qla_lro_intr() 321 iplen = (th->th_off << 2) + sgc->payload_length; in qla_lro_intr()
|