Symbol: tcphdr
sbin/ipf/libipf/ipft_tx.c
211
ip->ip_len += sizeof(struct tcphdr);
sbin/ipf/libipf/ipft_tx.c
380
ip6->ip6_plen = sizeof(struct tcphdr);
sbin/ipf/libipf/printpacket.c
71
tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
sbin/natd/natd.c
841
struct tcphdr* tcphdr;
sbin/natd/natd.c
852
tcphdr = (struct tcphdr*) ((char*) ip + (ip->ip_hl << 2));
sbin/natd/natd.c
855
ntohs (tcphdr->th_sport),
sbin/natd/natd.c
857
ntohs (tcphdr->th_dport));
sys/compat/linuxkpi/common/include/linux/tcp.h
54
static __inline struct tcphdr *
sys/compat/linuxkpi/common/include/linux/tcp.h
58
return (struct tcphdr *)skb_transport_header(skb);
sys/compat/linuxkpi/common/include/linux/tcp.h
64
struct tcphdr *th;
sys/dev/age/if_age.c
1468
struct tcphdr *tcp;
sys/dev/age/if_age.c
1533
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/age/if_age.c
1538
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/age/if_age.c
1559
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/al_eth/al_eth.c
1204
struct tcphdr *th = NULL;
sys/dev/al_eth/al_eth.c
1249
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
sys/dev/al_eth/al_eth.c
1263
th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
sys/dev/alc/if_alc.c
2687
struct tcphdr *tcp;
sys/dev/alc/if_alc.c
2751
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/alc/if_alc.c
2756
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/alc/if_alc.c
2776
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/ale/if_ale.c
1565
struct tcphdr *tcp;
sys/dev/ale/if_ale.c
1656
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/ale/if_ale.c
1662
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/bce/if_bce.c
7098
struct tcphdr *th;
sys/dev/bce/if_bce.c
7145
sizeof(struct tcphdr));
sys/dev/bce/if_bce.c
7153
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
sys/dev/bce/if_bce.c
7197
sizeof(struct tcphdr)) >> 2) << 8);
sys/dev/bce/if_bce.c
9540
struct tcphdr *th;
sys/dev/bce/if_bce.c
9574
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/dev/bge/if_bge.c
5087
struct tcphdr *tcp;
sys/dev/bge/if_bge.c
5105
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/bge/if_bge.c
5108
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/bge/if_bge.c
5121
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/bxe/bxe.c
4823
struct tcphdr *th = NULL;
sys/dev/bxe/bxe.c
4880
th = (struct tcphdr *)(ip + ip_hlen);
sys/dev/bxe/bxe.c
4905
struct tcphdr *th = NULL;
sys/dev/bxe/bxe.c
4969
th = (struct tcphdr *)(ip + (ip_hlen << 1));
sys/dev/bxe/bxe.c
5039
struct tcphdr *th = NULL;
sys/dev/bxe/bxe.c
5052
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/dev/cas/if_cas.c
569
if (pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/cxgb/cxgb_sge.c
1457
struct tcphdr *tcp;
sys/dev/cxgb/cxgb_sge.c
1498
tcp = (struct tcphdr *)(ip + 1);
sys/dev/cxgb/cxgb_sge.c
1508
tcp = (struct tcphdr *)(ip6 + 1);
sys/dev/cxgbe/crypto/t6_kern_tls.c
1121
struct tcphdr *tcp, newtcp;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1216
struct tcphdr *tcp, newtcp;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1315
struct mbuf *m, struct tcphdr *tcp, struct mbuf *m_tls, u_int available,
sys/dev/cxgbe/crypto/t6_kern_tls.c
1867
struct tcphdr *tcp, newtcp;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1956
struct tcphdr *tcp;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1971
tcp = (struct tcphdr *)((char *)eh + m->m_pkthdr.l2hlen +
sys/dev/cxgbe/crypto/t6_kern_tls.c
826
ktls_has_tcp_options(struct tcphdr *tcp)
sys/dev/cxgbe/crypto/t6_kern_tls.c
832
cnt = tcp->th_off * 4 - sizeof(struct tcphdr);
sys/dev/cxgbe/crypto/t6_kern_tls.c
861
ktls_find_tcp_timestamps(struct tcphdr *tcp)
sys/dev/cxgbe/crypto/t6_kern_tls.c
867
cnt = tcp->th_off * 4 - sizeof(struct tcphdr);
sys/dev/cxgbe/crypto/t6_kern_tls.c
894
struct tcphdr *tcp;
sys/dev/cxgbe/crypto/t6_kern_tls.c
949
tcp = (struct tcphdr *)((char *)(eh + 1) + m->m_pkthdr.l3hlen);
sys/dev/cxgbe/crypto/t7_kern_tls.c
1160
struct tcphdr *tcp, newtcp;
sys/dev/cxgbe/crypto/t7_kern_tls.c
1242
void *dst, struct mbuf *m, struct tcphdr *tcp, struct mbuf *m_tls,
sys/dev/cxgbe/crypto/t7_kern_tls.c
1257
struct tcphdr *newtcp;
sys/dev/cxgbe/crypto/t7_kern_tls.c
2025
struct tcphdr *tcp;
sys/dev/cxgbe/crypto/t7_kern_tls.c
2046
tcp = (struct tcphdr *)((char *)eh + m->m_pkthdr.l2hlen +
sys/dev/cxgbe/crypto/t7_kern_tls.c
728
struct tcphdr *tcp;
sys/dev/cxgbe/crypto/t7_kern_tls.c
747
tcp = (struct tcphdr *)((char *)eh + m->m_pkthdr.l2hlen +
sys/dev/cxgbe/crypto/t7_kern_tls.c
780
struct tcphdr *tcp;
sys/dev/cxgbe/crypto/t7_kern_tls.c
842
tcp = (struct tcphdr *)((char *)(eh + 1) + m->m_pkthdr.l3hlen);
sys/dev/cxgbe/t4_sge.c
2709
struct tcphdr *tcp;
sys/dev/cxgbe/tom/t4_cpl_io.c
313
tp->t_maxseg -= sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_cpl_io.c
315
tp->t_maxseg -= sizeof(struct ip) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_listen.c
1171
struct in_conninfo *inc, struct tcphdr *th, uint8_t *iptos)
sys/dev/cxgbe/tom/t4_listen.c
1177
const struct tcphdr *tcp;
sys/dev/cxgbe/tom/t4_listen.c
1341
struct tcphdr th;
sys/dev/cxgbe/tom/t4_listen.c
1591
struct tcphdr *th, struct tcpopt *to)
sys/dev/cxgbe/tom/t4_listen.c
1626
struct tcphdr th;
sys/dev/cxgbe/tom/t4_listen.c
859
struct tcphdr *th;
sys/dev/cxgbe/tom/t4_tom.c
1086
mtu = mss + sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_tom.c
1088
mtu = mss + sizeof(struct ip) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_tom.c
1600
struct tcphdr *th;
sys/dev/cxgbe/tom/t4_tom.c
1605
sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_tom.c
1642
ip6->ip6_plen = htons(sizeof(struct tcphdr));
sys/dev/cxgbe/tom/t4_tom.c
1659
ip->ip_len = htons(sizeof(struct ip) + sizeof(struct tcphdr));
sys/dev/cxgbe/tom/t4_tom.c
962
tp->t_maxseg -= sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/dev/cxgbe/tom/t4_tom.c
964
tp->t_maxseg -= sizeof(struct ip) + sizeof(struct tcphdr);
sys/dev/e1000/em_txrx.c
189
offsetof(struct tcphdr, th_sum);
sys/dev/e1000/em_txrx.c
310
tucso = hdr_len + offsetof(struct tcphdr, th_sum);
sys/dev/ena/ena_datapath.c
717
struct tcphdr *th;
sys/dev/ena/ena_datapath.c
780
th = (struct tcphdr *)(mtodo(mbuf_next, offset));
sys/dev/fxp/if_fxp.c
1385
struct tcphdr *tcp;
sys/dev/fxp/if_fxp.c
1458
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/fxp/if_fxp.c
1463
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/fxp/if_fxp.c
1475
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/fxp/if_fxp.c
1808
if (pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/gem/if_gem.c
496
if (pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/gve/gve_tx.c
646
struct tcphdr *th;
sys/dev/gve/gve_tx.c
685
th = (struct tcphdr *)(mtodo(mbuf_next, offset));
sys/dev/gve/gve_tx.c
692
csum_offset = offsetof(struct tcphdr, th_sum);
sys/dev/gve/gve_tx_dqo.c
347
struct tcphdr *th;
sys/dev/gve/gve_tx_dqo.c
377
PULLUP_HDR(mbuf, l4_off + sizeof(struct tcphdr *));
sys/dev/gve/gve_tx_dqo.c
378
th = (struct tcphdr *)(mtodo(mbuf, l4_off));
sys/dev/hyperv/netvsc/if_hn.c
4817
const struct tcphdr *th;
sys/dev/hyperv/netvsc/if_hn.c
4862
if (iplen < iphlen + sizeof(struct tcphdr))
sys/dev/hyperv/netvsc/if_hn.c
4864
if (m->m_len < hoff + iphlen + sizeof(struct tcphdr))
sys/dev/hyperv/netvsc/if_hn.c
4866
th = (const struct tcphdr *)((const uint8_t *)ip + iphlen);
sys/dev/hyperv/netvsc/if_hn.c
4868
if (thoff < sizeof(struct tcphdr) || thoff + iphlen > iplen)
sys/dev/hyperv/netvsc/if_hn.c
747
struct tcphdr *th;
sys/dev/hyperv/netvsc/if_hn.c
879
const struct tcphdr *th;
sys/dev/irdma/irdma_cm.c
2605
irdma_check_syn(struct irdma_cm_node *cm_node, struct tcphdr *tcph)
sys/dev/irdma/irdma_cm.c
2621
irdma_check_seq(struct irdma_cm_node *cm_node, struct tcphdr *tcph)
sys/dev/irdma/irdma_cm.c
2666
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
sys/dev/irdma/irdma_cm.c
2734
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
sys/dev/irdma/irdma_cm.c
2808
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
sys/dev/irdma/irdma_cm.c
2894
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
sys/dev/irdma/irdma_cm.c
2927
(!irdma_check_seq(cm_node, (struct tcphdr *)rbuf->tcph)))
sys/dev/irdma/irdma_cm.c
3139
struct tcphdr *tcph;
sys/dev/irdma/irdma_cm.c
3173
tcph = (struct tcphdr *)rbuf->tcph;
sys/dev/irdma/irdma_cm.c
443
struct tcphdr *tcph;
sys/dev/irdma/irdma_cm.c
480
tcph = (struct tcphdr *)buf;
sys/dev/irdma/irdma_cm.c
555
struct tcphdr *tcph;
sys/dev/irdma/irdma_cm.c
609
tcph = (struct tcphdr *)buf;
sys/dev/irdma/irdma_cm.c
642
tcph = (struct tcphdr *)buf;
sys/dev/irdma/irdma_cm.c
884
struct tcphdr *tcph, int optionsize,
sys/dev/irdma/irdma_utils.c
1365
struct tcphdr *tcph = (struct tcphdr *)buf->tcph;
sys/dev/irdma/irdma_utils.c
1397
struct tcphdr *tcph = (struct tcphdr *)buf->tcph;
sys/dev/irdma/irdma_utils.c
1460
struct tcphdr *tcph;
sys/dev/irdma/irdma_utils.c
1468
tcph = (struct tcphdr *)(addr + buf->maclen + iphlen);
sys/dev/irdma/irdma_utils.c
1484
struct tcphdr *tcph;
sys/dev/irdma/irdma_utils.c
1491
tcph = (struct tcphdr *)addr;
sys/dev/irdma/irdma_utils.c
1507
struct tcphdr *tcph;
sys/dev/irdma/irdma_utils.c
1525
tcph = (struct tcphdr *)buf->tcph;
sys/dev/irdma/irdma_utils.c
1561
struct tcphdr *tcph;
sys/dev/irdma/irdma_utils.c
1580
tcph = (struct tcphdr *)buf->tcph;
sys/dev/ixgbe/if_fdir.c
112
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
sys/dev/ixgbe/if_fdir.c
85
struct tcphdr *th;
sys/dev/jme/if_jme.c
1672
struct tcphdr *tcp;
sys/dev/jme/if_jme.c
1708
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/jme/if_jme.c
1718
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/mana/mana_en.c
695
struct tcphdr *th;
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
502
struct tcphdr *th;
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
544
th = (struct tcphdr *)(mb->m_data + eth_hdr_len);
sys/dev/mlx5/mlx5_en/en.h
1201
int mlx5e_get_full_header_size(const struct mbuf *, const struct tcphdr **);
sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
803
const struct tcphdr *th;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
158
struct tcphdr *th;
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
177
th = (struct tcphdr *)(ip4 + 1);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
181
th = (struct tcphdr *)(ip6 + 1);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
237
mlx5e_get_full_header_size(const struct mbuf *mb, const struct tcphdr **ppth)
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
240
const struct tcphdr *th;
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
304
th = (const struct tcphdr *)(m_th->m_data);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
306
th = (const struct tcphdr *)(mb->m_data + eth_hdr_len);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
359
struct tcphdr *th;
sys/dev/msk/if_msk.c
2620
struct tcphdr *tcp;
sys/dev/msk/if_msk.c
2658
m = m_pullup(m, offset + sizeof(struct tcphdr));
sys/dev/msk/if_msk.c
2663
tcp = (struct tcphdr *)(mtod(m, char *) + offset);
sys/dev/msk/if_msk.c
2683
m = m_pullup(m, offset + sizeof(struct tcphdr));
sys/dev/msk/if_msk.c
3120
if (pktlen < (hlen + sizeof(struct tcphdr)))
sys/dev/mxge/if_mxge.c
1753
sizeof(struct tcphdr))) {
sys/dev/mxge/if_mxge.c
1755
sizeof(struct tcphdr), ss->scratch);
sys/dev/mxge/if_mxge.c
1758
pi->tcp = (struct tcphdr *)((char *)pi->ip + pi->ip_hlen);
sys/dev/mxge/if_mxge.c
1781
sizeof(struct tcphdr))) {
sys/dev/mxge/if_mxge.c
1783
sizeof(struct tcphdr), ss->scratch);
sys/dev/mxge/if_mxge.c
1786
pi->tcp = (struct tcphdr *)((char *)pi->ip6 + pi->ip_hlen);
sys/dev/mxge/if_mxge.c
1828
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/dev/mxge/if_mxge.c
1845
m_copyback(m, offsetof(struct tcphdr, th_sum) +
sys/dev/mxge/if_mxge_var.h
299
struct tcphdr *tcp;
sys/dev/oce/oce_if.c
1278
struct tcphdr *th;
sys/dev/oce/oce_if.c
1307
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/dev/oce/oce_if.c
1317
th = (struct tcphdr *)((caddr_t)ip6 + sizeof(struct ip6_hdr));
sys/dev/oce/oce_if.c
1471
struct tcphdr *tcp_hdr = NULL;
sys/dev/oce/oce_if.c
1482
tcp_hdr = (struct tcphdr *)((char*)ip4_hdr + sizeof(struct ip));
sys/dev/oce/oce_if.c
1489
tcp_hdr = (struct tcphdr *)((char*)ip6 + sizeof(struct ip6_hdr));
sys/dev/oce/oce_if.c
1500
p = (uint32_t *)((char*)tcp_hdr + sizeof(struct tcphdr) + 2);
sys/dev/qlnx/qlnxe/qlnx_os.c
3012
struct tcphdr *th = NULL;
sys/dev/qlnx/qlnxe/qlnx_os.c
3038
th = (struct tcphdr *)(ip + 1);
sys/dev/qlnx/qlnxe/qlnx_os.c
3052
th = (struct tcphdr *)(ip6 + 1);
sys/dev/qlxgb/qla_hw.c
712
struct tcphdr *th = NULL;
sys/dev/qlxgb/qla_hw.c
734
sizeof(struct tcphdr);
sys/dev/qlxgb/qla_hw.c
750
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
sys/dev/qlxgb/qla_hw.c
769
if (tcp_hlen > sizeof(struct tcphdr)) {
sys/dev/qlxgb/qla_hw.c
771
(tcp_hlen - sizeof(struct tcphdr)),
sys/dev/qlxgb/qla_hw.c
781
if ((tcp_hlen - sizeof(struct tcphdr)) != 10)
sys/dev/qlxgb/qla_hw.h
722
sizeof (struct ip) + sizeof (struct tcphdr) + 16)
sys/dev/qlxgbe/ql_hw.c
2262
struct tcphdr *th = NULL;
sys/dev/qlxgbe/ql_hw.c
2282
sizeof(struct tcphdr);
sys/dev/qlxgbe/ql_hw.c
2301
th = (struct tcphdr *)((caddr_t)ip + ip_hlen);
sys/dev/qlxgbe/ql_hw.c
2308
sizeof (struct tcphdr);
sys/dev/qlxgbe/ql_hw.c
2324
th = (struct tcphdr *)((caddr_t)ip6 + ip_hlen);
sys/dev/qlxgbe/ql_hw.c
2341
if (tcp_hlen > sizeof(struct tcphdr)) {
sys/dev/qlxgbe/ql_hw.c
2343
(tcp_hlen - sizeof(struct tcphdr)),
sys/dev/qlxgbe/ql_hw.c
4212
struct tcphdr *th = NULL;
sys/dev/qlxgbe/ql_hw.c
4242
th = (struct tcphdr *)(mp->m_data + hdrlen);
sys/dev/qlxgbe/ql_hw.c
4245
th = (struct tcphdr *)buf;
sys/dev/qlxgbe/ql_hw.c
4264
th = (struct tcphdr *)(mp->m_data + hdrlen);
sys/dev/qlxgbe/ql_hw.c
4267
th = (struct tcphdr *)buf;
sys/dev/qlxgbe/ql_hw.h
1521
sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
sys/dev/qlxgbe/ql_isr.c
197
struct tcphdr *th;
sys/dev/qlxgbe/ql_isr.c
280
th = (struct tcphdr *)(mpf->m_data + sgc->l4_offset);
sys/dev/qlxge/qls_def.h
84
sizeof (struct ip6_hdr) + sizeof (struct tcphdr) + 16)
sys/dev/qlxge/qls_hw.c
534
struct tcphdr *th;
sys/dev/qlxge/qls_hw.c
574
th = (struct tcphdr *)(ip + 1);
sys/dev/sfxge/sfxge_rx.c
364
struct tcphdr *c_th;
sys/dev/sfxge/sfxge_rx.c
377
c_th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
383
c_th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
452
struct mbuf *mbuf, struct tcphdr *th)
sys/dev/sfxge/sfxge_rx.c
454
struct tcphdr *c_th;
sys/dev/sfxge/sfxge_rx.c
468
c_th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
472
c_th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
487
struct mbuf *mbuf, void *nh, struct tcphdr *th)
sys/dev/sfxge/sfxge_rx.c
518
struct tcphdr *th;
sys/dev/sfxge/sfxge_rx.c
523
th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
527
th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
615
uint16_t l2_id, void *nh, struct tcphdr *th)
sys/dev/sfxge/sfxge_rx.c
666
struct tcphdr *th;
sys/dev/sfxge/sfxge_rx.c
700
th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.c
707
th = (struct tcphdr *)(iph + 1);
sys/dev/sfxge/sfxge_rx.h
91
struct tcphdr *th_last;
sys/dev/sfxge/sfxge_tx.c
1046
const struct tcphdr *th;
sys/dev/sfxge/sfxge_tx.c
1047
struct tcphdr th_copy;
sys/dev/sfxge/sfxge_tx.c
1098
if (mbuf->m_len < tso->tcph_off + offsetof(struct tcphdr, th_win)) {
sys/dev/sfxge/sfxge_tx.c
1219
struct tcphdr *tsoh_th;
sys/dev/sfxge/sfxge_tx.c
1312
tsoh_th = (struct tcphdr *)(header + tso->tcph_off);
sys/dev/sfxge/sfxge_tx.c
809
const struct tcphdr *th;
sys/dev/sfxge/sfxge_tx.c
810
struct tcphdr th_copy;
sys/dev/sfxge/sfxge_tx.c
845
if (mbuf->m_len < mbuf->m_pkthdr.l3hlen + offsetof(struct tcphdr, th_win)) {
sys/dev/sfxge/sfxge_tx.c
850
th = (const struct tcphdr *)mtodo(mbuf, mbuf->m_pkthdr.l3hlen);
sys/dev/sfxge/sfxge_tx.c
982
static const struct tcphdr *tso_tcph(const struct sfxge_tso_state *tso)
sys/dev/sfxge/sfxge_tx.c
984
return (const struct tcphdr *)(tso->mbuf->m_data + tso->tcph_off);
sys/dev/sge/if_sge.c
1397
struct tcphdr *tcp;
sys/dev/sge/if_sge.c
1433
m = m_pullup(m, poff + sizeof(struct tcphdr));
sys/dev/sge/if_sge.c
1438
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/sge/if_sge.c
1450
tcp = (struct tcphdr *)(mtod(m, char *) + poff);
sys/dev/virtio/network/if_vtnet.c
2474
struct tcphdr *tcp, tcphdr;
sys/dev/virtio/network/if_vtnet.c
2478
if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) {
sys/dev/virtio/network/if_vtnet.c
2479
m_copydata(m, offset, sizeof(struct tcphdr), (caddr_t) &tcphdr);
sys/dev/virtio/network/if_vtnet.c
2480
tcp = &tcphdr;
sys/dev/virtio/network/if_vtnet.c
2482
tcp = (struct tcphdr *)(m->m_data + offset);
sys/dev/virtio/network/virtio_net.h
302
case offsetof(struct tcphdr, th_sum):
sys/dev/virtio/network/virtio_net.h
349
if (__predict_false(m->m_len < offset + sizeof(struct tcphdr)))
sys/dev/virtio/network/virtio_net.h
479
struct tcphdr *tcp, tcphdr;
sys/dev/virtio/network/virtio_net.h
481
if (__predict_false(m->m_len < offset + sizeof(struct tcphdr))) {
sys/dev/virtio/network/virtio_net.h
482
m_copydata(m, offset, sizeof(struct tcphdr), (caddr_t) &tcphdr);
sys/dev/virtio/network/virtio_net.h
483
tcp = &tcphdr;
sys/dev/virtio/network/virtio_net.h
485
tcp = (struct tcphdr *)(m->m_data + offset);
sys/dev/vmware/vmxnet3/if_vmx.c
1354
offsetof(struct tcphdr, th_sum) :
sys/dev/vnic/nicvf_queues.c
1754
struct tcphdr *th;
sys/dev/vnic/nicvf_queues.c
1826
if (mbuf->m_len < (poff + sizeof(struct tcphdr))) {
sys/dev/vnic/nicvf_queues.c
1827
mbuf = m_pullup(mbuf, poff + sizeof(struct tcphdr));
sys/dev/vnic/nicvf_queues.c
1866
th = (struct tcphdr *)((caddr_t)(mbuf->m_data + poff));
sys/dev/xen/netback/netback.c
2162
struct tcphdr *th = (struct tcphdr*)(iph + 1);
sys/dev/xen/netback/netback_unit_tests.c
2302
struct tcphdr *tcp;
sys/dev/xen/netback/netback_unit_tests.c
2310
tcp = (struct tcphdr*)(iph + 1);
sys/dev/xen/netback/netback_unit_tests.c
2350
sizeof(struct tcphdr) + tcp_options_len + payload_len;
sys/dev/xen/netback/netback_unit_tests.c
2354
struct tcphdr *tcp;
sys/dev/xen/netback/netback_unit_tests.c
2363
tcp = (struct tcphdr*)(iph + 1);
sys/dev/xen/netback/netback_unit_tests.c
2391
sizeof(struct tcphdr) + tcp_options_len + payload_len;
sys/dev/xen/netback/netback_unit_tests.c
2395
struct tcphdr *tcp;
sys/dev/xen/netback/netback_unit_tests.c
2407
tcp = (struct tcphdr*)(iph + 1);
sys/net/iflib.c
3296
struct tcphdr *th;
sys/net/iflib.c
3309
th = (struct tcphdr *)((char *)ip + (ip->ip_hl << 2));
sys/net/iflib.c
3356
struct tcphdr *th;
sys/net/iflib.c
3364
th = (struct tcphdr *)((caddr_t)ip6 + pi->ipi_ip_hlen);
sys/net/iflib.c
3374
if (__predict_false(m->m_len < pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) {
sys/net/iflib.c
3376
if (__predict_false((m = m_pullup(m, pi->ipi_ehdrlen + sizeof(struct ip6_hdr) + sizeof(struct tcphdr))) == NULL))
sys/net/pfvar.h
1456
struct tcphdr *th;
sys/net/pfvar.h
1940
struct tcphdr tcp;
sys/net/pfvar.h
2902
struct tcphdr *, struct pf_state_peer *);
sys/net/pfvar.h
2904
u_short *, struct tcphdr *, struct pf_kstate *,
sys/net/pfvar.h
3124
pf_osfp_fingerprint(struct pf_pdesc *, const struct tcphdr *);
sys/net/slcompress.c
156
struct tcphdr *oth;
sys/net/slcompress.c
157
struct tcphdr *th;
sys/net/slcompress.c
172
th = (struct tcphdr *)&((int32_t *)ip)[hlen];
sys/net/slcompress.c
251
oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen];
sys/net/slcompress.c
455
struct tcphdr *th;
sys/net/slcompress.c
474
if (hlen + sizeof(struct tcphdr) > buflen)
sys/net/slcompress.c
476
hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2;
sys/net/slcompress.c
515
th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen];
sys/netgraph/netflow/netflow.c
699
struct tcphdr *tcp;
sys/netgraph/netflow/netflow.c
701
tcp = (struct tcphdr *)((caddr_t )ip + hlen);
sys/netgraph/netflow/netflow.c
814
struct tcphdr *tcp;
sys/netgraph/netflow/netflow.c
816
tcp = (struct tcphdr *)upper_ptr;
sys/netgraph/netflow/ng_netflow.c
808
M_CHECK(sizeof(struct tcphdr));
sys/netgraph/netflow/ng_netflow.c
856
M_CHECK(sizeof(struct tcphdr));
sys/netgraph/ng_checksum.c
353
struct tcphdr *th;
sys/netgraph/ng_checksum.c
355
PULLUP_CHECK(m, sizeof(struct tcphdr));
sys/netgraph/ng_checksum.c
356
th = (struct tcphdr *) mtodo(m, l3_offset + hlen);
sys/netgraph/ng_checksum.c
479
struct tcphdr *th;
sys/netgraph/ng_checksum.c
481
PULLUP_CHECK(m, sizeof(struct tcphdr));
sys/netgraph/ng_checksum.c
482
th = (struct tcphdr *) mtodo(m, l3_offset + hlen);
sys/netgraph/ng_nat.c
882
struct tcphdr *th = (struct tcphdr *)((caddr_t)ip + pl_offset);
sys/netgraph/ng_nat.c
916
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netgraph/ng_tcpmss.c
276
struct tcphdr *tcp;
sys/netgraph/ng_tcpmss.c
323
M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr));
sys/netgraph/ng_tcpmss.c
325
tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
sys/netgraph/ng_tcpmss.c
329
if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
sys/netgraph/ng_tcpmss.c
333
if (!(tcp_get_flags(tcp) & TH_SYN) || tcphlen == sizeof(struct tcphdr))
sys/netgraph/ng_tcpmss.c
339
M_CHECK(tcphlen - sizeof(struct tcphdr));
sys/netgraph/ng_tcpmss.c
341
tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
sys/netgraph/ng_tcpmss.c
415
correct_mss(struct tcphdr *tc, int hlen, uint16_t maxmss, int flags)
sys/netgraph/ng_tcpmss.c
423
for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
sys/netgraph/ng_tcpmss.c
85
static int correct_mss(struct tcphdr *, int, uint16_t, int);
sys/netgraph/ng_vjc.c
592
struct tcphdr *tcp;
sys/netgraph/ng_vjc.c
606
tcp = (struct tcphdr *)((u_char *)ip + ihlen);
sys/netinet/in_rss.c
209
const struct tcphdr *th;
sys/netinet/in_rss.c
315
if (m->m_len < iphlen + sizeof(struct tcphdr)) {
sys/netinet/in_rss.c
319
th = (const struct tcphdr *)((c_caddr_t)ip + iphlen);
sys/netinet/ip_icmp.c
260
struct tcphdr *th;
sys/netinet/ip_icmp.c
263
if (oiphlen + sizeof(struct tcphdr) > n->m_len &&
sys/netinet/ip_icmp.c
266
if (n->m_len < oiphlen + sizeof(struct tcphdr) &&
sys/netinet/ip_icmp.c
267
(n = m_pullup(n, oiphlen + sizeof(struct tcphdr))) == NULL)
sys/netinet/ip_icmp.c
272
if (tcphlen < sizeof(struct tcphdr))
sys/netinet/khelp/h_ertt.c
199
struct tcphdr *th;
sys/netinet/khelp/h_ertt.c
434
struct tcphdr *th;
sys/netinet/libalias/alias.c
1050
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
1075
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
1092
struct tcphdr *tc;
sys/netinet/libalias/alias.c
1098
if (dlen < sizeof(struct tcphdr))
sys/netinet/libalias/alias.c
1100
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
1157
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
1164
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
1182
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
1586
struct tcphdr *tc;
sys/netinet/libalias/alias.c
1599
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias.c
337
struct tcphdr *tc;
sys/netinet/libalias/alias.c
346
tc = (struct tcphdr *)ip_next(ip);
sys/netinet/libalias/alias.c
535
struct tcphdr *tc;
sys/netinet/libalias/alias.c
544
tc = (struct tcphdr *)ip_next(ip);
sys/netinet/libalias/alias.c
957
struct tcphdr *tc;
sys/netinet/libalias/alias.c
965
if (dlen < sizeof(struct tcphdr))
sys/netinet/libalias/alias.c
967
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_ftp.c
225
struct tcphdr *tc;
sys/netinet/libalias/alias_ftp.c
229
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_ftp.c
285
struct tcphdr *tc;
sys/netinet/libalias/alias_ftp.c
288
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_ftp.c
655
struct tcphdr *tc;
sys/netinet/libalias/alias_ftp.c
663
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_ftp.c
733
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_irc.c
174
struct tcphdr *tc;
sys/netinet/libalias/alias_irc.c
178
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_irc.c
438
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_local.h
369
tcp_next(struct tcphdr *tcphdr)
sys/netinet/libalias/alias_local.h
371
char *p = (char *)tcphdr;
sys/netinet/libalias/alias_local.h
372
return (&p[tcphdr->th_off * 4]);
sys/netinet/libalias/alias_pptp.c
298
struct tcphdr *tc;
sys/netinet/libalias/alias_pptp.c
337
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_pptp.c
370
struct tcphdr *tc;
sys/netinet/libalias/alias_pptp.c
409
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_pptp.c
433
struct tcphdr *tc;
sys/netinet/libalias/alias_pptp.c
436
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_proxy.c
291
struct tcphdr *tc;
sys/netinet/libalias/alias_proxy.c
295
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_proxy.c
347
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_proxy.c
397
struct tcphdr *tc;
sys/netinet/libalias/alias_proxy.c
408
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_skinny.c
208
struct tcphdr *tc, struct alias_link *lnk,
sys/netinet/libalias/alias_skinny.c
227
struct ip *pip, struct tcphdr *tc,
sys/netinet/libalias/alias_skinny.c
251
struct tcphdr *tc, struct alias_link *lnk,
sys/netinet/libalias/alias_skinny.c
269
struct ip *pip, struct tcphdr *tc,
sys/netinet/libalias/alias_skinny.c
301
struct tcphdr *tc;
sys/netinet/libalias/alias_skinny.c
308
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_smedia.c
237
struct tcphdr *tc;
sys/netinet/libalias/alias_smedia.c
249
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_smedia.c
394
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_smedia.c
424
struct tcphdr *tc;
sys/netinet/libalias/alias_smedia.c
445
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_smedia.c
468
struct tcphdr *tc;
sys/netinet/libalias/alias_smedia.c
477
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/libalias/alias_util.c
109
struct tcphdr *tc;
sys/netinet/libalias/alias_util.c
116
tc = (struct tcphdr *)ip_next(pip);
sys/netinet/siftr.c
727
struct tcphdr *th;
sys/netinet/siftr.c
757
th = (struct tcphdr *)((caddr_t)ip + ip_hl);
sys/netinet/siftr.c
874
struct tcphdr *th;
sys/netinet/siftr.c
908
th = (struct tcphdr *)((caddr_t)ip6 + ip6_hl);
sys/netinet/tcp.h
170
#define TCP_MAXOLEN (TCP_MAXHLEN - sizeof(struct tcphdr))
sys/netinet/tcp.h
42
#define tcp6hdr tcphdr /* for KAME src sync over BSD*'s */
sys/netinet/tcp.h
83
__tcp_get_flags(const struct tcphdr *th)
sys/netinet/tcp.h
89
__tcp_set_flags(struct tcphdr *th, uint16_t flags)
sys/netinet/tcp_input.c
1436
tcp_autorcvbuf(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_input.c
1482
tcp_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_input.c
1572
(th->th_off << 2) - sizeof(struct tcphdr),
sys/netinet/tcp_input.c
2492
(void) tcp_reass(tp, (struct tcphdr *)0, NULL, 0,
sys/netinet/tcp_input.c
270
hhook_run_tcp_est_in(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to)
sys/netinet/tcp_input.c
289
cc_ack_received(struct tcpcb *tp, struct tcphdr *th, uint16_t nsegs,
sys/netinet/tcp_input.c
3405
tcp_dropwithreset(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, int tlen)
sys/netinet/tcp_input.c
3577
tcp_pulloutofband(struct socket *so, struct tcphdr *th, struct mbuf *m,
sys/netinet/tcp_input.c
3720
sizeof (struct ip6_hdr) + sizeof (struct tcphdr) :
sys/netinet/tcp_input.c
3968
min_protoh = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_input.c
3994
tcp_do_prr_ack(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to,
sys/netinet/tcp_input.c
4082
tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th)
sys/netinet/tcp_input.c
415
cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type)
sys/netinet/tcp_input.c
481
cc_post_recovery(struct tcpcb *tp, struct tcphdr *th)
sys/netinet/tcp_input.c
553
cc_ecnpkt_handler(struct tcpcb *tp, struct tcphdr *th, uint8_t iptos)
sys/netinet/tcp_input.c
574
if (m->m_len < *offp + sizeof(struct tcphdr)) {
sys/netinet/tcp_input.c
575
m = m_pullup(m, *offp + sizeof(struct tcphdr));
sys/netinet/tcp_input.c
599
struct tcphdr *th = NULL;
sys/netinet/tcp_input.c
643
th = (struct tcphdr *)((caddr_t)ip6 + off0);
sys/netinet/tcp_input.c
705
th = (struct tcphdr *)((caddr_t)ip + off0);
sys/netinet/tcp_input.c
765
if (off < sizeof (struct tcphdr) || off > tlen) {
sys/netinet/tcp_input.c
770
if (off > sizeof (struct tcphdr)) {
sys/netinet/tcp_input.c
781
th = (struct tcphdr *)((caddr_t)ip6 + off0);
sys/netinet/tcp_input.c
796
th = (struct tcphdr *)((caddr_t)ip + off0);
sys/netinet/tcp_input.c
800
optlen = off - sizeof (struct tcphdr);
sys/netinet/tcp_log_buf.c
1684
tcp_log_event(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf,
sys/netinet/tcp_log_buf.c
1899
optlen = (th->th_off << 2) - sizeof (struct tcphdr);
sys/netinet/tcp_log_buf.c
3000
struct tcphdr *th;
sys/netinet/tcp_log_buf.c
3047
cnt = (th->th_off << 2) - sizeof(struct tcphdr);
sys/netinet/tcp_log_buf.h
182
struct tcphdr tlb_th; /* The TCP header */
sys/netinet/tcp_log_buf.h
555
struct tcp_log_buffer *tcp_log_event(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf,
sys/netinet/tcp_log_buf.h
580
tcp_log_event(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf,
sys/netinet/tcp_lro.c
1288
struct tcphdr *th;
sys/netinet/tcp_lro.c
308
if (__predict_false(mlen < sizeof(struct tcphdr)))
sys/netinet/tcp_lro.c
358
if (__predict_false(mlen < sizeof(struct tcphdr)))
sys/netinet/tcp_lro.c
522
tcp_lro_rx_csum_tcphdr(const struct tcphdr *th)
sys/netinet/tcp_lro.c
866
struct mbuf *m, struct tcphdr *th)
sys/netinet/tcp_lro.c
972
struct tcphdr *th;
sys/netinet/tcp_lro.h
124
struct tcphdr *tcp;
sys/netinet/tcp_lro.h
206
static inline struct tcphdr *
sys/netinet/tcp_lro.h
209
return ((struct tcphdr *)((char *)m->m_data +
sys/netinet/tcp_lro_hpts.c
267
struct tcphdr *th;
sys/netinet/tcp_lro_hpts.c
72
build_ack_entry(struct tcp_ackent *ae, struct tcphdr *th, struct mbuf *m,
sys/netinet/tcp_lro_hpts.c
98
tcp_lro_ack_valid(struct mbuf *m, struct tcphdr *th, uint32_t **ppts, bool *other_opts)
sys/netinet/tcp_output.c
1165
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_output.c
1167
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_output.c
1180
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_output.c
1182
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_output.c
1266
th->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_output.c
1363
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_output.c
1365
sizeof(struct tcphdr) + optlen + len, IPPROTO_TCP,
sys/netinet/tcp_output.c
1384
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_output.c
1386
ip->ip_dst.s_addr, htons(sizeof(struct tcphdr) +
sys/netinet/tcp_output.c
151
hhook_run_tcp_est_out(struct tcpcb *tp, struct tcphdr *th,
sys/netinet/tcp_output.c
197
struct tcphdr *th;
sys/netinet/tcp_output.c
778
hdrlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
sys/netinet/tcp_reass.c
314
struct mbuf *m, struct tcphdr *th, int tlen,
sys/netinet/tcp_reass.c
339
tcp_reass_prepend(struct tcpcb *tp, struct tseg_qent *first, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_reass.c
515
tcp_reass(struct tcpcb *tp, struct tcphdr *th, tcp_seq *seq_start,
sys/netinet/tcp_sack.c
1116
tcp_sack_lost_retransmission(struct tcpcb *tp, struct tcphdr *th)
sys/netinet/tcp_sack.c
948
tcp_sack_partialack(struct tcpcb *tp, struct tcphdr *th, u_int *maxsegp)
sys/netinet/tcp_stacks/bbr.c
11269
bbr_do_segment_nounlock(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/bbr.c
11342
(th->th_off << 2) - sizeof(struct tcphdr),
sys/netinet/tcp_stacks/bbr.c
11611
bbr_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/bbr.c
11825
struct tcphdr *th;
sys/netinet/tcp_stacks/bbr.c
12828
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/bbr.c
13256
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_stacks/bbr.c
13258
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_stacks/bbr.c
13271
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_stacks/bbr.c
13273
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_stacks/bbr.c
13339
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_stacks/bbr.c
13424
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/bbr.c
13425
th->th_sum = in6_cksum_pseudo(ip6, sizeof(struct tcphdr) +
sys/netinet/tcp_stacks/bbr.c
13444
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/bbr.c
13446
ip->ip_dst.s_addr, htons(sizeof(struct tcphdr) +
sys/netinet/tcp_stacks/bbr.c
2222
bbr_log_ack_event(struct tcp_bbr *bbr, struct tcphdr *th, struct tcpopt *to, uint32_t tlen,
sys/netinet/tcp_stacks/bbr.c
3477
seg_oh = (bbr->rc_last_options + sizeof(struct tcphdr));
sys/netinet/tcp_stacks/bbr.c
3576
bbr_ack_received(struct tcpcb *tp, struct tcp_bbr *bbr, struct tcphdr *th, uint32_t bytes_this_ack,
sys/netinet/tcp_stacks/bbr.c
3900
bbr_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type, struct bbr_sendmap *rsm)
sys/netinet/tcp_stacks/bbr.c
7277
bbr_log_ack(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th,
sys/netinet/tcp_stacks/bbr.c
7671
bbr_process_ack(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
8128
bbr_process_data(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
8417
bbr_do_fastnewdata(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
8552
bbr_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
8731
bbr_do_syn_sent(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
8942
bbr_do_syn_recv(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
9114
(void)tcp_reass(tp, (struct tcphdr *)0, NULL, 0,
sys/netinet/tcp_stacks/bbr.c
9163
bbr_do_established(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
9299
bbr_do_close_wait(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
9391
struct tcpcb *tp, int32_t * tlen, struct tcphdr *th, struct socket *so)
sys/netinet/tcp_stacks/bbr.c
9420
bbr_do_fin_wait_1(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
9545
bbr_do_closing(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
9647
bbr_do_lastack(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/bbr.c
9749
bbr_do_fin_wait_2(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
10685
rack_log_ack(struct tcpcb *tp, struct tcpopt *to, struct tcphdr *th, int entered_recovery, int dup_ack_struck,
sys/netinet/tcp_stacks/rack.c
11626
rack_process_ack(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
12092
rack_process_data(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
12389
rack_do_fastnewdata(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
12516
rack_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
12722
rack_do_syn_sent(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
12946
rack_do_syn_recv(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13099
(void) tcp_reass(tp, (struct tcphdr *)0, NULL, 0,
sys/netinet/tcp_stacks/rack.c
13160
rack_do_established(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13289
rack_do_close_wait(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13380
struct tcpcb *tp, int32_t *tlen, struct tcphdr *th, struct socket *so)
sys/netinet/tcp_stacks/rack.c
13412
rack_do_fin_wait_1(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13534
rack_do_closing(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13635
rack_do_lastack(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13737
rack_do_fin_wait_2(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack.c
13945
rack->r_ctl.fsb.tcp_ip_hdr_len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
13953
rack->r_ctl.fsb.th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_stacks/rack.c
13956
rack->r_ctl.fsb.th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_stacks/rack.c
13975
rack->r_ctl.fsb.th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_stacks/rack.c
13979
rack->r_ctl.fsb.th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_stacks/rack.c
14000
rack->r_ctl.fsb.tcp_ip_hdr_len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr) + sizeof(struct udphdr);
sys/netinet/tcp_stacks/rack.c
15217
struct tcphdr *th;
sys/netinet/tcp_stacks/rack.c
15297
th = (struct tcphdr *)tcp_hdr_buf;
sys/netinet/tcp_stacks/rack.c
15310
th->th_off = ((sizeof(struct tcphdr) + TCPOLEN_TSTAMP_APPA) >> 2);
sys/netinet/tcp_stacks/rack.c
15327
th->th_off = (sizeof(struct tcphdr) >> 2);
sys/netinet/tcp_stacks/rack.c
16218
rack_do_segment_nounlock(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
16304
optlen = (th->th_off << 2) - sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
16390
(th->th_off << 2) - sizeof(struct tcphdr),
sys/netinet/tcp_stacks/rack.c
16879
rack_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
17436
oh = (tp->t_maxseg - segsiz) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
18346
struct tcphdr *th = NULL;
sys/netinet/tcp_stacks/rack.c
18369
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
18599
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/rack.c
18601
sizeof(struct tcphdr) + optlen + len, IPPROTO_TCP,
sys/netinet/tcp_stacks/rack.c
18620
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/rack.c
18622
ip->ip_dst.s_addr, htons(sizeof(struct tcphdr) +
sys/netinet/tcp_stacks/rack.c
18684
th = (struct tcphdr *)(cpto + ((uint8_t *)rack->r_ctl.fsb.th - rack->r_ctl.fsb.tcp_ip_hdr));
sys/netinet/tcp_stacks/rack.c
18687
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_stacks/rack.c
18689
th->th_off = sizeof(struct tcphdr) >> 2;
sys/netinet/tcp_stacks/rack.c
18933
struct tcphdr *th = NULL;
sys/netinet/tcp_stacks/rack.c
18958
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
19155
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/rack.c
19157
sizeof(struct tcphdr) + optlen + len, IPPROTO_TCP,
sys/netinet/tcp_stacks/rack.c
19176
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/rack.c
19178
ip->ip_dst.s_addr, htons(sizeof(struct tcphdr) +
sys/netinet/tcp_stacks/rack.c
19234
th = (struct tcphdr *)(cpto + ((uint8_t *)rack->r_ctl.fsb.th - rack->r_ctl.fsb.tcp_ip_hdr));
sys/netinet/tcp_stacks/rack.c
19237
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_stacks/rack.c
19239
th->th_off = sizeof(struct tcphdr) >> 2;
sys/netinet/tcp_stacks/rack.c
19563
struct tcphdr *th;
sys/netinet/tcp_stacks/rack.c
2079
ether = rack->rc_tp->t_maxseg + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
21059
hdrlen = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netinet/tcp_stacks/rack.c
21550
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_stacks/rack.c
21552
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_stacks/rack.c
21565
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_stacks/rack.c
21567
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_stacks/rack.c
21673
th = (struct tcphdr *)(cpto + ((uint8_t *)rack->r_ctl.fsb.th - rack->r_ctl.fsb.tcp_ip_hdr));
sys/netinet/tcp_stacks/rack.c
21680
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_stacks/rack.c
21719
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/rack.c
21721
sizeof(struct tcphdr) + optlen + len, IPPROTO_TCP,
sys/netinet/tcp_stacks/rack.c
21740
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_stacks/rack.c
21742
ip->ip_dst.s_addr, htons(sizeof(struct tcphdr) +
sys/netinet/tcp_stacks/rack.c
426
rack_process_ack(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
430
rack_process_data(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
454
rack_do_segment(struct tcpcb *tp, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
489
struct tcphdr *th, int entered_rec, int dup_ack_struck,
sys/netinet/tcp_stacks/rack.c
526
rack_do_close_wait(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
531
rack_do_closing(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
535
rack_do_established(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
539
rack_do_fastnewdata(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
543
rack_do_fin_wait_1(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
547
rack_do_fin_wait_2(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
551
rack_do_lastack(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
555
rack_do_syn_recv(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack.c
559
rack_do_syn_sent(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.c
136
struct tcphdr *th;
sys/netinet/tcp_stacks/rack_bbr_common.c
177
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_stacks/rack_bbr_common.c
209
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_stacks/rack_bbr_common.c
349
struct tcphdr *th;
sys/netinet/tcp_stacks/rack_bbr_common.c
389
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_stacks/rack_bbr_common.c
398
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_stacks/rack_bbr_common.c
406
if (off < sizeof (struct tcphdr) || off > tlen) {
sys/netinet/tcp_stacks/rack_bbr_common.c
409
sizeof(struct tcphdr),
sys/netinet/tcp_stacks/rack_bbr_common.c
507
ctf_do_dropwithreset(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.c
543
ctf_drop_checks(struct tcpopt *to, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.c
651
ctf_do_dropafterack(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t *ret_val)
sys/netinet/tcp_stacks/rack_bbr_common.c
694
ctf_process_rst(struct mbuf *m, struct tcphdr *th, struct socket *so,
sys/netinet/tcp_stacks/rack_bbr_common.c
757
ctf_challenge_ack(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp, uint8_t iptos, int32_t * ret_val)
sys/netinet/tcp_stacks/rack_bbr_common.c
789
ctf_ts_check(struct mbuf *m, struct tcphdr *th, struct tcpcb *tp,
sys/netinet/tcp_stacks/rack_bbr_common.c
863
ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.h
104
struct tcphdr *th, int32_t tlen);
sys/netinet/tcp_stacks/rack_bbr_common.h
109
ctf_process_rst(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.h
113
ctf_challenge_ack(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.h
117
ctf_ts_check(struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.h
127
ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.h
92
ctf_drop_checks(struct tcpopt *to, struct mbuf *m, struct tcphdr *th,
sys/netinet/tcp_stacks/rack_bbr_common.h
99
struct tcphdr *th, int32_t thflags, int32_t tlen,
sys/netinet/tcp_stacks/tcp_bbr.h
734
int32_t(*r_substate) (struct mbuf *, struct tcphdr *,
sys/netinet/tcp_stacks/tcp_rack.h
344
struct tcphdr *th;
sys/netinet/tcp_stacks/tcp_rack.h
615
int32_t(*r_substate) (struct mbuf *, struct tcphdr *,
sys/netinet/tcp_subr.c
1516
max_protohdr_grow(sizeof(struct ip6_hdr) + sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
1643
struct tcphdr *th = (struct tcphdr *)tcp_ptr;
sys/netinet/tcp_subr.c
1660
ip6->ip6_plen = htons(sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
1733
tcp_respond(struct tcpcb *tp, void *ipgen, struct tcphdr *th, struct mbuf *m,
sys/netinet/tcp_subr.c
1741
struct tcphdr *nth;
sys/netinet/tcp_subr.c
1806
nth = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
1812
nth = (struct tcphdr *)(uh + 1);
sys/netinet/tcp_subr.c
1819
nth = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
1825
nth = (struct tcphdr *)(uh + 1);
sys/netinet/tcp_subr.c
1828
bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
1855
nth = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
1861
nth = (struct tcphdr *)(uh + 1);
sys/netinet/tcp_subr.c
1869
nth = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
1875
nth = (struct tcphdr *)(uh + 1);
sys/netinet/tcp_subr.c
1878
bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
1897
nth = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_subr.c
1902
nth = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_subr.c
1919
tlen = sizeof (struct ip6_hdr) + sizeof (struct tcphdr);
sys/netinet/tcp_subr.c
2033
nth->th_off = (sizeof (struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_subr.c
2064
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_subr.c
2084
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_subr.c
2212
tcp_send_challenge_ack(struct tcpcb *tp, struct tcphdr *th, struct mbuf *m)
sys/netinet/tcp_subr.c
2503
sizeof (struct tcphdr) :
sys/netinet/tcp_subr.c
3093
struct tcphdr *th;
sys/netinet/tcp_subr.c
3125
th = (struct tcphdr *)((caddr_t)ip + (ip->ip_hl << 2));
sys/netinet/tcp_subr.c
3195
struct tcphdr *th, ttemp;
sys/netinet/tcp_subr.c
3204
(sizeof(struct ip) + 8 + i_hlen + sizeof(struct udphdr) + offsetof(struct tcphdr, th_ack))) {
sys/netinet/tcp_subr.c
3214
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_subr.c
3215
memcpy(&ttemp, th, sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
3216
memcpy(udp, &ttemp, sizeof(struct tcphdr));
sys/netinet/tcp_subr.c
3353
sizeof (struct tcphdr) +
sys/netinet/tcp_subr.c
341
static char * tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th,
sys/netinet/tcp_subr.c
4113
tcp_log_vain(struct in_conninfo *inc, struct tcphdr *th, const void *ip4hdr,
sys/netinet/tcp_subr.c
4125
tcp_log_addrs(struct in_conninfo *inc, struct tcphdr *th, const void *ip4hdr,
sys/netinet/tcp_subr.c
4137
tcp_log_addr(struct in_conninfo *inc, struct tcphdr *th, const void *ip4hdr,
sys/netinet/tcp_subr.c
4414
tcp_do_ack_accounting(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to, uint32_t tiwin, int mss)
sys/netinet/tcp_subr.c
580
struct tcphdr *th;
sys/netinet/tcp_subr.c
591
thlen = sizeof(struct tcphdr);
sys/netinet/tcp_subr.c
599
th = (struct tcphdr *)(uh + 1);
sys/netinet/tcp_subr.c
609
th = (struct tcphdr *)(uh + 1);
sys/netinet/tcp_syncache.c
1068
syncache_expand(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
sys/netinet/tcp_syncache.c
138
struct tcphdr *, struct tcpopt *, struct socket *,
sys/netinet/tcp_syncache.c
1398
syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
sys/netinet/tcp_syncache.c
146
struct tcphdr *, struct tcpopt *, struct socket *,
sys/netinet/tcp_syncache.c
1845
struct tcphdr *th = NULL;
sys/netinet/tcp_syncache.c
1861
tlen = hlen + sizeof(struct tcphdr);
sys/netinet/tcp_syncache.c
1906
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_syncache.c
1909
th = (struct tcphdr *)(ip6 + 1);
sys/netinet/tcp_syncache.c
1942
th = (struct tcphdr *)(ip + 1);
sys/netinet/tcp_syncache.c
1949
th = (struct tcphdr *)(udp + 1);
sys/netinet/tcp_syncache.c
1961
th->th_off = sizeof(struct tcphdr) >> 2;
sys/netinet/tcp_syncache.c
2001
th->th_off = (sizeof(struct tcphdr) + optlen) >> 2;
sys/netinet/tcp_syncache.c
2046
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_syncache.c
2077
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netinet/tcp_syncache.c
2321
struct syncache *sc, struct tcphdr *th, struct tcpopt *to,
sys/netinet/tcp_syncache.c
2418
struct syncache *sc, struct tcphdr *th, struct tcpopt *to,
sys/netinet/tcp_syncache.c
616
syncache_chkrst(struct in_conninfo *inc, struct tcphdr *th, uint16_t port)
sys/netinet/tcp_syncache.h
42
struct tcphdr *, struct socket **, struct mbuf *, uint16_t);
sys/netinet/tcp_syncache.h
44
struct tcphdr *, struct inpcb *, struct socket *, struct mbuf *,
sys/netinet/tcp_syncache.h
46
void syncache_chkrst(struct in_conninfo *, struct tcphdr *, uint16_t);
sys/netinet/tcp_timewait.c
154
tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
sys/netinet/tcp_var.h
1175
struct tcphdr *th;
sys/netinet/tcp_var.h
1183
struct tcphdr *th, struct tcpopt *to,
sys/netinet/tcp_var.h
1400
char *tcp_log_addrs(struct in_conninfo *, struct tcphdr *, const void *,
sys/netinet/tcp_var.h
1402
char *tcp_log_vain(struct in_conninfo *, struct tcphdr *, const void *,
sys/netinet/tcp_var.h
1404
int tcp_reass(struct tcpcb *, struct tcphdr *, tcp_seq *, int *,
sys/netinet/tcp_var.h
1409
void tcp_dropwithreset(struct mbuf *, struct tcphdr *, struct tcpcb *, int);
sys/netinet/tcp_var.h
1411
struct tcphdr *, struct mbuf *, int);
sys/netinet/tcp_var.h
1413
void tcp_newreno_partial_ack(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_var.h
1414
void cc_ack_received(struct tcpcb *tp, struct tcphdr *th,
sys/netinet/tcp_var.h
1417
void cc_post_recovery(struct tcpcb *tp, struct tcphdr *th);
sys/netinet/tcp_var.h
1418
void cc_ecnpkt_handler(struct tcpcb *tp, struct tcphdr *th, uint8_t iptos);
sys/netinet/tcp_var.h
1420
void cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type);
sys/netinet/tcp_var.h
1423
struct tcphdr *th, struct tcpopt *to);
sys/netinet/tcp_var.h
1427
int tcp_autorcvbuf(struct mbuf *, struct tcphdr *, struct socket *,
sys/netinet/tcp_var.h
1430
void tcp_do_segment(struct tcpcb *, struct mbuf *, struct tcphdr *, int,
sys/netinet/tcp_var.h
1491
struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, uint16_t);
sys/netinet/tcp_var.h
1493
void tcp_send_challenge_ack(struct tcpcb *, struct tcphdr *, struct mbuf *);
sys/netinet/tcp_var.h
1494
bool tcp_twcheck(struct inpcb *, struct tcpopt *, struct tcphdr *,
sys/netinet/tcp_var.h
1534
void tcp_do_prr_ack(struct tcpcb *, struct tcphdr *, struct tcpopt *,
sys/netinet/tcp_var.h
1536
void tcp_lost_retransmission(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_var.h
1537
void tcp_sack_partialack(struct tcpcb *, struct tcphdr *, u_int *);
sys/netinet/tcp_var.h
1540
void tcp_sack_lost_retransmission(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_var.h
1541
int tcp_newreno(struct tcpcb *, struct tcphdr *);
sys/netinet/tcp_var.h
1586
int tcp_do_ack_accounting(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to, uint32_t tiwin, int mss);
sys/netinet/tcp_var.h
1600
tcp_fields_to_host(struct tcphdr *th)
sys/netinet/tcp_var.h
1610
tcp_fields_to_net(struct tcphdr *th)
sys/netinet/tcp_var.h
508
struct tcphdr tt_t;
sys/netinet/tcp_var.h
603
struct tcphdr *, int, int, uint8_t);
sys/netinet/tcp_var.h
605
struct tcphdr *, int, int, uint8_t, int, struct timeval *);
sys/netinet/tcpip.h
40
struct tcphdr ti_t; /* tcp header */
sys/netinet/toecore.c
355
toe_syncache_add(struct in_conninfo *inc, struct tcpopt *to, struct tcphdr *th,
sys/netinet/toecore.c
367
struct tcphdr *th, struct socket **lsop)
sys/netinet/toecore.c
384
toe_4tuple_check(struct in_conninfo *inc, struct tcphdr *th, struct ifnet *ifp)
sys/netinet/toecore.h
141
void toe_syncache_add(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
sys/netinet/toecore.h
143
int toe_syncache_expand(struct in_conninfo *, struct tcpopt *, struct tcphdr *,
sys/netinet/toecore.h
146
int toe_4tuple_check(struct in_conninfo *, struct tcphdr *, struct ifnet *);
sys/netinet/toecore.h
41
struct tcphdr;
sys/netinet6/in6_rss.c
213
const struct tcphdr *th;
sys/netinet6/in6_rss.c
341
if (m->m_len < off + sizeof(struct tcphdr)) {
sys/netinet6/in6_rss.c
345
th = (const struct tcphdr *)((c_caddr_t)ip6 + off);
sys/netipsec/ipsec.c
513
struct tcphdr th;
sys/netipsec/ipsec.c
521
if (off + sizeof(struct tcphdr) > m->m_pkthdr.len)
sys/netipsec/ipsec.c
695
struct tcphdr th;
sys/netipsec/ipsec.c
718
if (off + sizeof(struct tcphdr) > m->m_pkthdr.len)
sys/netipsec/ipsec.h
336
struct tcphdr;
sys/netipsec/ipsec_support.h
135
struct tcphdr *, u_char *);
sys/netipsec/ipsec_support.h
137
struct tcphdr *, u_char *);
sys/netipsec/ipsec_support.h
36
struct tcphdr;
sys/netipsec/ipsec_support.h
97
int (*input)(struct mbuf *, struct tcphdr *, u_char *);
sys/netipsec/ipsec_support.h
98
int (*output)(struct mbuf *, struct tcphdr *, u_char *);
sys/netipsec/subr_ipsec.c
278
struct tcphdr *th, u_char *buf), METHOD_ARGS(m, th, buf)
sys/netipsec/subr_ipsec.c
283
struct tcphdr *th, u_char *buf), METHOD_ARGS(m, th, buf)
sys/netipsec/udpencap.c
330
off = offsetof(struct tcphdr, th_sum);
sys/netipsec/xform_tcp.c
183
tcp_signature_compute(struct mbuf *m, struct tcphdr *th,
sys/netipsec/xform_tcp.c
212
MD5Update(&ctx, (char *)th, sizeof(struct tcphdr));
sys/netipsec/xform_tcp.c
267
tcp_ipsec_input(struct mbuf *m, struct tcphdr *th, u_char *buf)
sys/netipsec/xform_tcp.c
313
tcp_ipsec_output(struct mbuf *m, struct tcphdr *th, u_char *buf)
sys/netpfil/ipfilter/netinet/ip_compat.h
654
typedef struct tcphdr tcphdr_t;
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
325
struct tcphdr *tcp, *tcp2;
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
372
tcp2 = (struct tcphdr *)((char *)ip + hlen);
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
395
ip6->ip6_plen = htons(sizeof(struct tcphdr));
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
406
ip->ip_len = htons(sizeof(struct tcphdr));
sys/netpfil/ipfw/dn_sched_fq_codel.c
218
struct tcphdr *th;
sys/netpfil/ipfw/dn_sched_fq_codel.c
238
th = (struct tcphdr *)(ip6 + 1);
sys/netpfil/ipfw/dn_sched_fq_codel.c
265
th = (struct tcphdr *)(ip + 1);
sys/netpfil/ipfw/dn_sched_fq_pie.c
793
struct tcphdr *th;
sys/netpfil/ipfw/dn_sched_fq_pie.c
813
th = (struct tcphdr *)(ip6 + 1);
sys/netpfil/ipfw/dn_sched_fq_pie.c
840
th = (struct tcphdr *)(ip + 1);
sys/netpfil/ipfw/ip_fw2.c
1017
struct tcphdr *const tcp =
sys/netpfil/ipfw/ip_fw2.c
1018
L3HDR(struct tcphdr, mtod(args->m, struct ip *));
sys/netpfil/ipfw/ip_fw2.c
1622
PULLUP_TO(hlen, ulp, struct tcphdr);
sys/netpfil/ipfw/ip_fw2.c
1819
PULLUP_TO(hlen, ulp, struct tcphdr);
sys/netpfil/ipfw/ip_fw2.c
2534
struct tcphdr *tcp;
sys/netpfil/ipfw/ip_fw2.c
256
#define TCP(p) ((struct tcphdr *)(p))
sys/netpfil/ipfw/ip_fw2.c
355
tcpopts_parse(const struct tcphdr *tcp, uint16_t *mss)
sys/netpfil/ipfw/ip_fw2.c
359
int cnt = (tcp->th_off << 2) - sizeof(struct tcphdr);
sys/netpfil/ipfw/ip_fw2.c
412
tcpopts_match(struct tcphdr *tcp, ipfw_insn *cmd)
sys/netpfil/ipfw/ip_fw2.c
637
struct tcphdr *th = NULL;
sys/netpfil/ipfw/ip_fw2.c
656
len = sizeof(struct ip) + sizeof(struct tcphdr);
sys/netpfil/ipfw/ip_fw2.c
660
len = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
sys/netpfil/ipfw/ip_fw2.c
682
h->ip_len = htons(sizeof(struct tcphdr));
sys/netpfil/ipfw/ip_fw2.c
691
th = (struct tcphdr *)(h + 1);
sys/netpfil/ipfw/ip_fw2.c
699
h6->ip6_plen = htons(sizeof(struct tcphdr));
sys/netpfil/ipfw/ip_fw2.c
708
th = (struct tcphdr *)(h6 + 1);
sys/netpfil/ipfw/ip_fw2.c
720
th->th_off = sizeof(struct tcphdr) >> 2;
sys/netpfil/ipfw/ip_fw2.c
757
sizeof(struct tcphdr));
sys/netpfil/ipfw/ip_fw2.c
897
const struct tcphdr * tcp;
sys/netpfil/ipfw/ip_fw2.c
898
tcp = (const struct tcphdr *)((const char *)ip6 + hlen);
sys/netpfil/ipfw/ip_fw_dynamic.c
2423
struct tcphdr *tcp;
sys/netpfil/ipfw/ip_fw_dynamic.c
2440
tcp->th_off = sizeof(struct tcphdr) >> 2;
sys/netpfil/ipfw/ip_fw_dynamic.c
2445
htons(sizeof(struct tcphdr) + IPPROTO_TCP));
sys/netpfil/ipfw/ip_fw_dynamic.c
2447
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netpfil/ipfw/ip_fw_dynamic.c
2457
m = dyn_mgethdr(sizeof(struct ip) + sizeof(struct tcphdr),
sys/netpfil/ipfw/ip_fw_dynamic.c
2473
m = dyn_mgethdr(sizeof(struct ip) + sizeof(struct tcphdr),
sys/netpfil/ipfw/ip_fw_dynamic.c
2527
struct tcphdr *tcp;
sys/netpfil/ipfw/ip_fw_dynamic.c
2532
ip6->ip6_plen = htons(sizeof(struct tcphdr));
sys/netpfil/ipfw/ip_fw_dynamic.c
2545
tcp->th_off = sizeof(struct tcphdr) >> 2;
sys/netpfil/ipfw/ip_fw_dynamic.c
2549
tcp->th_sum = in6_cksum_pseudo(ip6, sizeof(struct tcphdr),
sys/netpfil/ipfw/ip_fw_dynamic.c
2552
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netpfil/ipfw/ip_fw_dynamic.c
2563
sizeof(struct tcphdr), s->data->fibnum);
sys/netpfil/ipfw/ip_fw_dynamic.c
2579
sizeof(struct tcphdr), s->data->fibnum);
sys/netpfil/ipfw/ip_fw_dynamic.c
551
const struct ipfw_flow_id *, const struct tcphdr *, int);
sys/netpfil/ipfw/ip_fw_dynamic.c
952
const struct tcphdr *tcp, int dir)
sys/netpfil/ipfw/ip_fw_log.c
311
struct tcphdr *tcp;
sys/netpfil/ipfw/ip_fw_log.c
332
tcp = (struct tcphdr *)(((char *)ip) + hlen);
sys/netpfil/ipfw/ip_fw_log.c
337
tcp = L3HDR(struct tcphdr, ip);
sys/netpfil/ipfw/ip_fw_log.c
81
#define TCP(p) ((struct tcphdr *)(p))
sys/netpfil/ipfw/ip_fw_nat.c
416
struct tcphdr *th;
sys/netpfil/ipfw/ip_fw_nat.c
418
th = (struct tcphdr *)(ip + 1);
sys/netpfil/ipfw/ip_fw_nat.c
424
struct tcphdr *th;
sys/netpfil/ipfw/ip_fw_nat.c
434
th = (struct tcphdr *)(ip + 1);
sys/netpfil/ipfw/ip_fw_nat.c
442
offsetof(struct tcphdr, th_sum);
sys/netpfil/ipfw/nat64/nat64_translate.c
1120
if (len < offsetof(struct tcphdr, th_sum))
sys/netpfil/ipfw/nat64/nat64_translate.c
1302
struct tcphdr *tcp = TCP(mtodo(m, hlen));
sys/netpfil/ipfw/nat64/nat64_translate.c
1679
struct tcphdr *tcp = TCP(mtodo(m, hlen));
sys/netpfil/ipfw/nat64/nat64_translate.c
903
struct tcphdr *tcp;
sys/netpfil/ipfw/nat64/nat64_translate.h
78
#define TCP(p) ((struct tcphdr *)(p))
sys/netpfil/ipfw/nat64/nat64lsn.c
571
len += sizeof(struct tcphdr);
sys/netpfil/ipfw/nat64/nat64lsn.c
591
*port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport);
sys/netpfil/ipfw/pmod/tcpmod.c
124
struct tcphdr *tcp;
sys/netpfil/ipfw/pmod/tcpmod.c
146
if (hlen <= sizeof(struct tcphdr) || hlen > plen)
sys/netpfil/ipfw/pmod/tcpmod.c
156
struct tcphdr *tcp;
sys/netpfil/ipfw/pmod/tcpmod.c
166
if (hlen <= sizeof(struct tcphdr) || hlen > plen)
sys/netpfil/ipfw/pmod/tcpmod.c
60
tcpmod_setmss(struct mbuf **mp, struct tcphdr *tcp, int tlen, uint16_t mss,
sys/netpfil/ipfw/pmod/tcpmod.c
82
for (tlen -= sizeof(struct tcphdr), cp = (u_char *)(tcp + 1);
sys/netpfil/pf/pf.c
11088
(pd->proto == IPPROTO_TCP ? sizeof(struct tcphdr) :
sys/netpfil/pf/pf.c
11286
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
316
struct tcphdr *, struct pf_state_peer *);
sys/netpfil/pf/pf.c
4405
pf_modulate_sack(struct pf_pdesc *pd, struct tcphdr *th,
sys/netpfil/pf/pf.c
4413
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
4414
optsoff = pd->off + sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
4463
struct tcphdr *th;
sys/netpfil/pf/pf.c
4471
tlen = sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
4531
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netpfil/pf/pf.c
4547
th = (struct tcphdr *)((caddr_t)h + sizeof(struct ip));
sys/netpfil/pf/pf.c
4555
m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
sys/netpfil/pf/pf.c
4567
th = (struct tcphdr *)((caddr_t)h6 + sizeof(struct ip6_hdr));
sys/netpfil/pf/pf.c
4779
struct tcphdr *th, u_int16_t bproto_sum, u_int16_t bip_sum,
sys/netpfil/pf/pf.c
5485
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
5487
pd->off + sizeof(struct tcphdr), opts, olen, NULL, pd->af))
sys/netpfil/pf/pf.c
5510
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
5512
pd->off + sizeof(struct tcphdr), opts, olen, NULL, pd->af))
sys/netpfil/pf/pf.c
5545
mss = nh->nh_mtu - hlen - sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
5554
mss = nh->nh_mtu - hlen - sizeof(struct tcphdr);
sys/netpfil/pf/pf.c
6677
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
7143
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
7308
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
7444
if (dst->seqdiff && (th->th_off << 2) > sizeof(struct tcphdr)) {
sys/netpfil/pf/pf.c
7641
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
7714
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
7812
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
7890
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf.c
8869
struct tcphdr *th = &pd2.hdr.tcp;
sys/netpfil/pf/pf.c
899
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf_norm.c
1394
struct tcphdr *th = &pd->hdr.tcp;
sys/netpfil/pf/pf_norm.c
1476
if (th->th_off < (sizeof(struct tcphdr) >> 2))
sys/netpfil/pf/pf_norm.c
1515
pf_normalize_tcp_init(struct pf_pdesc *pd, struct tcphdr *th,
sys/netpfil/pf/pf_norm.c
1609
u_short *reason, struct tcphdr *th, struct pf_kstate *state,
sys/netpfil/pf/pf_norm.c
1987
olen = (pd->hdr.tcp.th_off << 2) - sizeof(struct tcphdr);
sys/netpfil/pf/pf_norm.c
1988
optsoff = pd->off + sizeof(struct tcphdr);
sys/netpfil/pf/pf_norm.c
2006
sizeof(struct tcphdr), (caddr_t)&pd->hdr.tcp);
sys/netpfil/pf/pf_osfp.c
395
#define MTUOFF (sizeof(struct ip) + sizeof(struct tcphdr))
sys/netpfil/pf/pf_osfp.c
51
const struct tcphdr *);
sys/netpfil/pf/pf_osfp.c
67
pf_osfp_fingerprint(struct pf_pdesc *pd, const struct tcphdr *tcp)
sys/netpfil/pf/pf_osfp.c
88
return (pf_osfp_fingerprint_hdr(ip, ip6, (struct tcphdr *)hdr));
sys/netpfil/pf/pf_osfp.c
92
pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcp)
tools/tools/netmap/pkt_hash.c
160
const struct tcphdr *tcph = NULL;
tools/tools/netmap/pkt_hash.c
165
tcph = (const struct tcphdr *)((const uint8_t *)iph + (iph->ip_hl<<2));
tools/tools/netmap/pkt_hash.c
231
const struct tcphdr *tcph = NULL;
tools/tools/netmap/pkt_hash.c
236
tcph = (const struct tcphdr *)(ipv6h + 1);
usr.sbin/ppp/ip.c
302
const struct tcphdr *th;
usr.sbin/ppp/ip.c
362
th = (const struct tcphdr *)payload;
usr.sbin/ppp/ip.c
566
const struct tcphdr *th;
usr.sbin/ppp/ip.c
814
th = (const struct tcphdr *)payload;
usr.sbin/ppp/slcompress.c
163
register struct tcphdr *oth;
usr.sbin/ppp/slcompress.c
164
register struct tcphdr *th;
usr.sbin/ppp/slcompress.c
181
th = (struct tcphdr *) & ((int *) ip)[hlen];
usr.sbin/ppp/slcompress.c
263
oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen];
usr.sbin/ppp/slcompress.c
433
register struct tcphdr *th;
usr.sbin/ppp/slcompress.c
453
if ((int)(hlen + sizeof(struct tcphdr)) > len)
usr.sbin/ppp/slcompress.c
455
th = (struct tcphdr *) & ((char *) ip)[hlen];
usr.sbin/ppp/slcompress.c
500
th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen];
usr.sbin/ppp/tcpmss.c
104
MSSFixup(struct tcphdr *tc, size_t pktlen, u_int16_t maxmss)
usr.sbin/ppp/tcpmss.c
114
if (hlen <= sizeof(struct tcphdr) || hlen > pktlen)
usr.sbin/ppp/tcpmss.c
121
for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1);
usr.sbin/ppp/tcpmss.c
176
plen >= sizeof(struct tcphdr) + hlen)
usr.sbin/ppp/tcpmss.c
177
MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen,
usr.sbin/ppp/tcpmss.c
206
if (hlen > 0 && plen >= sizeof(struct tcphdr) + hlen)
usr.sbin/ppp/tcpmss.c
207
MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), plen - hlen,
usr.sbin/ppp/tcpmss.c
75
#define MAXMSS4(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr))
usr.sbin/ppp/tcpmss.c
77
#define MAXMSS6(mtu) ((mtu) - sizeof(struct ip6_hdr) - sizeof(struct tcphdr))
usr.sbin/traceroute/traceroute.c
1493
struct tcphdr *const tcp = (struct tcphdr *) outp;
usr.sbin/traceroute/traceroute.c
1510
struct tcphdr *const tcp = (struct tcphdr *) data;
usr.sbin/traceroute/traceroute.c
429
sizeof(struct tcphdr),
usr.sbin/traceroute6/traceroute6.c
1116
struct tcphdr *tcp;
usr.sbin/traceroute6/traceroute6.c
1215
tcp = (struct tcphdr *)outpacket;
usr.sbin/traceroute6/traceroute6.c
1406
struct tcphdr *tcp;
usr.sbin/traceroute6/traceroute6.c
1459
tcp = (struct tcphdr *)up;
usr.sbin/traceroute6/traceroute6.c
680
minlen = sizeof(struct tcphdr);