Home
last modified time | relevance | path

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

12

/dragonfly/sys/net/ppp_layer/
H A Dslcompress.c224 hlen += th->th_off; in sl_compress_tcp()
256 hlen += th->th_off; in sl_compress_tcp()
264 th->th_off != oth->th_off || in sl_compress_tcp()
267 (th->th_off > 5 && in sl_compress_tcp()
268 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2))) in sl_compress_tcp()
484 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core()
/dragonfly/sys/netinet/
H A Dtcp.h59 th_off:4; /* data offset */ member
61 u_int th_off:4, /* data offset */ member
H A Dtcpip.h71 #define ti_off ti_t.th_off
H A Dip_demux.c232 thoff = th->th_off << 2; in ip_lengthcheck()
H A Dtcp_subr.c513 tcp_hdr->th_off = 5; in tcp_fillheaders()
667 nth->th_off = sizeof(struct tcphdr) >> 2; in tcp_respond()
H A Dtcp_output.c1004 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in tcp_output()
H A Dtcp_syncache.c1246 th->th_off = (sizeof(struct tcphdr) + optlen) >> 2; in syncache_respond()
/dragonfly/usr.sbin/ppp/
H A Dslcompress.c218 #define THOFFSET(th) (th->th_off) in sl_compress_tcp()
219 hlen += th->th_off; in sl_compress_tcp()
251 hlen += th->th_off; in sl_compress_tcp()
H A Dtcpmss.c107 hlen = tc->th_off << 2; in MSSFixup()
H A Dip.c343 if (datalen < 20 || datalen < (th->th_off << 2)) { in FilterCheck()
797 len = datalen - (th->th_off << 2); in PacketCheck()
/dragonfly/lib/libalias/
H A Dalias_smedia.c159 hlen = (pip->ip_hl + tc->th_off) << 2; in alias_rtsp_out()
380 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleRtspOut()
H A Dalias_ftp.c116 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleFtpOut()
485 hlen = (pip->ip_hl + tc->th_off) << 2; in NewFtpMessage()
H A Dalias_irc.c82 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasHandleIrcOut()
H A Dalias_pptp.c284 hlen = (pip->ip_hl + tc->th_off) << 2; in AliasVerifyPptp()
H A Dalias_proxy.c328 hlen = (pip->ip_hl + tc->th_off) << 2; in ProxyEncodeTcpStream()
H A Dalias_db.c2168 hlen = (pip->ip_hl + tc->th_off) << 2; in AddSeq()
/dragonfly/sys/net/pf/
H A Dpf_norm.c1366 if (th->th_off < (sizeof(struct tcphdr) >> 2)) in pf_normalize_tcp()
1448 if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub && in pf_normalize_tcp_init()
1449 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_init()
1453 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_init()
1549 if (th->th_off > (sizeof(struct tcphdr) >> 2) && in pf_normalize_tcp_stateful()
1552 pf_pull_hdr(m, off, hdr, th->th_off << 2, NULL, NULL, pd->af)) { in pf_normalize_tcp_stateful()
1556 hlen = (th->th_off << 2) - sizeof(struct tcphdr); in pf_normalize_tcp_stateful()
1621 (th->th_off << 2) - sizeof(struct tcphdr), in pf_normalize_tcp_stateful()
1918 thoff = th->th_off << 2; in pf_normalize_tcpopt()
H A Dpf_osfp.c96 pd->proto != IPPROTO_TCP || (tcp->th_off << 2) < sizeof(*tcp)) in pf_osfp_fingerprint()
106 if (!pf_pull_hdr(m, off, hdr, tcp->th_off << 2, NULL, NULL, in pf_osfp_fingerprint()
184 cnt = (tcp->th_off << 2) - sizeof(*tcp); in pf_osfp_fingerprint_hdr()
H A Dpf.c2075 int hlen = (th->th_off << 2) - sizeof(*th), thoptlen = hlen; in pf_modulate_sack()
2227 th->th_off = tlen >> 2; in pf_send_tcp()
3508 hlen = th_off << 2; /* hlen <= sizeof(hdr) */ in pf_get_wscale()
3541 pf_get_mss(struct mbuf *m, int off, u_int16_t th_off, sa_family_t af) in pf_get_mss() argument
3548 hlen = th_off << 2; /* hlen <= sizeof(hdr) */ in pf_get_mss()
4172 th->th_off, pd->af); in pf_create_state()
4289 mss = pf_get_mss(m, off, th->th_off, pd->af); in pf_create_state()
4475 src->wscale = pf_get_wscale(m, off, th->th_off, in pf_tcp_track_full()
4562 if (dst->seqdiff && (th->th_off << 2) > sizeof(struct tcphdr)) { in pf_tcp_track_full()
6623 pd.p_len = pd.tot_len - off - (th.th_off << 2); in pf_test()
[all …]
/dragonfly/sys/netgraph7/tcpmss/
H A Dng_tcpmss.c324 tcphlen = tcp->th_off << 2; in ng_tcpmss_rcvdata()
/dragonfly/sys/net/ip6fw/
H A Dip6_fw.c800 - (ti.th.th_off << 2); in ip6_fw_chk()
803 - off - (ti.th.th_off << 2); in ip6_fw_chk()
/dragonfly/sys/netgraph/vjc/
H A Dng_vjc.c613 thlen = tcp->th_off << 2; in ng_vjc_pulluphdrs()
/dragonfly/sys/netgraph7/vjc/
H A Dng_vjc.c609 thlen = tcp->th_off << 2; in ng_vjc_pulluphdrs()
/dragonfly/sys/dev/netif/oce/
H A Doce_if.c1063 total_len = ehdrlen + (ip->ip_hl << 2) + (th->th_off << 2); in oce_tso_setup()
1073 total_len = ehdrlen + sizeof(struct ip6_hdr) + (th->th_off << 2); in oce_tso_setup()
/dragonfly/sys/dev/netif/alc/
H A Dif_alc.c2694 m = m_pullup(m, poff + (tcp->th_off << 2)); in alc_encap()
2771 hdrlen = poff + (tcp->th_off << 2); in alc_encap()

12