Home
last modified time | relevance | path

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

1234

/freebsd-13-stable/sys/net/
HDslcompress.c223 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/
HDalias_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()
HDalias_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()
HDalias_irc.c179 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut()
441 pip->ip_len, tc->th_seq, tc->th_off); in AliasHandleIrcOut()
HDalias_local.h322 u_short ip_len, u_long th_seq, u_int th_off);
368 return (&p[tcphdr->th_off * 4]); in tcp_next()
HDalias_proxy.c328 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream()
350 tc->th_off); in ProxyEncodeTcpStream()
HDalias_skinny.c311 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleSkinny()
HDalias_pptp.c437 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasVerifyPptp()
/freebsd-13-stable/sys/netpfil/ipfw/pmod/
HDtcpmod.c142 hlen = tcp->th_off << 2; in tcpmod_ipv6_setmss()
162 hlen = tcp->th_off << 2; in tcpmod_ipv4_setmss()
/freebsd-13-stable/sys/netinet/
HDtcpip.h54 #define ti_off ti_t.th_off
HDtcp.h58 th_off:4; /* data offset */ member
61 u_char th_off:4, /* data offset */ member
HDtcp_lro.c295 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()
HDtcp_debug.c184 len -= th->th_off << 2; in tcp_trace()
HDtcp_pcap.c177 tcp_off = th->th_off << 2; in tcp_pcap_copy_bestfit()
/freebsd-13-stable/usr.sbin/ppp/
HDslcompress.c234 #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()
HDtcpmss.c111 hlen = tc->th_off << 2; in MSSFixup()
/freebsd-13-stable/sys/netpfil/pf/
HDpf_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()
HDpf_norm.c1409 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()
HDpf_syncookies.c294 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/
HDsfxge_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-13-stable/cddl/lib/libdtrace/
HDtcp.d266 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/
HDiplang_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-13-stable/sys/netipsec/
HDxform_tcp.c218 len += (th->th_off << 2); in tcp_signature_compute()
/freebsd-13-stable/sys/netgraph/
HDng_tcpmss.c322 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()
/freebsd-13-stable/sys/dev/virtio/network/
HDvirtio_net.h473 hdr->hdr_len = offset + (tcp->th_off << 2); in virtio_net_tx_offload_tso()

1234