Symbol: tcphdr
sys/dev/pci/if_em.c
2622
offsetof(struct tcphdr, th_sum);
sys/dev/pci/if_ixgb.c
1336
offsetof(struct tcphdr, th_sum);
sys/dev/pci/if_oce.c
1329
struct tcphdr *th;
sys/dev/pci/if_oce.c
1357
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/dev/pci/if_oce.c
1366
th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/dev/pci/if_vmx.c
1596
offset = hdrlen + offsetof(struct tcphdr, th_sum);
sys/dev/pci/if_vmx.c
1685
sizeof(struct tcphdr);
sys/dev/pv/if_vio.c
1162
hdr->csum_offset = offsetof(struct tcphdr, th_sum);
sys/net/if_ethersubr.c
1220
ext->tcp = (struct tcphdr *)(mtod(m, caddr_t) + hoff);
sys/net/pf.c
142
struct tcphdr *th;
sys/net/pf.c
3590
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf.c
3591
optsoff = pd->off + sizeof(struct tcphdr);
sys/net/pf.c
3636
struct tcphdr *th;
sys/net/pf.c
3640
tlen = sizeof(struct tcphdr);
sys/net/pf.c
3693
th = (struct tcphdr *)((caddr_t)h + sizeof(struct ip));
sys/net/pf.c
3705
th = (struct tcphdr *)((caddr_t)h6 + sizeof(struct ip6_hdr));
sys/net/pf.c
4269
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf.c
4271
pd->off + sizeof(struct tcphdr), opts, olen, NULL, pd->af))
sys/net/pf.c
4294
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf.c
4296
pd->off + sizeof(struct tcphdr), opts, olen, NULL, pd->af))
sys/net/pf.c
4349
mss = ifp->if_mtu - hlen - sizeof(struct tcphdr);
sys/net/pf.c
5135
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
5542
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
5691
if (dst->seqdiff && (th->th_off << 2) > sizeof(struct tcphdr)) {
sys/net/pf.c
5885
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
5973
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
6005
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
6066
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
6515
struct tcphdr *th = &pd2.hdr.tcp;
sys/net/pf.c
7977
(pd->proto == IPPROTO_TCP ? sizeof(struct tcphdr) :
sys/net/pf.c
8114
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf.c
8122
(th->th_off << 2) < sizeof(struct tcphdr)) {
sys/net/pf_norm.c
1122
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_norm.c
1178
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_norm.c
1254
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pf_norm.c
1629
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/net/pf_norm.c
1630
optsoff = pd->off + sizeof(struct tcphdr);
sys/net/pf_norm.c
1648
sizeof(struct tcphdr), &pd->hdr.tcp, M_NOWAIT);
sys/net/pf_osfp.c
117
return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
sys/net/pf_osfp.c
123
const struct tcphdr *tcp)
sys/net/pf_osfp.c
481
#define MTUOFF (sizeof(struct ip) + sizeof(struct tcphdr))
sys/net/pf_osfp.c
98
struct tcphdr *th = &pd->hdr.tcp;
sys/net/pfvar.h
1960
struct tcphdr;
sys/net/pfvar.h
1986
const struct tcphdr *);
sys/net/pfvar_priv.h
562
struct tcphdr tcp;
sys/net/pipex.c
2809
#define MAXMSS(mtu) (mtu - sizeof(struct ip) - sizeof(struct tcphdr) - \
sys/net/pipex.c
2841
struct tcphdr *th;
sys/net/pipex.c
2845
lpktp = sizeof(struct ip) + sizeof(struct tcphdr) + PIPEX_TCP_OPTLEN;
sys/net/pipex.c
2865
if (sizeof(struct tcphdr) > lpktp)
sys/net/pipex.c
2867
th = (struct tcphdr *)pktp;
sys/net/pipex.c
2878
pktp += sizeof(struct tcphdr);
sys/net/pipex.c
2879
lpktp -= sizeof(struct tcphdr);
sys/net/slcompress.c
171
struct tcphdr *oth;
sys/net/slcompress.c
172
struct tcphdr *th;
sys/net/slcompress.c
187
th = (struct tcphdr *)&((int32_t *)ip)[hlen];
sys/net/slcompress.c
264
oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
sys/net/slcompress.c
468
struct tcphdr *th;
sys/net/slcompress.c
488
if (hlen + sizeof(struct tcphdr) > buflen)
sys/net/slcompress.c
490
hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2;
sys/net/slcompress.c
529
th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
sys/netinet/if_ether.h
307
struct tcphdr *tcp;
sys/netinet/ip_divert.c
109
min_hdrlen = sizeof(struct tcphdr);
sys/netinet/ip_output.c
1823
offset += offsetof(struct tcphdr, th_sum);
sys/netinet/ip_output.c
1866
offset += offsetof(struct tcphdr, th_sum);
sys/netinet/ipsec_input.c
477
if (m->m_pkthdr.len < skip + sizeof(struct tcphdr)) {
sys/netinet/ipsec_input.c
483
m_copyback(m, skip + offsetof(struct tcphdr, th_sum),
sys/netinet/ipsec_input.c
493
m_copyback(m, skip + offsetof(struct tcphdr, th_sum),
sys/netinet/tcp_debug.c
123
struct tcphdr *th;
sys/netinet/tcp_debug.h
43
struct tcphdr ti_t; /* tcp header */
sys/netinet/tcp_debug.h
63
struct tcphdr ti6_t;
sys/netinet/tcp_input.c
164
void tcp_sack_partialack(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_input.c
165
void tcp_newreno_partialack(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_input.c
173
struct tcphdr *, u_int);
sys/netinet/tcp_input.c
174
int syn_cache_add(struct sockaddr *, struct sockaddr *, struct tcphdr *,
sys/netinet/tcp_input.c
178
struct tcphdr *, unsigned int, unsigned int, struct socket *,
sys/netinet/tcp_input.c
195
tcp_reass(struct tcpcb *tp, struct tcphdr *th, struct mbuf *m, int *tlen)
sys/netinet/tcp_input.c
2132
tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcphdr *th,
sys/netinet/tcp_input.c
234
struct tcphdr *phdr = p->tcpqe_tcp;
sys/netinet/tcp_input.c
2416
tcp_sack_option(struct tcpcb *tp, struct tcphdr *th, u_char *cp, int optlen)
sys/netinet/tcp_input.c
260
struct tcphdr *qhdr = q->tcpqe_tcp;
sys/netinet/tcp_input.c
2604
tcp_del_sackholes(struct tcpcb *tp, struct tcphdr *th)
sys/netinet/tcp_input.c
2649
tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th)
sys/netinet/tcp_input.c
2851
sizeof(struct tcphdr);
sys/netinet/tcp_input.c
2853
mss = rtmtu - iphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
2856
mss = ifp->if_mtu - iphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
2859
mss = ifp->if_mtu - iphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
2867
mss = ifp->if_mtu - iphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
2873
mssopt = ifp->if_mtu - iphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
2960
hlen += sizeof(struct tcphdr);
sys/netinet/tcp_input.c
3030
tcp_newreno_partialack(struct tcpcb *tp, struct tcphdr *th)
sys/netinet/tcp_input.c
3091
mss = ifp->if_mtu - iphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
3505
syn_cache_get(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th,
sys/netinet/tcp_input.c
3697
syn_cache_reset(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th,
sys/netinet/tcp_input.c
3724
struct tcphdr *th, u_int rtableid)
sys/netinet/tcp_input.c
3778
syn_cache_add(struct sockaddr *src, struct sockaddr *dst, struct tcphdr *th,
sys/netinet/tcp_input.c
3992
struct tcphdr *th;
sys/netinet/tcp_input.c
4020
tlen = hlen + sizeof(struct tcphdr) + optlen;
sys/netinet/tcp_input.c
403
struct tcphdr *th;
sys/netinet/tcp_input.c
4054
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_input.c
4064
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_input.c
4073
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_input.c
4242
if (ext->tcphlen > sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
4243
int optlen = ext->tcphlen - sizeof(struct tcphdr);
sys/netinet/tcp_input.c
4315
if (head->tcphlen > sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
4352
if (head->tcphlen > sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
509
if (off < sizeof(struct tcphdr) || off > tlen) {
sys/netinet/tcp_input.c
514
if (off > sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
520
optlen = off - sizeof(struct tcphdr);
sys/netinet/tcp_output.c
1183
struct tcphdr *th;
sys/netinet/tcp_output.c
1223
if (tlen < iphlen + sizeof(struct tcphdr)) {
sys/netinet/tcp_output.c
1236
th = (struct tcphdr *)(mtod(m0, caddr_t) + iphlen);
sys/netinet/tcp_output.c
1252
struct tcphdr *mhth;
sys/netinet/tcp_output.c
1271
mhth = (struct tcphdr *)(mtod(m, caddr_t) + iphlen);
sys/netinet/tcp_output.c
192
struct tcphdr *th;
sys/netinet/tcp_output.c
497
hdrlen = sizeof(struct ip) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
501
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_output.c
750
th = (struct tcphdr *)(mtod(m, caddr_t) + tp->t_template->m_len -
sys/netinet/tcp_output.c
751
sizeof(struct tcphdr));
sys/netinet/tcp_output.c
796
th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_subr.c
1040
tcp_signature(struct tdb *tdb, int af, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_subr.c
1045
struct tcphdr th0;
sys/netinet/tcp_subr.c
173
if (max_protohdr < (sizeof(struct ip6_hdr) + sizeof(struct tcphdr)))
sys/netinet/tcp_subr.c
174
max_protohdr = (sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
175
if ((max_linkhdr + sizeof(struct ip6_hdr) + sizeof(struct tcphdr)) >
sys/netinet/tcp_subr.c
202
struct tcphdr *th;
sys/netinet/tcp_subr.c
204
CTASSERT(sizeof(struct ip) + sizeof(struct tcphdr) <= MHLEN);
sys/netinet/tcp_subr.c
205
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct tcphdr) <= MHLEN);
sys/netinet/tcp_subr.c
223
m->m_len += sizeof (struct tcphdr);
sys/netinet/tcp_subr.c
235
ipovly->ih_len = htons(sizeof (struct tcphdr));
sys/netinet/tcp_subr.c
239
th = (struct tcphdr *)(mtod(m, caddr_t) +
sys/netinet/tcp_subr.c
256
ip6->ip6_plen = htons(sizeof(struct tcphdr)); /*XXX*/
sys/netinet/tcp_subr.c
259
th = (struct tcphdr *)(mtod(m, caddr_t) +
sys/netinet/tcp_subr.c
293
tcp_respond(struct tcpcb *tp, caddr_t template, struct tcphdr *th0,
sys/netinet/tcp_subr.c
299
struct tcphdr *th;
sys/netinet/tcp_subr.c
328
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
341
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
361
th->th_off = sizeof (struct tcphdr) >> 2;
sys/netinet/tcp_subr.c
378
th->th_off = (sizeof(struct tcphdr) + TCPOLEN_TSTAMP_APPA) >> 2;
sys/netinet/tcp_subr.c
600
struct tcphdr th;
sys/netinet/tcp_subr.c
720
struct tcphdr *th;
sys/netinet/tcp_subr.c
753
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/netinet/tcp_subr.c
832
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/netinet/tcp_var.h
63
struct tcphdr *tcpqe_tcp;
sys/netinet/tcp_var.h
723
int tcp_dooptions(struct tcpcb *, u_char *, int, struct tcphdr *,
sys/netinet/tcp_var.h
746
int tcp_reass(struct tcpcb *, struct tcphdr *, struct mbuf *, int *);
sys/netinet/tcp_var.h
748
void tcp_respond(struct tcpcb *, caddr_t, struct tcphdr *, tcp_seq,
sys/netinet/tcp_var.h
782
void tcp_sack_option(struct tcpcb *,struct tcphdr *,u_char *,int);
sys/netinet/tcp_var.h
784
void tcp_del_sackholes(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_var.h
795
int tcp_signature(struct tdb *, int, struct mbuf *, struct tcphdr *,
sys/netinet/tcp_var.h
801
struct tcphdr *, u_int);
sys/netinet6/ip6_divert.c
111
min_hdrlen = sizeof(struct tcphdr);
sys/netinet6/ip6_forward.c
138
icmp_len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr) +
sys/netinet6/ip6_forward.c
88
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct tcphdr) +
sys/netinet6/ip6_output.c
2666
offset += offsetof(struct tcphdr, th_sum);
sys/netinet6/ip6_output.c
2707
offset += offsetof(struct tcphdr, th_sum);
usr.sbin/npppd/npppd/npppd_subr.c
422
#define MAXMSS(mtu) (mtu - sizeof(struct ip) - sizeof(struct tcphdr) - \
usr.sbin/npppd/npppd/npppd_subr.c
486
struct tcphdr *th;
usr.sbin/npppd/npppd/npppd_subr.c
488
if (lpktp < sizeof(struct ip) + sizeof(struct tcphdr))
usr.sbin/npppd/npppd/npppd_subr.c
503
if (sizeof(struct tcphdr) > lpktp)
usr.sbin/npppd/npppd/npppd_subr.c
506
th = (struct tcphdr *)pktp;
usr.sbin/npppd/npppd/npppd_subr.c
513
pktp += sizeof(struct tcphdr);
usr.sbin/npppd/npppd/npppd_subr.c
514
lpktp -= sizeof(struct tcphdr);
usr.sbin/tcpdump/print-sl.c
188
hlen += ((struct tcphdr *)&((int *)ip)[hlen])->th_off;
usr.sbin/tcpdump/print-sl.c
278
hlen += ((struct tcphdr *)&((int32_t *)ip)[hlen])->th_off;
usr.sbin/tcpdump/print-tcp.c
122
static int tcp_cksum(const struct ip *ip, const struct tcphdr *tp, int len)
usr.sbin/tcpdump/print-tcp.c
150
static int tcp6_cksum(const struct ip6_hdr *ip6, const struct tcphdr *tp,
usr.sbin/tcpdump/print-tcp.c
182
const struct tcphdr *tp;
usr.sbin/tcpdump/print-tcp.c
193
tp = (struct tcphdr *)bp;
usr.sbin/trpt/trpt.c
311
struct tcphdr *th;