Home
last modified time | relevance | path

Searched refs:th_off (Results 1 – 25 of 77) sorted by relevance

1234

/freebsd/sys/net/
H A Dslcompress.c221 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 Dtcp_lro.c320 if (__predict_false(mlen < (parser->tcp->th_off << 2))) in tcp_lro_low_level_parser()
322 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser()
371 if (__predict_false(mlen < (parser->tcp->th_off << 2))) in tcp_lro_low_level_parser()
373 ptr = (uint8_t *)ptr + (parser->tcp->th_off << 2); in tcp_lro_low_level_parser()
532 len = th->th_off; in tcp_lro_rx_csum_tcphdr()
691 tlen = (pa->ip4->ip_hl << 2) + (pa->tcp->th_off << 2) + payload_len; in tcp_lro_update_checksum()
703 tlen = (pa->tcp->th_off << 2) + payload_len; in tcp_lro_update_checksum()
876 tcp_opt_len = (th->th_off << 2); in tcp_set_entry_to_mbuf()
995 tcp_opt_len = (th->th_off << 2); in tcp_lro_condense()
1029 tcp_opt_len = (th->th_off << 2); in tcp_lro_condense()
[all …]
H A Dtcpip.h52 #define ti_off ti_t.th_off
H A Dtcp.h55 th_off:4; /* data offset */ member
58 u_char th_off:4, /* data offset */ member
H A Dtcp_pcap.c179 tcp_off = th->th_off << 2; in tcp_pcap_copy_bestfit()
/freebsd/sys/netinet/libalias/
H A Dalias_ftp.c230 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 Dalias_smedia.c250 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 Dalias_irc.c179 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut()
441 pip->ip_len, tc->th_seq, tc->th_off); in AliasHandleIrcOut()
H A Dalias_local.h322 u_short ip_len, u_long th_seq, u_int th_off);
368 return (&p[tcphdr->th_off * 4]); in tcp_next()
H A Dalias_proxy.c328 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream()
350 tc->th_off); in ProxyEncodeTcpStream()
H A Dalias_skinny.c309 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleSkinny()
H A Dalias_pptp.c437 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasVerifyPptp()
/freebsd/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c141 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 Dslcompress.c232 #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 Dtcpmss.c111 hlen = tc->th_off << 2; in MSSFixup()
H A Dip.c368 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 Dpf_osfp.c78 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()
H A Dpf_syncookies.c301 mss = max(V_tcp_mssdflt, pf_get_mss(m, off, pd->hdr.tcp.th_off, pd->af)); in pf_syncookie_send()
481 wscale = pf_get_wscale(m, off, pd->hdr.tcp.th_off, pd->af); in pf_syncookie_generate()
H A Dpf_norm.c1473 if (th->th_off < (sizeof(struct tcphdr) >> 2)) in pf_normalize_tcp()
1550 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init()
1551 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_init()
1555 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init()
1667 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful()
1670 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_stateful()
1674 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_stateful()
1745 (th->th_off << 2) - sizeof(struct tcphdr), hdr + in pf_normalize_tcp_stateful()
2026 thoff = th->th_off << 2; in pf_normalize_mss()
/freebsd/sys/dev/sfxge/
H A Dsfxge_rx.c401 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 Dtcp.d268 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 Diplang_y.y952 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/sys/netipsec/
H A Dxform_tcp.c218 len += (th->th_off << 2); in tcp_signature_compute()
/freebsd/sys/netgraph/
H A Dng_tcpmss.c322 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()
/freebsd/sys/dev/virtio/network/
H A Dvirtio_net.h479 hdr->hdr_len = offset + (tcp->th_off << 2); in virtio_net_tx_offload_tso()

1234