Symbol: tcphdr
lib/libalias/alias.c
1022
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias.c
1403
struct tcphdr *tc;
lib/libalias/alias.c
1415
tc = (struct tcphdr *) ud;
lib/libalias/alias.c
175
struct tcphdr *tc;
lib/libalias/alias.c
177
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias.c
197
struct tcphdr *tc;
lib/libalias/alias.c
199
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias.c
335
struct tcphdr *tc;
lib/libalias/alias.c
342
tc = (struct tcphdr *) ud;
lib/libalias/alias.c
527
struct tcphdr *tc;
lib/libalias/alias.c
534
tc = (struct tcphdr *) ud;
lib/libalias/alias.c
878
struct tcphdr *tc;
lib/libalias/alias.c
881
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias.c
974
struct tcphdr *tc;
lib/libalias/alias.c
977
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_db.c
2060
struct tcphdr *tc;
lib/libalias/alias_db.c
2064
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_db.c
2111
struct tcphdr *tc;
lib/libalias/alias_db.c
2115
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_db.c
2161
struct tcphdr *tc;
lib/libalias/alias_db.c
2166
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_ftp.c
111
struct tcphdr *tc;
lib/libalias/alias_ftp.c
115
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_ftp.c
476
struct tcphdr *tc;
lib/libalias/alias_ftp.c
484
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_irc.c
77
struct tcphdr *tc;
lib/libalias/alias_irc.c
81
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_pptp.c
155
struct tcphdr *tc;
lib/libalias/alias_pptp.c
189
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_pptp.c
218
struct tcphdr *tc;
lib/libalias/alias_pptp.c
259
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_pptp.c
280
struct tcphdr *tc;
lib/libalias/alias_pptp.c
283
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_proxy.c
291
struct tcphdr *tc;
lib/libalias/alias_proxy.c
294
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_proxy.c
391
struct tcphdr *tc;
lib/libalias/alias_proxy.c
402
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_proxy.c
461
dst_port = ((struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)))
lib/libalias/alias_smedia.c
146
struct tcphdr *tc;
lib/libalias/alias_smedia.c
158
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_smedia.c
331
struct tcphdr *tc;
lib/libalias/alias_smedia.c
353
tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2));
lib/libalias/alias_smedia.c
372
struct tcphdr *tc;
lib/libalias/alias_smedia.c
379
tc = (struct tcphdr *)((char *)pip + (pip->ip_hl << 2));
lib/libalias/alias_util.c
103
tc = (struct tcphdr *) ((char *) pip + nhdr);
lib/libalias/alias_util.c
96
struct tcphdr *tc;
sbin/natd/natd.c
625
struct tcphdr* tcphdr;
sbin/natd/natd.c
636
tcphdr = (struct tcphdr *)((char *)ip + (ip->ip_hl << 2));
sbin/natd/natd.c
639
ntohs(tcphdr->th_sport),
sbin/natd/natd.c
641
ntohs(tcphdr->th_dport));
sys/dev/netif/alc/if_alc.c
2484
struct tcphdr *tcp;
sys/dev/netif/alc/if_alc.c
2546
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/netif/alc/if_alc.c
2551
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/netif/alc/if_alc.c
2571
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/netif/bce/if_bce.c
6618
KASSERT(thoff >= sizeof(struct tcphdr),
sys/dev/netif/bce/if_bce.c
6635
sizeof(struct ip) - sizeof(struct tcphdr)) >> 2) << 8);
sys/dev/netif/bge/if_bge.c
5101
struct tcphdr *th;
sys/dev/netif/bge/if_bge.c
5125
th = mtodoff(m, struct tcphdr *, hoff + iphlen);
sys/dev/netif/bnx/if_bnx.c
5135
struct tcphdr *th;
sys/dev/netif/bnx/if_bnx.c
5159
th = mtodoff(m, struct tcphdr *, hoff + iphlen);
sys/dev/netif/em/if_em.c
3172
hdr_len + offsetof(struct tcphdr, th_sum);
sys/dev/netif/em/if_em.c
4645
hoff + iphlen + offsetof(struct tcphdr, th_sum);
sys/dev/netif/emx/if_emx.c
2707
hdr_len + offsetof(struct tcphdr, th_sum);
sys/dev/netif/emx/if_emx.c
4445
hoff + iphlen + offsetof(struct tcphdr, th_sum);
sys/dev/netif/oce/oce_if.c
1032
struct tcphdr *th;
sys/dev/netif/oce/oce_if.c
1061
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/dev/netif/oce/oce_if.c
1071
th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/dev/virtual/amazon/ena/ena.c
2651
struct tcphdr *th;
sys/dev/virtual/amazon/ena/ena.c
2683
th = (struct tcphdr *)((caddr_t)ip + iphlen);
sys/dev/virtual/virtio/net/if_vtnet.c
1621
case offsetof(struct tcphdr, th_sum):
sys/dev/virtual/virtio/net/if_vtnet.c
1883
struct tcphdr *tcp;
sys/dev/virtual/virtio/net/if_vtnet.c
1957
if (m->m_len < csum_start + sizeof(struct tcphdr)) {
sys/dev/virtual/virtio/net/if_vtnet.c
1958
m = m_pullup(m, csum_start + sizeof(struct tcphdr));
sys/dev/virtual/virtio/net/if_vtnet.c
1963
tcp = (struct tcphdr *)(mtod(m, uint8_t *) + csum_start);
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2794
struct tcphdr *tcp;
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2801
if (m->m_len < *start + sizeof(struct tcphdr)) {
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2802
m = m_pullup(m, *start + sizeof(struct tcphdr));
sys/dev/virtual/vmware/vmxnet3/if_vmx.c
2807
tcp = (struct tcphdr *)(mtod(m, uint8_t *) + *start);
sys/net/if_var.h
917
struct tcphdr;
sys/net/ip6fw/ip6_fw.c
143
static int tcp6flg_match (struct tcphdr *tcp6, struct ip6_fw *f);
sys/net/ip6fw/ip6_fw.c
178
tcp6flg_match(struct tcphdr *tcp6, struct ip6_fw *f)
sys/net/ip6fw/ip6_fw.c
361
struct tcphdr *const tcp6 = (struct tcphdr *) ((caddr_t) ip6+ off);
sys/net/ip6fw/ip6_fw.c
611
struct tcphdr *tcp6;
sys/net/ip6fw/ip6_fw.c
630
tcp6 = (struct tcphdr *) ((caddr_t)ip6 + off);
sys/net/ip6fw/ip6_fw.c
775
struct tcphdr *const tcp =
sys/net/ip6fw/ip6_fw.c
776
(struct tcphdr *) ((caddr_t)ip6 + off);
sys/net/ip6fw/ip6_fw.c
779
struct tcphdr th;
sys/net/ip6fw/ip6_fw.c
813
tcp_respond(NULL, ip6, (struct tcphdr *)(ip6 + 1),
sys/net/ipfw/ip_fw2.c
1299
struct tcphdr *tcp = L3HDR(struct tcphdr,ip);
sys/net/ipfw/ip_fw2.c
1301
int x = (tcp->th_off << 2) - sizeof(struct tcphdr);
sys/net/ipfw/ip_fw2.c
1492
struct tcphdr *const tcp = (struct tcphdr *)icmp;
sys/net/ipfw/ip_fw2.c
2022
ipfw_state_update_tcp(struct ipfw_state *s, int dir, const struct tcphdr *tcp)
sys/net/ipfw/ip_fw2.c
2086
const struct tcphdr *tcp, struct ipfw_state *s)
sys/net/ipfw/ip_fw2.c
2142
int *match_direction, const struct tcphdr *tcp)
sys/net/ipfw/ip_fw2.c
2189
uint16_t type, struct ip_fw *rule, const struct tcphdr *tcp)
sys/net/ipfw/ip_fw2.c
2231
const struct tcphdr *tcp)
sys/net/ipfw/ip_fw2.c
2746
ipfw_insn_limit *cmd, struct ip_fw_args *args, const struct tcphdr *tcp)
sys/net/ipfw/ip_fw2.c
2882
struct tcphdr *tcp;
sys/net/ipfw/ip_fw2.c
2889
m->m_pkthdr.len = m->m_len = sizeof(struct ip) + sizeof(struct tcphdr);
sys/net/ipfw/ip_fw2.c
2894
tcp = (struct tcphdr *)(ip + 1); /* no IP options */
sys/net/ipfw/ip_fw2.c
2944
ip->ip_len = htons(sizeof(struct tcphdr));
sys/net/ipfw/ip_fw2.c
2972
struct tcphdr *const tcp =
sys/net/ipfw/ip_fw2.c
2973
L3HDR(struct tcphdr, mtod(args->m, struct ip *));
sys/net/ipfw/ip_fw2.c
3123
port = &L3HDR(struct tcphdr, ip)->th_sport;
sys/net/ipfw/ip_fw2.c
3124
csum = &L3HDR(struct tcphdr, ip)->th_sum;
sys/net/ipfw/ip_fw2.c
3138
port = &L3HDR(struct tcphdr, ip)->th_dport;
sys/net/ipfw/ip_fw2.c
3139
csum = &L3HDR(struct tcphdr, ip)->th_sum;
sys/net/ipfw/ip_fw2.c
3291
struct tcphdr *tcp;
sys/net/ipfw/ip_fw2.c
3323
PULLUP_TO(hlen + sizeof(struct tcphdr));
sys/net/ipfw/ip_fw2.c
3324
local->tcp = tcp = L3HDR(struct tcphdr, ip);
sys/net/ipfw/ip_fw2.c
377
struct tcphdr *tcp;
sys/net/ipfw/ip_fw2.c
3906
L3HDR(struct tcphdr,ip)->th_flags));
sys/net/ipfw/ip_fw2.c
3918
L3HDR(struct tcphdr,ip)->th_seq);
sys/net/ipfw/ip_fw2.c
3925
L3HDR(struct tcphdr,ip)->th_ack);
sys/net/ipfw/ip_fw2.c
3932
L3HDR(struct tcphdr,ip)->th_win);
sys/net/ipfw/ip_fw2.c
3940
(L3HDR(struct tcphdr,ip)->th_flags &
sys/net/ipfw3/ip_fw3.c
320
struct tcphdr *tcp;
sys/net/ipfw3/ip_fw3.c
387
PULLUP_TO(hlen + sizeof(struct tcphdr));
sys/net/ipfw3/ip_fw3.c
388
tcp = L3HDR(struct tcphdr, ip);
sys/net/ipfw3_layer4/ip_fw3_layer4.c
184
if ((L3HDR(struct tcphdr, ip)->th_flags &
sys/net/ipfw3_nat/ip_fw3_nat.c
203
old_port = &L3HDR(struct tcphdr, ip)->th_dport;
sys/net/ipfw3_nat/ip_fw3_nat.c
205
csum = &L3HDR(struct tcphdr, ip)->th_sum;
sys/net/ipfw3_nat/ip_fw3_nat.c
234
old_port = &L3HDR(struct tcphdr, ip)->th_sport;
sys/net/ipfw3_nat/ip_fw3_nat.c
235
csum = &L3HDR(struct tcphdr, ip)->th_sum;
sys/net/pf/pf.c
165
struct tcphdr *, struct pf_state_peer *);
sys/net/pf/pf.c
2073
struct tcphdr *th, struct pf_state_peer *dst)
sys/net/pf/pf.c
2139
struct tcphdr *th = NULL;
sys/net/pf/pf.c
2145
tlen = sizeof(struct tcphdr);
sys/net/pf/pf.c
2204
th = (struct tcphdr *)((caddr_t)h + sizeof(struct ip));
sys/net/pf/pf.c
2217
th = (struct tcphdr *)((caddr_t)h6 + sizeof(struct ip6_hdr));
sys/net/pf/pf.c
3509
if (hlen <= sizeof(struct tcphdr))
sys/net/pf/pf.c
3513
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf.c
3514
hlen -= sizeof(struct tcphdr);
sys/net/pf/pf.c
3549
if (hlen <= sizeof(struct tcphdr))
sys/net/pf/pf.c
3553
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf.c
3554
hlen -= sizeof(struct tcphdr);
sys/net/pf/pf.c
3620
mss = rt->rt_ifp->if_mtu - hlen - sizeof(struct tcphdr);
sys/net/pf/pf.c
3701
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4107
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4425
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4562
if (dst->seqdiff && (th->th_off << 2) > sizeof(struct tcphdr)) {
sys/net/pf/pf.c
4781
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
4860
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf.c
5399
struct tcphdr th;
sys/net/pf/pf.c
6615
struct tcphdr th;
sys/net/pf/pf.c
7016
struct tcphdr th;
sys/net/pf/pf_norm.c
1296
struct tcphdr *th = pd->hdr.tcp;
sys/net/pf/pf_norm.c
1366
if (th->th_off < (sizeof(struct tcphdr) >> 2))
sys/net/pf/pf_norm.c
1408
struct tcphdr *th, struct pf_state_peer *src, struct pf_state_peer *dst)
sys/net/pf/pf_norm.c
1448
if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub &&
sys/net/pf/pf_norm.c
1452
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1453
hlen = (th->th_off << 2) - sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1502
u_short *reason, struct tcphdr *th, struct pf_state *state,
sys/net/pf/pf_norm.c
1549
if (th->th_off > (sizeof(struct tcphdr) >> 2) &&
sys/net/pf/pf_norm.c
1555
opt = hdr + sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1556
hlen = (th->th_off << 2) - sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
1620
m_copyback(m, off + sizeof(struct tcphdr),
sys/net/pf/pf_norm.c
1621
(th->th_off << 2) - sizeof(struct tcphdr),
sys/net/pf/pf_norm.c
1622
hdr + sizeof(struct tcphdr));
sys/net/pf/pf_norm.c
1908
pf_normalize_tcpopt(struct pf_rule *r, struct mbuf *m, struct tcphdr *th,
sys/net/pf/pf_norm.c
1919
cnt = thoff - sizeof(struct tcphdr);
sys/net/pf/pf_norm.c
93
struct tcphdr *, int, sa_family_t);
sys/net/pf/pf_osfp.c
109
return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
sys/net/pf/pf_osfp.c
114
pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
sys/net/pf/pf_osfp.c
453
#define MTUOFF (sizeof(struct ip) + sizeof(struct tcphdr))
sys/net/pf/pf_osfp.c
89
const struct tcphdr *tcp)
sys/net/pf/pfvar.h
1207
struct tcphdr *tcp;
sys/net/pf/pfvar.h
1862
struct tcphdr *, struct pf_state_peer *, struct pf_state_peer *);
sys/net/pf/pfvar.h
1864
u_short *, struct tcphdr *, struct pf_state *,
sys/net/pf/pfvar.h
2015
const struct tcphdr *);
sys/net/pf/pfvar.h
2019
const struct tcphdr *);
sys/net/ppp_layer/slcompress.c
159
struct tcphdr *oth;
sys/net/ppp_layer/slcompress.c
160
struct tcphdr *th;
sys/net/ppp_layer/slcompress.c
175
th = (struct tcphdr *)&((int32_t *)ip)[hlen];
sys/net/ppp_layer/slcompress.c
254
oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
sys/net/ppp_layer/slcompress.c
462
struct tcphdr *th;
sys/net/ppp_layer/slcompress.c
482
if (hlen + sizeof(struct tcphdr) > buflen)
sys/net/ppp_layer/slcompress.c
484
hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2;
sys/net/ppp_layer/slcompress.c
523
th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
sys/net/sppp/if_spppsubr.c
725
struct tcphdr *tcp = (struct tcphdr*) ((long*)ip + ip->ip_hl);
sys/netgraph/vjc/ng_vjc.c
594
struct tcphdr *tcp;
sys/netgraph/vjc/ng_vjc.c
608
tcp = (struct tcphdr *)((u_char *)ip + ihlen);
sys/netgraph7/netflow/netflow.c
437
register struct tcphdr *tcp;
sys/netgraph7/netflow/netflow.c
439
tcp = (struct tcphdr *)((caddr_t )ip + hlen);
sys/netgraph7/netflow/ng_netflow.c
553
M_CHECK(sizeof(struct tcphdr));
sys/netgraph7/ng_nat.c
726
struct tcphdr *th = (struct tcphdr *)((caddr_t)ip +
sys/netgraph7/ng_nat.c
759
offsetof(struct tcphdr, th_sum);
sys/netgraph7/tcpmss/ng_tcpmss.c
272
struct tcphdr *tcp;
sys/netgraph7/tcpmss/ng_tcpmss.c
319
M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr));
sys/netgraph7/tcpmss/ng_tcpmss.c
321
tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
sys/netgraph7/tcpmss/ng_tcpmss.c
325
if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
sys/netgraph7/tcpmss/ng_tcpmss.c
329
if (!(tcp->th_flags & TH_SYN) || tcphlen == sizeof(struct tcphdr))
sys/netgraph7/tcpmss/ng_tcpmss.c
335
M_CHECK(tcphlen - sizeof(struct tcphdr));
sys/netgraph7/tcpmss/ng_tcpmss.c
337
tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
sys/netgraph7/tcpmss/ng_tcpmss.c
411
correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags)
sys/netgraph7/tcpmss/ng_tcpmss.c
419
for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
sys/netgraph7/tcpmss/ng_tcpmss.c
79
static int correct_mss(struct tcphdr *, int, uint16_t, int);
sys/netgraph7/vjc/ng_vjc.c
590
struct tcphdr *tcp;
sys/netgraph7/vjc/ng_vjc.c
604
tcp = (struct tcphdr *)((u_char *)ip + ihlen);
sys/netinet/ip_demux.c
151
struct tcphdr *th;
sys/netinet/ip_demux.c
219
if (iplen < iphlen + sizeof(struct tcphdr)) {
sys/netinet/ip_demux.c
223
if (m->m_len < hoff + iphlen + sizeof(struct tcphdr)) {
sys/netinet/ip_demux.c
224
m = m_pullup(m, hoff + iphlen + sizeof(struct tcphdr));
sys/netinet/ip_demux.c
231
th = (struct tcphdr *)((caddr_t)ip + iphlen);
sys/netinet/ip_demux.c
233
if (thoff < sizeof(struct tcphdr) ||
sys/netinet/ip_demux.c
290
struct tcphdr *th;
sys/netinet/ip_demux.c
312
th = (struct tcphdr *)((caddr_t)ip + iphlen);
sys/netinet/tcp.h
149
#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
sys/netinet/tcp.h
46
#define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
sys/netinet/tcp_debug.c
174
len -= sizeof(struct tcphdr);
sys/netinet/tcp_debug.c
77
struct tcphdr *th, int req)
sys/netinet/tcp_debug.h
70
struct tcphdr th;
sys/netinet/tcp_input.c
118
struct tcphdr tcp_savetcp;
sys/netinet/tcp_input.c
265
struct tcphdr *, struct mbuf *, int);
sys/netinet/tcp_input.c
266
static int tcp_reass(struct tcpcb *, struct tcphdr *, int *,
sys/netinet/tcp_input.c
269
static void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *, int);
sys/netinet/tcp_input.c
2776
tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m, int off)
sys/netinet/tcp_input.c
2965
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_input.c
3178
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_input.c
3209
tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th, int acked)
sys/netinet/tcp_input.c
322
tcp_paws_canreasslast(const struct tcpcb *tp, const struct tcphdr *th, int tlen)
sys/netinet/tcp_input.c
374
tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m)
sys/netinet/tcp_input.c
618
IP6_EXTHDR_CHECK(m, *offp, sizeof(struct tcphdr), IPPROTO_DONE);
sys/netinet/tcp_input.c
640
struct tcphdr *th;
sys/netinet/tcp_input.c
699
th = (struct tcphdr *)((caddr_t)ip6 + off0);
sys/netinet/tcp_input.c
727
th = (struct tcphdr *)((caddr_t)ip + off0);
sys/netinet/tcp_input.c
766
KASSERT(off >= sizeof(struct tcphdr) && off <= tlen,
sys/netinet/tcp_input.c
769
if (off > sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
773
th = (struct tcphdr *)((caddr_t)ip6 + off0);
sys/netinet/tcp_input.c
780
optlen = off - sizeof(struct tcphdr);
sys/netinet/tcp_output.c
1004
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_output.c
1074
sizeof(struct tcphdr) + optlen + len);
sys/netinet/tcp_output.c
1076
m->m_pkthdr.csum_thlen = sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_output.c
1083
offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_output.c
1421
hlen = sizeof(struct ip) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
185
struct tcphdr *th;
sys/netinet/tcp_output.c
716
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
964
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_output.c
968
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
1018
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
1464
const struct tcphdr *th;
sys/netinet/tcp_subr.c
1466
th = (const struct tcphdr *)
sys/netinet/tcp_subr.c
1495
const struct tcphdr *th;
sys/netinet/tcp_subr.c
1501
th = (const struct tcphdr *)
sys/netinet/tcp_subr.c
1554
struct tcphdr th;
sys/netinet/tcp_subr.c
1807
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
1822
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
1847
sizeof(struct ip6_hdr) + sizeof(struct tcphdr) :
sys/netinet/tcp_subr.c
2212
struct tcphdr *th;
sys/netinet/tcp_subr.c
2273
ippseudo.ippseudo_len = htons(len + sizeof(struct tcphdr) + optlen);
sys/netinet/tcp_subr.c
2275
th = (struct tcphdr *)((u_char *)ip + sizeof(struct ip));
sys/netinet/tcp_subr.c
2276
doff = sizeof(struct ip) + sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_subr.c
2294
plen = htonl(len + sizeof(struct tcphdr) + optlen);
sys/netinet/tcp_subr.c
2302
th = (struct tcphdr *)((u_char *)ip6 + sizeof(struct ip6_hdr));
sys/netinet/tcp_subr.c
2303
doff = sizeof(struct ip6_hdr) + sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_subr.c
2317
MD5Update(&ctx, (char *)th, sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
416
#define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
sys/netinet/tcp_subr.c
467
struct tcphdr *tcp_hdr = (struct tcphdr *)tcp_ptr;
sys/netinet/tcp_subr.c
479
ip6->ip6_plen = sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
503
plen = htons(sizeof(struct tcphdr) + IPPROTO_TCP);
sys/netinet/tcp_subr.c
556
tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
sys/netinet/tcp_subr.c
564
struct tcphdr *nth;
sys/netinet/tcp_subr.c
616
nth = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
620
nth = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
622
bcopy(th, nth, sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
633
nth = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
636
nth = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
654
ip6->ip6_plen = htons((u_short)(sizeof(struct tcphdr) + tlen));
sys/netinet/tcp_subr.c
655
tlen += sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
667
nth->th_off = sizeof(struct tcphdr) >> 2;
sys/netinet/tcp_subr.c
685
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_subr.c
686
m->m_pkthdr.csum_thlen = sizeof(struct tcphdr);
sys/netinet/tcp_syncache.c
1136
struct tcphdr *th;
sys/netinet/tcp_syncache.c
1148
(sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
sys/netinet/tcp_syncache.c
1156
(sizeof(struct ip) + sizeof(struct tcphdr));
sys/netinet/tcp_syncache.c
1176
tlen = hlen + sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_syncache.c
1211
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_syncache.c
1239
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_syncache.c
1246
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_syncache.c
1317
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_syncache.c
1318
m->m_pkthdr.csum_thlen = sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_syncache.c
134
struct tcphdr *, struct socket *);
sys/netinet/tcp_syncache.c
1429
syncookie_lookup(struct in_conninfo *inc, struct tcphdr *th, struct socket *so)
sys/netinet/tcp_syncache.c
609
syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th)
sys/netinet/tcp_syncache.c
656
syncache_unreach(struct in_conninfo *inc, const struct tcphdr *th)
sys/netinet/tcp_syncache.c
892
syncache_expand(struct in_conninfo *inc, struct tcphdr *th, struct socket **sop,
sys/netinet/tcp_syncache.c
962
syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
sys/netinet/tcp_var.h
109
struct tcphdr tt_t;
sys/netinet/tcp_var.h
672
struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int);
sys/netinet/tcp_var.h
717
void tcp_trace (short, short, struct tcpcb *, void *, struct tcphdr *,
sys/netinet/tcp_var.h
723
void syncache_unreach(struct in_conninfo *, const struct tcphdr *);
sys/netinet/tcp_var.h
724
int syncache_expand(struct in_conninfo *, struct tcphdr *,
sys/netinet/tcp_var.h
727
struct tcphdr *, struct socket *, struct mbuf *);
sys/netinet/tcp_var.h
728
void syncache_chkrst(struct in_conninfo *, struct tcphdr *);
sys/netinet/tcp_var.h
97
struct tcphdr *tqe_th; /* a pointer to tcp header */
sys/netinet/tcpip.h
49
struct tcphdr ti_t; /* tcp header */
sys/netinet/tcpip.h
57
struct tcphdr ti_t; /* tcp header */
usr.sbin/ppp/ip.c
277
const struct tcphdr *th;
usr.sbin/ppp/ip.c
337
th = (const struct tcphdr *)payload;
usr.sbin/ppp/ip.c
540
const struct tcphdr *th;
usr.sbin/ppp/ip.c
788
th = (const struct tcphdr *)payload;
usr.sbin/ppp/slcompress.c
149
struct tcphdr *oth;
usr.sbin/ppp/slcompress.c
150
struct tcphdr *th;
usr.sbin/ppp/slcompress.c
167
th = (struct tcphdr *) & ((int *) ip)[hlen];
usr.sbin/ppp/slcompress.c
249
oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen];
usr.sbin/ppp/slcompress.c
419
struct tcphdr *th;
usr.sbin/ppp/slcompress.c
439
if ((int)(hlen + sizeof(struct tcphdr)) > len)
usr.sbin/ppp/slcompress.c
441
th = (struct tcphdr *) & ((char *) ip)[hlen];
usr.sbin/ppp/slcompress.c
486
th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen];
usr.sbin/ppp/tcpmss.c
100
MSSFixup(struct tcphdr *tc, size_t pktlen, u_int16_t maxmss)
usr.sbin/ppp/tcpmss.c
110
if (hlen <= sizeof(struct tcphdr) || hlen > pktlen)
usr.sbin/ppp/tcpmss.c
117
for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
usr.sbin/ppp/tcpmss.c
164
plen - hlen >= sizeof(struct tcphdr))
usr.sbin/ppp/tcpmss.c
165
MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen,
usr.sbin/ppp/tcpmss.c
74
#define MAXMSS(mtu) (mtu - sizeof(struct ip) - sizeof(struct tcphdr))
usr.sbin/trpt/trpt.c
300
struct tcpcb *tp, int family, void *ip, struct tcphdr *th, int req)
usr.sbin/trpt/trpt.c
374
len -= sizeof(struct tcphdr);
usr.sbin/trpt/trpt.c
89
int, void *, struct tcphdr *, int);