Symbol: tcphdr
dist/pf/usr.sbin/ftp-proxy/npf.c
121
BPF_STMT(BPF_LD+BPF_H+BPF_IND, offsetof(struct tcphdr, th_dport)),
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1018
const struct tcphdr *th;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1043
th = (const struct tcphdr *)((const char *)ip +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
1060
th = (const struct tcphdr *)((const char *)ip6 +
sys/arch/powerpc/ibm4xx/dev/if_emac.c
882
const struct tcphdr *th;
sys/arch/powerpc/ibm4xx/dev/if_emac.c
923
th = (const struct tcphdr *)((const char *)ip + sizeof(*ip));
sys/arch/powerpc/ibm4xx/dev/if_emac.c
948
th = (const struct tcphdr *)((const char *)ip6 +
sys/arch/sgimips/mace/if_mec.c
1787
pktlen < (hlen + sizeof(struct tcphdr)))
sys/arch/xen/xen/xennet_checksum.c
165
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/dev/ic/gem.c
1888
if (pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/ic/hme.c
790
if (pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/ic/i82557.c
1274
pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/pci/cxgb/cxgb_lro.c
131
can_lro_tcpsegment(struct tcphdr *th)
sys/dev/pci/cxgb/cxgb_lro.c
159
struct tcphdr *th = (struct tcphdr *) (ih + 1);
sys/dev/pci/cxgb/cxgb_lro.c
250
struct tcphdr *th, *nth = (struct tcphdr *)(nih + 1);
sys/dev/pci/cxgb/cxgb_lro.c
265
th = (struct tcphdr *)(mtod(sm, uint8_t *) + IPH_OFFSET + sizeof (struct ip));
sys/dev/pci/cxgb/cxgb_lro.c
331
struct tcphdr *th;
sys/dev/pci/cxgb/cxgb_lro.c
341
th = (struct tcphdr *)(ih + 1);
sys/dev/pci/cxgb/cxgb_lro.c
81
lro_match(struct mbuf *m, struct ip *ih, struct tcphdr *th)
sys/dev/pci/cxgb/cxgb_lro.c
84
struct tcphdr *sth = (struct tcphdr *) (sih + 1);
sys/dev/pci/cxgb/cxgb_lro.c
93
lro_lookup(struct lro_state *l, int idx, struct ip *ih, struct tcphdr *th)
sys/dev/pci/cxgb/cxgb_sge.c
1210
struct tcphdr *tcp;
sys/dev/pci/cxgb/cxgb_sge.c
1237
tcp = (struct tcphdr *)((uint8_t *)ip +
sys/dev/pci/if_bge.c
5239
struct tcphdr *th;
sys/dev/pci/if_bge.c
5271
(hlen + sizeof(struct tcphdr)))) {
sys/dev/pci/if_bge.c
5276
m0->m_len, hlen+ sizeof(struct tcphdr));
sys/dev/pci/if_bge.c
5295
m_copyback(m0, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_bge.c
5311
th = (struct tcphdr *) (mtod(m0, char *) + hlen);
sys/dev/pci/if_bge.c
5316
- sizeof(struct tcphdr)
sys/dev/pci/if_dge.c
1133
DGE_TCPIP_TUCSO(offset + offsetof(struct tcphdr, th_sum)) |
sys/dev/pci/if_ena.c
2679
struct tcphdr *th;
sys/dev/pci/if_ena.c
2716
th = (struct tcphdr *)((vaddr_t)ip + iphlen);
sys/dev/pci/if_iavf.c
2956
len = sizeof(struct tcphdr);
sys/dev/pci/if_ixl.c
2646
len = sizeof(struct tcphdr);
sys/dev/pci/if_jme.c
1352
(hlen + sizeof(struct tcphdr)))) {
sys/dev/pci/if_jme.c
1359
struct tcphdr th;
sys/dev/pci/if_jme.c
1386
m_copyback(m, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_jme.c
1395
struct tcphdr *th;
sys/dev/pci/if_vmx.c
3019
csum_off = offsetof(struct tcphdr, th_sum);
sys/dev/pci/if_vmx.c
3032
struct tcphdr *tcp;
sys/dev/pci/if_wm.c
8668
(hlen + sizeof(struct tcphdr)))) {
sys/dev/pci/if_wm.c
8674
struct tcphdr th;
sys/dev/pci/if_wm.c
8700
m_copyback(m0, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_wm.c
8709
struct tcphdr *th;
sys/dev/pci/if_wm.c
8780
WTX_TCPIP_TUCSO(offset + offsetof(struct tcphdr, th_sum)) |
sys/dev/pci/if_wm.c
9336
(hlen + sizeof(struct tcphdr)))) {
sys/dev/pci/if_wm.c
9342
struct tcphdr th;
sys/dev/pci/if_wm.c
9368
m_copyback(m0, hlen + offsetof(struct tcphdr, th_sum),
sys/dev/pci/if_wm.c
9377
struct tcphdr *th;
sys/dev/pci/igc/if_igc.c
3204
struct tcphdr *th = NULL /* XXXGCC */;
sys/dev/pci/ixgbe/if_fdir.c
118
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
sys/dev/pci/ixgbe/if_fdir.c
91
struct tcphdr *th;
sys/dev/pci/ixgbe/ix_txrx.c
1003
struct tcphdr *th;
sys/dev/pci/ixgbe/ix_txrx.c
1031
th = (struct tcphdr *)((char *)ip + ip_hlen);
sys/dev/pci/ixgbe/ix_txrx.c
1047
th = (struct tcphdr *)((char *)ip6 + ip_hlen);
sys/dist/pf/net/pf.c
1585
struct tcphdr *th, struct pf_state_peer *dst)
sys/dist/pf/net/pf.c
164
struct tcphdr *, struct pf_state_peer *);
sys/dist/pf/net/pf.c
1664
struct tcphdr *th;
sys/dist/pf/net/pf.c
1671
tlen = sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
1751
th = (struct tcphdr *)((char *)h + sizeof(struct ip));
sys/dist/pf/net/pf.c
1764
th = (struct tcphdr *)((char *)h6 + sizeof(struct ip6_hdr));
sys/dist/pf/net/pf.c
2873
if (hlen <= sizeof(struct tcphdr))
sys/dist/pf/net/pf.c
2877
opt = hdr + sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
2878
hlen -= sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
2913
if (hlen <= sizeof(struct tcphdr))
sys/dist/pf/net/pf.c
2917
opt = hdr + sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
2918
hlen -= sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
2979
mss = rt->rt_ifp->if_mtu - hlen - sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
2984
mss = rt->rt_ifp->if_mtu - hlen - sizeof(struct tcphdr);
sys/dist/pf/net/pf.c
3082
struct tcphdr *th = pd->hdr.tcp;
sys/dist/pf/net/pf.c
3821
struct tcphdr *th = pd->hdr.tcp;
sys/dist/pf/net/pf.c
4070
if (dst->seqdiff && (th->th_off << 2) > sizeof(struct tcphdr)) {
sys/dist/pf/net/pf.c
4578
struct tcphdr th;
sys/dist/pf/net/pf.c
5633
struct tcphdr th; /* XXX */
sys/dist/pf/net/pf.c
5807
struct tcphdr th;
sys/dist/pf/net/pf.c
6232
struct tcphdr th;
sys/dist/pf/net/pf_norm.c
1279
struct tcphdr *th = pd->hdr.tcp;
sys/dist/pf/net/pf_norm.c
130
struct tcphdr *, int);
sys/dist/pf/net/pf_norm.c
1349
if (th->th_off < (sizeof(struct tcphdr) >> 2))
sys/dist/pf/net/pf_norm.c
1391
struct tcphdr *th, struct pf_state_peer *src,
sys/dist/pf/net/pf_norm.c
1431
if (th->th_off > (sizeof(struct tcphdr) >> 2) && src->scrub &&
sys/dist/pf/net/pf_norm.c
1435
opt = hdr + sizeof(struct tcphdr);
sys/dist/pf/net/pf_norm.c
1436
hlen = (th->th_off << 2) - sizeof(struct tcphdr);
sys/dist/pf/net/pf_norm.c
1486
u_short *reason, struct tcphdr *th, struct pf_state *state,
sys/dist/pf/net/pf_norm.c
1529
if (th->th_off > (sizeof(struct tcphdr) >> 2) &&
sys/dist/pf/net/pf_norm.c
1535
opt = hdr + sizeof(struct tcphdr);
sys/dist/pf/net/pf_norm.c
1536
hlen = (th->th_off << 2) - sizeof(struct tcphdr);
sys/dist/pf/net/pf_norm.c
1600
m_copyback(m, off + sizeof(struct tcphdr),
sys/dist/pf/net/pf_norm.c
1601
(th->th_off << 2) - sizeof(struct tcphdr), hdr +
sys/dist/pf/net/pf_norm.c
1602
sizeof(struct tcphdr));
sys/dist/pf/net/pf_norm.c
1878
pf_normalize_tcpopt(struct pf_rule *r, struct mbuf *m, struct tcphdr *th,
sys/dist/pf/net/pf_norm.c
1888
cnt = thoff - sizeof(struct tcphdr);
sys/dist/pf/net/pf_norm.c
1889
optp = mtod(m, u_char *) + off + sizeof(struct tcphdr);
sys/dist/pf/net/pf_osfp.c
117
return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
sys/dist/pf/net/pf_osfp.c
122
pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
sys/dist/pf/net/pf_osfp.c
481
#define MTUOFF (sizeof(struct ip) + sizeof(struct tcphdr))
sys/dist/pf/net/pf_osfp.c
97
const struct tcphdr *tcp)
sys/dist/pf/net/pfvar.h
1085
struct tcphdr *tcp;
sys/dist/pf/net/pfvar.h
1670
struct tcphdr *, struct pf_state_peer *, struct pf_state_peer *);
sys/dist/pf/net/pfvar.h
1672
u_short *, struct tcphdr *, struct pf_state *,
sys/dist/pf/net/pfvar.h
1822
const struct tcphdr *);
sys/dist/pf/net/pfvar.h
1826
const struct tcphdr *);
sys/kern/uipc_mbufdebug.c
813
struct tcphdr tcp;
sys/kern/uipc_mbufdebug.c
858
len = (tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/ether_sw_offload.c
166
struct tcphdr *th;
sys/net/if_spppsubr.c
893
struct tcphdr *th = NULL;
sys/net/if_spppsubr.c
901
sizeof(struct tcphdr)) {
sys/net/if_spppsubr.c
902
th = (struct tcphdr *)
sys/net/lagg/if_lagg.c
889
struct tcphdr _th;
sys/net/lagg/if_lagg.c
896
const struct tcphdr *th;
sys/net/npf/npf.h
189
struct tcphdr * tcp;
sys/net/npf/npf_alg_icmp.c
264
struct tcphdr th;
sys/net/npf/npf_alg_icmp.c
368
const struct tcphdr *th = enpc.npc_l4.tcp;
sys/net/npf/npf_alg_icmp.c
425
const struct tcphdr *th = enpc.npc_l4.tcp;
sys/net/npf/npf_alg_icmp.c
90
const struct tcphdr *th = npc->npc_l4.tcp;
sys/net/npf/npf_connkey.c
233
const struct tcphdr *th;
sys/net/npf/npf_ext_normalize.c
150
struct tcphdr *th;
sys/net/npf/npf_inet.c
252
const struct tcphdr *th = npc->npc_l4.tcp;
sys/net/npf/npf_inet.c
280
const struct tcphdr *th = npc->npc_l4.tcp;
sys/net/npf/npf_inet.c
290
cnt = (th->th_off << 2) - sizeof(struct tcphdr);
sys/net/npf/npf_inet.c
299
const int step = npc->npc_hlen + sizeof(struct tcphdr);
sys/net/npf/npf_inet.c
355
const struct tcphdr *th = npc->npc_l4.tcp;
sys/net/npf/npf_inet.c
364
cnt = (th->th_off << 2) - sizeof(struct tcphdr);
sys/net/npf/npf_inet.c
373
const int step = npc->npc_hlen + sizeof(struct tcphdr);
sys/net/npf/npf_inet.c
568
struct tcphdr *th;
sys/net/npf/npf_inet.c
570
th = nbuf_advance(nbuf, hlen, sizeof(struct tcphdr));
sys/net/npf/npf_inet.c
731
struct tcphdr *th = npc->npc_l4.tcp;
sys/net/npf/npf_inet.c
752
struct tcphdr *th;
sys/net/npf/npf_nat.c
556
const struct tcphdr *th = npc->npc_l4.tcp;
sys/net/npf/npf_sendpkt.c
115
len = sizeof(struct ip) + sizeof(struct tcphdr);
sys/net/npf/npf_sendpkt.c
117
len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/net/npf/npf_sendpkt.c
145
ip->ip_len = htons(sizeof(struct tcphdr));
sys/net/npf/npf_sendpkt.c
147
th = (struct tcphdr *)(ip + 1);
sys/net/npf/npf_sendpkt.c
162
th = (struct tcphdr *)(ip6 + 1);
sys/net/npf/npf_sendpkt.c
175
th->th_off = sizeof(struct tcphdr) >> 2;
sys/net/npf/npf_sendpkt.c
192
sizeof(struct tcphdr));
sys/net/npf/npf_sendpkt.c
98
struct tcphdr *oth, *th;
sys/net/npf/npf_socket.c
129
struct tcphdr *tcp = npc->npc_l4.tcp;
sys/net/npf/npf_socket.c
192
struct tcphdr *tcp = npc->npc_l4.tcp;
sys/net/npf/npf_state_tcp.c
295
const struct tcphdr * const th = npc->npc_l4.tcp;
sys/net/npf/npf_state_tcp.c
460
const struct tcphdr * const th = npc->npc_l4.tcp;
sys/net/rss_config.c
114
if (m->m_len >= hlen + sizeof(struct tcphdr)) {
sys/net/rss_config.c
115
struct tcphdr *th;
sys/net/rss_config.c
117
th = (struct tcphdr *)(mtod(m, char *) + hlen);
sys/net/rss_config.c
124
} else if (m->m_pkthdr.len >= hlen + sizeof(struct tcphdr)) {
sys/net/rss_config.c
128
m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport),
sys/net/rss_config.c
212
if (m->m_len >= hlen + sizeof(struct tcphdr)) {
sys/net/rss_config.c
213
struct tcphdr *th;
sys/net/rss_config.c
215
th = (struct tcphdr *)(mtod(m, char *) + hlen);
sys/net/rss_config.c
222
} else if (m->m_pkthdr.len >= hlen + sizeof(struct tcphdr)) {
sys/net/rss_config.c
226
m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport),
sys/net/slcompress.c
179
struct tcphdr *oth;
sys/net/slcompress.c
180
struct tcphdr *th;
sys/net/slcompress.c
195
th = (struct tcphdr *)&((int32_t *)ip)[hlen];
sys/net/slcompress.c
271
oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
sys/net/slcompress.c
477
struct tcphdr *th;
sys/net/slcompress.c
499
if (hlen + sizeof(struct tcphdr) > buflen)
sys/net/slcompress.c
501
hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2;
sys/net/slcompress.c
546
th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
sys/netinet/in_offload.c
55
struct tcphdr *th;
sys/netinet/tcp.h
78
__CTASSERT(sizeof(struct tcphdr) == 20);
sys/netinet/tcp_congctl.c
195
static int tcp_reno_do_fast_retransmit(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
196
static int tcp_reno_fast_retransmit(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
199
const struct tcphdr *);
sys/netinet/tcp_congctl.c
200
static void tcp_reno_newack(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
203
static int tcp_newreno_fast_retransmit(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
205
const struct tcphdr *);
sys/netinet/tcp_congctl.c
206
static void tcp_newreno_newack(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
208
static int tcp_cubic_fast_retransmit(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
210
static void tcp_cubic_newack(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.c
465
tcp_reno_do_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
504
tcp_reno_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
565
const struct tcphdr *th)
sys/netinet/tcp_congctl.c
589
tcp_reno_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
657
tcp_newreno_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
679
tcp_newreno_fast_retransmit_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
773
tcp_newreno_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
906
tcp_cubic_fast_retransmit(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.c
925
tcp_cubic_newack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_congctl.h
53
int (*fast_retransmit)(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.h
65
void (*fast_retransmit_newack)(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_congctl.h
71
void (*newack)(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_debug.c
115
struct tcphdr *th;
sys/netinet/tcp_debug.c
142
th = (struct tcphdr *)((char *)&td->td_ti +
sys/netinet/tcp_debug.c
151
th = (struct tcphdr *)((char *)&td->td_ti6 +
sys/netinet/tcp_debug.c
181
len -= sizeof (struct tcphdr);
sys/netinet/tcp_debug.h
49
struct tcphdr th;
sys/netinet/tcp_debug.h
57
struct tcphdr th;
sys/netinet/tcp_input.c
1188
struct tcphdr *th;
sys/netinet/tcp_input.c
1245
M_REGION_GET(th, struct tcphdr *, m, off, sizeof(struct tcphdr));
sys/netinet/tcp_input.c
1255
if (ACCESSIBLE_POINTER(th, struct tcphdr) == 0) {
sys/netinet/tcp_input.c
1256
m = m_copyup(m, off + sizeof(struct tcphdr), 0);
sys/netinet/tcp_input.c
1261
th = (struct tcphdr *)(mtod(m, char *) + off);
sys/netinet/tcp_input.c
1263
KASSERT(ACCESSIBLE_POINTER(th, struct tcphdr));
sys/netinet/tcp_input.c
1331
if (thlen < sizeof(struct tcphdr) || thlen > tlen) {
sys/netinet/tcp_input.c
1337
if (thlen > sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
1338
M_REGION_GET(th, struct tcphdr *, m, off, thlen);
sys/netinet/tcp_input.c
1343
KASSERT(ACCESSIBLE_POINTER(th, struct tcphdr));
sys/netinet/tcp_input.c
1344
optlen = thlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
1345
optp = ((u_int8_t *)th) + sizeof(struct tcphdr);
sys/netinet/tcp_input.c
1508
if (iphlen + sizeof(struct tcphdr) > MHLEN)
sys/netinet/tcp_input.c
1525
if (M_TRAILINGSPACE(tcp_saveti) < sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
1529
tcp_saveti->m_len += sizeof(struct tcphdr);
sys/netinet/tcp_input.c
1531
sizeof(struct tcphdr));
sys/netinet/tcp_input.c
290
tcp_setup_ack(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_input.c
301
icmp_check(struct tcpcb *tp, const struct tcphdr *th, int acked)
sys/netinet/tcp_input.c
3012
tcp_signature(struct mbuf *m, struct tcphdr *th, int thoff,
sys/netinet/tcp_input.c
3023
struct tcphdr th0;
sys/netinet/tcp_input.c
3086
tcp_dooptions(struct tcpcb *tp, const u_char *cp, int cnt, struct tcphdr *th,
sys/netinet/tcp_input.c
324
tcp_fields_to_host(struct tcphdr *th)
sys/netinet/tcp_input.c
3266
tcp_pulloutofband(struct socket *so, struct tcphdr *th,
sys/netinet/tcp_input.c
337
tcp_fields_to_net(struct tcphdr *th)
sys/netinet/tcp_input.c
347
tcp_urp_drop(struct tcphdr *th, int todrop, int *tiflags)
sys/netinet/tcp_input.c
404
static int tcp_reass(struct tcpcb *, const struct tcphdr *, struct mbuf *,
sys/netinet/tcp_input.c
407
static void tcp4_log_refused(const struct ip *, const struct tcphdr *);
sys/netinet/tcp_input.c
409
static void tcp6_log_refused(const struct ip6_hdr *, const struct tcphdr *);
sys/netinet/tcp_input.c
455
tcp_reass(struct tcpcb *tp, const struct tcphdr *th, struct mbuf *m, int tlen)
sys/netinet/tcp_input.c
833
tcp4_log_refused(const struct ip *ip, const struct tcphdr *th)
sys/netinet/tcp_input.c
853
tcp6_log_refused(const struct ip6_hdr *ip6, const struct tcphdr *th)
sys/netinet/tcp_input.c
876
tcp_input_checksum(int af, struct mbuf *m, const struct tcphdr *th,
sys/netinet/tcp_input.c
988
static void tcp_vtw_input(struct tcphdr *th, vestigial_inpcb_t *vp,
sys/netinet/tcp_output.c
1054
iphdrlen = sizeof(struct ip) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
1058
iphdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
1280
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_output.c
1286
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_output.c
1369
th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_output.c
1427
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_output.c
1443
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_output.c
242
hdrlen = sizeof(struct ip) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
246
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
517
struct tcphdr *th;
sys/netinet/tcp_sack.c
241
tcp_sack_option(struct tcpcb *tp, const struct tcphdr *th, const u_char *cp,
sys/netinet/tcp_sack.c
403
tcp_del_sackholes(struct tcpcb *tp, const struct tcphdr *th)
sys/netinet/tcp_subr.c
1277
struct tcphdr th;
sys/netinet/tcp_subr.c
1383
struct tcphdr *th;
sys/netinet/tcp_subr.c
1419
th = (struct tcphdr *)((char *)ip + (ip->ip_hl << 2));
sys/netinet/tcp_subr.c
1488
th = (struct tcphdr *)((char *)ip + (ip->ip_hl << 2));
sys/netinet/tcp_subr.c
1722
hdrsiz += sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
2165
hlen += sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
418
unsigned hlen = basehlen + sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
451
struct tcphdr *n;
sys/netinet/tcp_subr.c
482
KASSERT(hlen + sizeof(struct tcphdr) <= MCLBYTES);
sys/netinet/tcp_subr.c
485
if (m && m->m_len == hlen + sizeof(struct tcphdr)) {
sys/netinet/tcp_subr.c
491
if (m && hlen + sizeof(struct tcphdr) > MHLEN) {
sys/netinet/tcp_subr.c
501
m->m_pkthdr.len = m->m_len = hlen + sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
506
n = (struct tcphdr *)(mtod(m, char *) + hlen);
sys/netinet/tcp_subr.c
516
ipov->ih_len = htons(sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
540
htons(sizeof(struct tcphdr) + IPPROTO_TCP));
sys/netinet/tcp_subr.c
550
ip6->ip6_plen = htons(sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
570
&in6p_faddr(inp), htonl(sizeof(struct tcphdr)),
sys/netinet/tcp_subr.c
605
struct tcphdr *th0, tcp_seq ack, tcp_seq seq, int flags)
sys/netinet/tcp_subr.c
615
struct tcphdr *th;
sys/netinet/tcp_subr.c
668
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
673
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
749
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
757
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
777
th->th_off = sizeof (struct tcphdr) >> 2;
sys/netinet/tcp_syncache.c
1089
struct tcphdr *th;
sys/netinet/tcp_syncache.c
1112
tlen = hlen + sizeof(struct tcphdr) + MAX_TCPOPTLEN;
sys/netinet/tcp_syncache.c
1144
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_syncache.c
1156
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_syncache.c
1244
tlen = hlen + sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_syncache.c
1246
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_syncache.c
556
struct tcphdr *th, struct socket *so, struct mbuf *m)
sys/netinet/tcp_syncache.c
803
syn_cache_reset(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th)
sys/netinet/tcp_syncache.c
826
struct tcphdr *th)
sys/netinet/tcp_syncache.c
877
syn_cache_add(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th,
sys/netinet/tcp_syncache.h
206
struct tcphdr *, unsigned int, struct socket *,
sys/netinet/tcp_syncache.h
209
struct tcphdr *);
sys/netinet/tcp_syncache.h
212
struct tcphdr *, struct socket *so, struct mbuf *);
sys/netinet/tcp_syncache.h
216
struct tcphdr *);
sys/netinet/tcp_var.h
170
struct tcphdr ti_t; /* tcp header */
sys/netinet/tcp_var.h
806
int tcp_signature(struct mbuf *, struct tcphdr *, int, struct secasvar *,
sys/netinet/tcp_var.h
828
struct tcphdr *, struct mbuf *, int);
sys/netinet/tcp_var.h
840
struct tcphdr *, tcp_seq, tcp_seq, int);
sys/netinet/tcp_var.h
844
int tcp_signature_compute(struct mbuf *, struct tcphdr *, int, int,
sys/netinet/tcp_var.h
860
void tcp_sack_option(struct tcpcb *, const struct tcphdr *,
sys/netinet/tcp_var.h
862
void tcp_del_sackholes(struct tcpcb *, const struct tcphdr *);
sys/netinet/tcp_var.h
872
int tcp_input_checksum(int, struct mbuf *, const struct tcphdr *, int, int,
sys/netinet/tcp_var.h
876
struct tcphdr *, struct mbuf *, int, struct tcp_opt_info *);
sys/netinet/tcp_vtw.h
359
struct tcphdr;
sys/netinet/tcp_vtw.h
363
int vtw_lookup_v4(const struct ip *ip, const struct tcphdr *th,
sys/netinet/tcp_vtw.h
369
int vtw_lookup_v6(const struct ip6_hdr *ip, const struct tcphdr *th,
sys/netinet6/in6_offload.c
59
struct tcphdr *th;
sys/netipsec/ipsec.c
1009
if (off + sizeof(struct tcphdr) > m->m_pkthdr.len)
sys/netipsec/ipsec.c
894
struct tcphdr th;
sys/netipsec/ipsec.c
903
if (off + sizeof(struct tcphdr) > m->m_pkthdr.len)
sys/netipsec/ipsec.c
984
struct tcphdr th;
sys/netipsec/ipsec_input.c
126
struct tcphdr *th;
sys/netipsec/ipsec_input.c
142
M_REGION_GET(th, struct tcphdr *, m, poff, sizeof(*th));
usr.sbin/npf/npfctl/npf_bpf_comp.c
743
assert(sport_off == offsetof(struct tcphdr, th_sport));
usr.sbin/npf/npfctl/npf_bpf_comp.c
744
assert(dport_off == offsetof(struct tcphdr, th_dport));
usr.sbin/npf/npfctl/npf_bpf_comp.c
791
const unsigned tcpfl_off = offsetof(struct tcphdr, th_flags);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
148
struct tcphdr *th;
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
154
th->th_off = sizeof(struct tcphdr) >> 2;
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
155
size = sizeof(struct tcphdr);
usr.sbin/npf/npftest/libnpftest/npf_mbuf_subr.c
268
struct tcphdr *th;
usr.sbin/npf/npftest/libnpftest/npf_state_test.c
120
struct tcphdr *th;
usr.sbin/npf/npftest/libnpftest/npf_state_test.c
125
ip->ip_len = htons(sizeof(struct ip) + sizeof(struct tcphdr) + p->tlen);
usr.sbin/npf/npftest/npfstream.c
42
const struct tcphdr *th;
usr.sbin/npf/npftest/npfstream.c
57
th = (const struct tcphdr *)p;
usr.sbin/trpt/trpt.c
387
struct tcphdr *th = NULL;
usr.sbin/trpt/trpt.c
401
th = (struct tcphdr *)(ip + 1);
usr.sbin/trpt/trpt.c
408
th = (struct tcphdr *)(ip6 + 1);
usr.sbin/trpt/trpt.c
468
len -= sizeof(struct tcphdr);