drivers/infiniband/hw/cxgb4/cm.c
2465
const struct tcphdr *tcph;
drivers/infiniband/hw/cxgb4/cm.c
253
sizeof(struct tcphdr);
drivers/infiniband/hw/cxgb4/cm.c
2593
sizeof(struct tcphdr) +
drivers/infiniband/hw/cxgb4/cm.c
4067
struct tcphdr *tcph;
drivers/infiniband/hw/cxgb4/cm.c
4132
tcph = (struct tcphdr *)(iph + 1);
drivers/infiniband/hw/irdma/cm.c
2624
static int irdma_check_syn(struct irdma_cm_node *cm_node, struct tcphdr *tcph)
drivers/infiniband/hw/irdma/cm.c
2639
static int irdma_check_seq(struct irdma_cm_node *cm_node, struct tcphdr *tcph)
drivers/infiniband/hw/irdma/cm.c
2682
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
drivers/infiniband/hw/irdma/cm.c
2687
optionsize = (tcph->doff << 2) - sizeof(struct tcphdr);
drivers/infiniband/hw/irdma/cm.c
2748
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
drivers/infiniband/hw/irdma/cm.c
2753
optionsize = (tcph->doff << 2) - sizeof(struct tcphdr);
drivers/infiniband/hw/irdma/cm.c
2821
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
drivers/infiniband/hw/irdma/cm.c
2827
optionsize = (tcph->doff << 2) - sizeof(struct tcphdr);
drivers/infiniband/hw/irdma/cm.c
2905
struct tcphdr *tcph = (struct tcphdr *)rbuf->tcph;
drivers/infiniband/hw/irdma/cm.c
2938
(!irdma_check_seq(cm_node, (struct tcphdr *)rbuf->tcph)))
drivers/infiniband/hw/irdma/cm.c
310
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/cm.c
3147
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/cm.c
3181
tcph = (struct tcphdr *)rbuf->tcph;
drivers/infiniband/hw/irdma/cm.c
346
tcph = (struct tcphdr *)buf;
drivers/infiniband/hw/irdma/cm.c
420
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/cm.c
474
tcph = (struct tcphdr *)buf;
drivers/infiniband/hw/irdma/cm.c
507
tcph = (struct tcphdr *)buf;
drivers/infiniband/hw/irdma/cm.c
748
struct tcphdr *tcph, int optionsize,
drivers/infiniband/hw/irdma/utils.c
1406
struct tcphdr *tcph = (struct tcphdr *)buf->tcph;
drivers/infiniband/hw/irdma/utils.c
1437
struct tcphdr *tcph = (struct tcphdr *)buf->tcph;
drivers/infiniband/hw/irdma/utils.c
1499
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/utils.c
1507
tcph = (struct tcphdr *)(addr + buf->maclen + iphlen);
drivers/infiniband/hw/irdma/utils.c
1522
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/utils.c
1529
tcph = (struct tcphdr *)addr;
drivers/infiniband/hw/irdma/utils.c
1544
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/utils.c
1562
tcph = (struct tcphdr *)buf->tcph;
drivers/infiniband/hw/irdma/utils.c
1597
struct tcphdr *tcph;
drivers/infiniband/hw/irdma/utils.c
1616
tcph = (struct tcphdr *)buf->tcph;
drivers/infiniband/hw/qedr/qedr_iw_cm.c
601
(sizeof(struct iphdr) + sizeof(struct tcphdr));
drivers/infiniband/hw/qedr/qedr_iw_cm.c
617
(sizeof(struct ipv6hdr) + sizeof(struct tcphdr));
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
42
struct tcphdr *th;
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
80
th = (struct tcphdr *)((u8 *)ih + 4 * ih->ihl);
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
777
#define SKB_CS_OFF(skb) (offsetof(struct tcphdr, check) - \
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
520
u16 hdrs_len = ETH_HLEN + sizeof(struct tcphdr);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
713
struct tcphdr *th;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
725
struct tcphdr *th;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1663
struct tcphdr *th;
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1753
#define BNXT_IPV4_HDR_SIZE (sizeof(struct iphdr) + sizeof(struct tcphdr))
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1754
#define BNXT_IPV6_HDR_SIZE (sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
drivers/net/ethernet/broadcom/bnxt/bnxt.c
1761
struct tcphdr *th;
drivers/net/ethernet/broadcom/cnic.c
3517
sizeof(struct tcphdr);
drivers/net/ethernet/broadcom/cnic.c
3521
sizeof(struct tcphdr);
drivers/net/ethernet/broadcom/tg3.c
13552
struct tcphdr *th;
drivers/net/ethernet/broadcom/tg3.c
13554
th = (struct tcphdr *)&tx_data[val];
drivers/net/ethernet/broadcom/tg3.c
7974
struct tcphdr *tcph = NULL;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
3343
pktsize = pktsize - sizeof(struct iphdr) - sizeof(struct tcphdr);
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
1070
tcp = (struct tcphdr *)(buf + maclen + iplen);
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
1897
struct tcphdr *th;
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
1925
struct tcphdr *th = tcp_hdr(skb);
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
948
chcr_ktls_check_tcp_options(struct tcphdr *tcp)
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
954
cnt = (tcp->doff << 2) - sizeof(struct tcphdr);
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c
996
struct tcphdr *tcp;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1014
const struct tcphdr *tcph;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1058
tcph = (struct tcphdr *)((u8 *)(req + 1) +
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1301
struct tcphdr *tcph;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1356
tcph = (struct tcphdr *)(iph + 1);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1360
tcph = (struct tcphdr *)(ip6h + 1);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
151
tp->tcp_header_len = sizeof(struct tcphdr);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
965
iphdrsz = sizeof(struct ipv6hdr) + sizeof(struct tcphdr);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
968
iphdrsz = sizeof(struct iphdr) + sizeof(struct tcphdr);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
225
cdev->askb = alloc_skb(sizeof(struct tcphdr), GFP_KERNEL);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c
229
skb_put(cdev->askb, sizeof(struct tcphdr));
drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.c
54
struct tcphdr *tcp = (struct tcphdr *)
drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h
71
sizeof(struct tcphdr) +
drivers/net/ethernet/emulex/benet/be_main.c
1426
struct tcphdr *tcphdr;
drivers/net/ethernet/emulex/benet/be_main.c
1464
tcphdr = tcp_hdr(skb);
drivers/net/ethernet/emulex/benet/be_main.c
1466
ntohs(tcphdr->source));
drivers/net/ethernet/emulex/benet/be_main.c
1468
ntohs(tcphdr->dest));
drivers/net/ethernet/emulex/benet/be_main.c
1470
ntohl(tcphdr->seq));
drivers/net/ethernet/emulex/benet/be_main.c
1472
ntohl(tcphdr->ack_seq));
drivers/net/ethernet/freescale/enetc/enetc.c
197
case offsetof(struct tcphdr, check):
drivers/net/ethernet/freescale/enetc/enetc.c
212
return skb->csum_offset == offsetof(struct tcphdr, check);
drivers/net/ethernet/freescale/enetc/enetc.c
599
struct tcphdr *tcph = (struct tcphdr *)(l4_hdr);
drivers/net/ethernet/freescale/enetc/enetc.c
643
struct tcphdr *tcph = (struct tcphdr *)(l4_hdr);
drivers/net/ethernet/fungible/funeth/funeth_tx.c
102
static __be16 tcp_hdr_doff_flags(const struct tcphdr *th)
drivers/net/ethernet/fungible/funeth/funeth_tx.c
159
const struct tcphdr *th;
drivers/net/ethernet/google/gve/gve_tx_dqo.c
575
struct tcphdr *tcp;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3866
struct tcphdr *th;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
3913
skb->csum_offset = offsetof(struct tcphdr, check);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
610
struct tcphdr *tcp;
drivers/net/ethernet/huawei/hinic/hinic_tx.c
61
struct tcphdr *tcp;
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
187
struct tcphdr *tcp;
drivers/net/ethernet/ibm/ehea/ehea_main.c
1984
offsetof(struct tcphdr, check);
drivers/net/ethernet/ibm/ibmveth.c
1334
struct tcphdr *tcph;
drivers/net/ethernet/ibm/ibmveth.c
1363
tcph = (struct tcphdr *)(skb->data + offset);
drivers/net/ethernet/ibm/ibmveth.c
1427
struct tcphdr *tcph = (struct tcphdr *)(skb->data + iphlen);
drivers/net/ethernet/ibm/ibmveth.c
1442
offsetof(struct tcphdr, check));
drivers/net/ethernet/intel/fm10k/fm10k_main.c
766
hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
254
struct tcphdr *tcp;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
262
tcp = (struct tcphdr *)tmp;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2868
struct tcphdr *th;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2915
th = (struct tcphdr *)(hdr.network + hlen);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3087
struct tcphdr *tcp;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3253
struct tcphdr *tcp;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
399
struct tcphdr *tcph = (struct tcphdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1740
struct tcphdr *tcp;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1856
struct tcphdr *tcp;
drivers/net/ethernet/intel/ice/ice_txrx.c
1596
struct tcphdr *tcp;
drivers/net/ethernet/intel/ice/ice_txrx.c
1843
struct tcphdr *tcp;
drivers/net/ethernet/intel/ice/virt/fdir.c
948
struct tcphdr *tcph;
drivers/net/ethernet/intel/ice/virt/fdir.c
992
tcph = (struct tcphdr *)hdr->buffer;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
139
struct tcphdr *tcph, *tcpm;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
143
tcph = (struct tcphdr *)hdrs->proto_hdr[1].buffer_spec;
drivers/net/ethernet/intel/idpf/idpf_ethtool.c
144
tcpm = (struct tcphdr *)hdrs->proto_hdr[1].buffer_mask;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
26
struct tcphdr *tcp;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
2830
struct tcphdr *tcp;
drivers/net/ethernet/intel/igb/igb_main.c
6060
struct tcphdr *tcp;
drivers/net/ethernet/intel/igb/igb_main.c
6158
case offsetof(struct tcphdr, check):
drivers/net/ethernet/intel/igbvf/netdev.c
2002
struct tcphdr *tcp;
drivers/net/ethernet/intel/igbvf/netdev.c
2080
case offsetof(struct tcphdr, check):
drivers/net/ethernet/intel/igc/igc_main.c
1190
case offsetof(struct tcphdr, check):
drivers/net/ethernet/intel/igc/igc_main.c
1464
struct tcphdr *tcp;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8712
struct tcphdr *tcp;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8823
case offsetof(struct tcphdr, check):
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9099
struct tcphdr *th;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9170
hlen + sizeof(struct tcphdr)))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9173
th = (struct tcphdr *)(hdr.network + hlen);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3814
struct tcphdr *tcp;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3911
case offsetof(struct tcphdr, check):
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/pedit.h
14
struct tcphdr tcp;
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
325
if (offset == offsetof(struct tcphdr, source))
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
327
else if (offset == offsetof(struct tcphdr, dest))
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
648
if (offset == offsetof(struct tcphdr, source))
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
650
else if (offset == offsetof(struct tcphdr, dest))
drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h
509
struct tcphdr *th;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
506
struct tcphdr *th;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
533
depth += sizeof(struct tcphdr);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp_rxtx.c
192
struct tcphdr *th = inner_tcp_hdr(skb);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1102
struct tcphdr *skb_tcp_hd)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1105
int len = nhoff + sizeof(struct tcphdr);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1106
struct tcphdr *last_tcp_hd;
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1110
last_tcp_hd = (struct tcphdr *)(last_hd_addr + nhoff);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1120
struct tcphdr *tcp;
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1122
tcp = (struct tcphdr *)(skb->data + tcp_off);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1137
skb->csum_offset = offsetof(struct tcphdr, check);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1148
struct tcphdr *tcp;
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1150
tcp = (struct tcphdr *)(skb->data + tcp_off);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
1158
skb->csum_offset = offsetof(struct tcphdr, check);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
962
static void mlx5e_lro_update_tcp_hdr(struct mlx5_cqe64 *cqe, struct tcphdr *tcp)
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
983
struct tcphdr *tcp;
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
228
struct tcphdr *tcph = (struct tcphdr *)l4hdr;
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c
231
l4len = __tcp_hdrlen((struct tcphdr *)l4hdr);
drivers/net/ethernet/netronome/nfp/crypto/tls.c
483
struct tcphdr *th;
drivers/net/ethernet/netronome/nfp/flower/conntrack.c
1434
if (mangle_action->mangle.offset == offsetof(struct tcphdr, source)) {
drivers/net/ethernet/netronome/nfp/flower/conntrack.c
1444
if (mangle_action->mangle.offset == offsetof(struct tcphdr, dest)) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1575
struct tcphdr *th;
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
1618
th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2));
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1679
struct tcphdr *tcph;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1756
tcph = (struct tcphdr *)((u8 *)iph + ip_hlen);
drivers/net/ethernet/qlogic/qede/qede_filter.c
1406
size += sizeof(struct tcphdr);
drivers/net/ethernet/qlogic/qede/qede_filter.c
1485
ip6->payload_len = cpu_to_be16(sizeof(struct tcphdr));
drivers/net/ethernet/qlogic/qede/qede_fp.c
893
struct tcphdr *th;
drivers/net/ethernet/qlogic/qede/qede_fp.c
907
struct tcphdr *th;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1271
struct tcphdr *th;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1323
th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr));
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1328
th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1792
struct tcphdr *th;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1844
th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr));
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
1850
th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
24
return &((struct tcphdr *)txporthdr)->check;
drivers/net/ethernet/realtek/r8169_main.c
4646
tcp_hdrlen(skb) > sizeof(struct tcphdr))
drivers/net/ethernet/sfc/ef10.c
2240
struct tcphdr *tcp;
drivers/net/ethernet/sfc/ef100_tx.c
200
struct tcphdr *tcp;
drivers/net/ethernet/sfc/tc_conntrack.c
322
case offsetof(struct tcphdr, dest):
drivers/net/ethernet/sfc/tc_conntrack.c
323
BUILD_BUG_ON(offsetof(struct tcphdr, dest) !=
drivers/net/ethernet/sfc/tc_conntrack.c
327
case offsetof(struct tcphdr, source):
drivers/net/ethernet/sfc/tc_conntrack.c
328
BUILD_BUG_ON(offsetof(struct tcphdr, source) !=
drivers/net/ethernet/sgi/ioc3-eth.c
1026
csoff += offsetof(struct tcphdr, check);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
152
thdr->doff = sizeof(struct tcphdr) / 4;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
204
skb->csum_offset = offsetof(struct tcphdr, check);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
257
struct tcphdr *thdr;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
290
thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl);
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
64
struct tcphdr *thdr = NULL;
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
78
size += sizeof(struct tcphdr);
drivers/net/ethernet/sun/sunvnet_common.c
1303
curr->csum_offset = offsetof(struct tcphdr, check);
drivers/net/ethernet/sun/sunvnet_common.c
322
struct tcphdr *ptcp = tcp_hdr(skb);
drivers/net/ethernet/sun/sunvnet_common.c
355
struct tcphdr *ptcp = tcp_hdr(skb);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1317
struct tcphdr *tcph;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1463
struct tcphdr *tcphdr;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1540
mss_l4len_idx = (transport_hdr.tcphdr->doff * 4) <<
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
236
struct tcphdr *th;
drivers/net/ovpn/io.h
16
max(sizeof(struct udphdr), sizeof(struct tcphdr)) +\
drivers/net/slip/slhc.c
239
struct tcphdr *th, *oth;
drivers/net/slip/slhc.c
267
th = (struct tcphdr *)(icp + nlen);
drivers/net/slip/slhc.c
268
if (th->doff < sizeof(struct tcphdr) / 4)
drivers/net/slip/slhc.c
497
struct tcphdr *thp;
drivers/net/slip/slhc.c
646
const struct tcphdr *th;
drivers/net/slip/slhc.c
667
if (ihl < 5 || isize < ihl * 4 + sizeof(struct tcphdr))
drivers/net/slip/slhc.c
682
th = (struct tcphdr *)(icp + ihl * 4);
drivers/net/slip/slhc.c
683
if (th->doff < sizeof(struct tcphdr) / 4)
drivers/net/vmxnet3/vmxnet3_drv.c
1087
struct tcphdr *tcph = inner_tcp_hdr(skb);
drivers/net/vmxnet3/vmxnet3_drv.c
1106
struct tcphdr *tcph = tcp_hdr(skb);
drivers/net/vmxnet3/vmxnet3_drv.c
1531
struct tcphdr *tcp;
drivers/net/vmxnet3/vmxnet3_drv.c
1536
if (unlikely(sizeof(struct iphdr) + sizeof(struct tcphdr) > maplen))
drivers/net/vmxnet3/vmxnet3_drv.c
1561
return sizeof(struct ipv6hdr) + sizeof(struct tcphdr);
drivers/net/vmxnet3/vmxnet3_drv.c
1569
if (hlen + sizeof(struct tcphdr) > maplen)
drivers/net/vxlan/vxlan_core.c
2207
skb->csum_offset == offsetof(struct tcphdr, check)))
drivers/net/wireless/microchip/wilc1000/wlan.c
130
const struct tcphdr *tcp_hdr_ptr;
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1133
const struct tcphdr *tcph;
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1193
tcph = (struct tcphdr *)((u8 *)(req + 1) +
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1196
tcph = (struct tcphdr *)((u8 *)(req + 1) +
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1313
sizeof(struct tcphdr) + (req->tcpopt.tstamp ? 12 : 0);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
764
sizeof(struct tcphdr);
include/linux/netfilter_ipv6.h
165
const struct tcphdr *th,
include/linux/netfilter_ipv6.h
182
const struct tcphdr *th)
include/linux/netfilter_ipv6.h
52
const struct tcphdr *th, u16 *mssp);
include/linux/netfilter_ipv6.h
54
const struct tcphdr *th);
include/linux/tcp.h
24
static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb)
include/linux/tcp.h
26
return (struct tcphdr *)skb_transport_header(skb);
include/linux/tcp.h
29
static inline unsigned int __tcp_hdrlen(const struct tcphdr *th)
include/linux/tcp.h
39
static inline struct tcphdr *inner_tcp_hdr(const struct sk_buff *skb)
include/linux/tcp.h
41
return (struct tcphdr *)skb_inner_transport_header(skb);
include/linux/virtio_net.h
180
skb->csum_offset != offsetof(struct tcphdr, check))
include/linux/virtio_net.h
65
thlen = sizeof(struct tcphdr);
include/linux/virtio_net.h
70
thlen = sizeof(struct tcphdr);
include/net/gro.h
595
static inline struct tcphdr *tcp_gro_pull_header(struct sk_buff *skb)
include/net/gro.h
598
struct tcphdr *th;
include/net/ip6_checksum.h
58
struct tcphdr *th = tcp_hdr(skb);
include/net/ip6_checksum.h
62
skb->csum_offset = offsetof(struct tcphdr, check);
include/net/ip6_checksum.h
68
struct tcphdr *th = tcp_hdr(skb);
include/net/ipv6_frag.h
132
offset += sizeof(struct tcphdr);
include/net/mptcp.h
157
void mptcp_write_options(struct tcphdr *th, __be32 *ptr, struct tcp_sock *tp,
include/net/netfilter/nf_synproxy.h
46
const struct tcphdr *th,
include/net/netfilter/nf_synproxy.h
53
const struct tcphdr *th,
include/net/netfilter/nf_synproxy.h
58
const struct tcphdr *th,
include/net/netfilter/nf_synproxy.h
71
const struct tcphdr *th,
include/net/netfilter/nf_synproxy.h
75
const struct tcphdr *th,
include/net/slhc_vj.h
133
struct tcphdr cs_tcp;
include/net/tcp.h
1642
const struct tcphdr *th = (const struct tcphdr *)skb->data;
include/net/tcp.h
2377
struct sk_buff *tcp_gro_lookup(struct list_head *head, struct tcphdr *th);
include/net/tcp.h
2379
struct tcphdr *th);
include/net/tcp.h
2947
static inline int tcp_parse_auth_options(const struct tcphdr *th,
include/net/tcp.h
468
const struct tcphdr *th,
include/net/tcp.h
524
struct tcphdr *th, u32 *cookie);
include/net/tcp.h
526
struct tcphdr *th, u32 *cookie);
include/net/tcp.h
527
u16 tcp_parse_mss_option(const struct tcphdr *th, u16 user_mss);
include/net/tcp.h
530
struct sock *sk, struct tcphdr *th);
include/net/tcp.h
575
int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th);
include/net/tcp.h
686
u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
include/net/tcp.h
720
int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th);
include/net/tcp.h
724
const struct tcphdr *th, u16 *mssp);
include/net/tcp_ao.h
177
struct tcp_ao_key *key, struct tcphdr *th,
include/net/tcp_ao.h
212
const struct tcphdr *th, u32 sne);
include/net/tcp_ao.h
267
struct tcp_ao_key *key, struct tcphdr *th,
include/net/tcp_ao.h
344
int tcp_do_parse_auth_options(const struct tcphdr *th,
include/net/tcp_ao.h
347
static inline int tcp_do_parse_auth_options(const struct tcphdr *th,
include/net/tcp_ecn.h
339
const struct tcphdr *th = (const struct tcphdr *)skb->data;
include/net/tcp_ecn.h
348
static inline bool cookie_accecn_ok(const struct tcphdr *th)
include/net/tcp_ecn.h
375
static inline bool tcp_accecn_syn_requested(const struct tcphdr *th)
include/net/tcp_ecn.h
406
static inline void tcp_accecn_echo_syn_ect(struct tcphdr *th, u8 ect)
include/net/tcp_ecn.h
426
struct tcphdr *th)
include/net/tcp_ecn.h
491
const struct tcphdr *th, u8 ip_dsfield)
include/net/tcp_ecn.h
547
static inline void tcp_ecn_rcv_syn(struct sock *sk, const struct tcphdr *th,
include/net/tcp_ecn.h
569
const struct tcphdr *th)
include/net/tcp_ecn.h
645
tcp_ecn_make_synack(const struct request_sock *req, struct tcphdr *th,
include/net/tcp_ecn.h
95
static inline u8 tcp_accecn_ace(const struct tcphdr *th)
include/net/vxlan.h
437
offsetof(struct tcphdr, check);
include/trace/events/tcp.h
113
const struct tcphdr *th = (const struct tcphdr *)skb__nullable->data;
include/trace/events/tcp.h
395
const struct tcphdr *th = (const struct tcphdr *)skb->data;
include/trace/events/tcp.h
449
const struct tcphdr *th = (const struct tcphdr *)skb->data;
include/trace/events/tcp.h
546
const struct tcphdr *th = (const struct tcphdr *)skb->data;
include/trace/events/tcp.h
647
const struct tcphdr *th = (const struct tcphdr *)skb->data;
include/uapi/linux/netfilter/nfnetlink_osf.h
72
struct tcphdr tcp;
include/uapi/linux/tcp.h
68
struct tcphdr hdr;
kernel/audit.c
2523
struct tcphdr _tcph;
kernel/audit.c
2524
const struct tcphdr *th;
kernel/audit.c
2589
struct tcphdr _tcph;
kernel/audit.c
2590
const struct tcphdr *th;
net/core/dev.c
3947
case offsetof(struct tcphdr, check):
net/core/dev.c
4133
const struct tcphdr *th;
net/core/dev.c
4134
struct tcphdr _tcphdr;
net/core/filter.c
7559
struct tcphdr *, th, u32, th_len)
net/core/filter.c
7632
struct tcphdr *, th, u32, th_len)
net/core/filter.c
7818
op += sizeof(struct tcphdr);
net/core/filter.c
7826
op = bpf_sock->skb->data + sizeof(struct tcphdr);
net/core/filter.c
7897
op = skb->data + sizeof(struct tcphdr);
net/core/filter.c
8002
struct tcphdr *, th, u32, th_len)
net/core/filter.c
8028
struct tcphdr *, th, u32, th_len)
net/core/filter.c
8031
const u16 mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) -
net/core/filter.c
8060
struct tcphdr *, th)
net/core/filter.c
8076
.arg2_size = sizeof(struct tcphdr),
net/core/filter.c
8080
struct tcphdr *, th)
net/core/filter.c
8100
.arg2_size = sizeof(struct tcphdr),
net/core/flow_dissector.c
1940
poff += max_t(u32, sizeof(struct tcphdr), (*doff & 0xF0) >> 2);
net/core/flow_dissector.c
832
struct tcphdr *th, _th;
net/core/selftests.c
132
skb->csum_offset = offsetof(struct tcphdr, check);
net/core/selftests.c
170
struct tcphdr *thdr;
net/core/selftests.c
201
thdr = (struct tcphdr *)((u8 *)ihdr + 4 * ihdr->ihl);
net/core/selftests.c
24
struct tcphdr *thdr = NULL;
net/core/selftests.c
33
size += sizeof(struct tcphdr);
net/core/selftests.c
71
thdr->doff = sizeof(struct tcphdr) / 4;
net/core/skbuff.c
5850
err = skb_maybe_pull_tail(skb, off + sizeof(struct tcphdr),
net/core/skbuff.c
5853
offsetof(struct tcphdr,
net/core/tso.c
28
struct tcphdr *tcph = (struct tcphdr *)hdr;
net/ipv4/esp4.c
732
struct tcphdr *th = (void *)(skb_network_header(skb) + ihl);
net/ipv4/netfilter/ipt_ECN.c
47
struct tcphdr _tcph, *tcph;
net/ipv4/netfilter/ipt_SYNPROXY.c
19
struct tcphdr *th, _th;
net/ipv4/netfilter/nf_nat_h323.c
33
const struct tcphdr *th;
net/ipv4/netfilter/nf_nat_h323.c
34
struct tcphdr _tcph;
net/ipv4/netfilter/nf_reject_ipv4.c
173
static const struct tcphdr *
net/ipv4/netfilter/nf_reject_ipv4.c
175
struct tcphdr *_oth, int hook)
net/ipv4/netfilter/nf_reject_ipv4.c
177
const struct tcphdr *oth;
net/ipv4/netfilter/nf_reject_ipv4.c
187
sizeof(struct tcphdr), _oth);
net/ipv4/netfilter/nf_reject_ipv4.c
19
const struct tcphdr *oth);
net/ipv4/netfilter/nf_reject_ipv4.c
20
static const struct tcphdr *
net/ipv4/netfilter/nf_reject_ipv4.c
22
struct tcphdr *_oth, int hook);
net/ipv4/netfilter/nf_reject_ipv4.c
227
const struct tcphdr *oth)
net/ipv4/netfilter/nf_reject_ipv4.c
230
struct tcphdr *tcph;
net/ipv4/netfilter/nf_reject_ipv4.c
233
tcph = skb_put_zero(nskb, sizeof(struct tcphdr));
net/ipv4/netfilter/nf_reject_ipv4.c
236
tcph->doff = sizeof(struct tcphdr) / 4;
net/ipv4/netfilter/nf_reject_ipv4.c
248
tcph->check = ~tcp_v4_check(sizeof(struct tcphdr), niph->saddr,
net/ipv4/netfilter/nf_reject_ipv4.c
252
nskb->csum_offset = offsetof(struct tcphdr, check);
net/ipv4/netfilter/nf_reject_ipv4.c
274
const struct tcphdr *oth;
net/ipv4/netfilter/nf_reject_ipv4.c
276
struct tcphdr _oth;
net/ipv4/netfilter/nf_reject_ipv4.c
288
nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) +
net/ipv4/netfilter/nf_reject_ipv4.c
53
const struct tcphdr *oth;
net/ipv4/netfilter/nf_reject_ipv4.c
56
struct tcphdr _oth;
net/ipv4/netfilter/nf_reject_ipv4.c
65
nskb = alloc_skb(sizeof(struct iphdr) + sizeof(struct tcphdr) +
net/ipv4/netfilter/nf_socket_ipv4.c
114
ip_hdrlen(skb) + __tcp_hdrlen((struct tcphdr *)hp) :
net/ipv4/netfilter/nf_socket_ipv4.c
98
struct tcphdr _hdr;
net/ipv4/netfilter/nf_tproxy_ipv4.c
23
struct tcphdr _hdr, *hp;
net/ipv4/netfilter/nf_tproxy_ipv4.c
88
struct tcphdr _hdr, *hp;
net/ipv4/netfilter/nf_tproxy_ipv4.c
91
sizeof(struct tcphdr), &_hdr);
net/ipv4/route.c
1330
unsigned int header_size = sizeof(struct tcphdr) + sizeof(struct iphdr);
net/ipv4/route.c
3198
struct tcphdr *tcph;
net/ipv4/route.c
3200
tcph = skb_put_zero(skb, sizeof(struct tcphdr));
net/ipv4/route.c
3203
tcph->doff = sizeof(struct tcphdr) / 4;
net/ipv4/route.c
3205
tcph->check = ~tcp_v4_check(sizeof(struct tcphdr),
net/ipv4/syncookies.c
155
u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
net/ipv4/syncookies.c
175
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/syncookies.c
184
int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th)
net/ipv4/syncookies.c
270
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/syncookies.c
408
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp.c
4999
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
419
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
462
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
527
const struct tcphdr *th,
net/ipv4/tcp_ao.c
544
((struct tcphdr *)hdr)->check = 0;
net/ipv4/tcp_ao.c
549
((struct tcphdr *)hdr)->check = 0;
net/ipv4/tcp_ao.c
564
const struct tcphdr *th, u32 sne)
net/ipv4/tcp_ao.c
626
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
729
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
810
struct tcp_ao_key *key, struct tcphdr *th,
net/ipv4/tcp_ao.c
869
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
906
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ao.c
947
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_input.c
286
if (len >= TCP_MSS_DEFAULT + sizeof(struct tcphdr) ||
net/ipv4/tcp_input.c
292
(len >= TCP_MIN_MSS + sizeof(struct tcphdr) &&
net/ipv4/tcp_input.c
4466
static bool smc_parse_options(const struct tcphdr *th,
net/ipv4/tcp_input.c
4487
u16 tcp_parse_mss_option(const struct tcphdr *th, u16 user_mss)
net/ipv4/tcp_input.c
4490
int length = (th->doff * 4) - sizeof(struct tcphdr);
net/ipv4/tcp_input.c
4537
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_input.c
4538
int length = (th->doff * 4) - sizeof(struct tcphdr);
net/ipv4/tcp_input.c
4669
static bool tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th)
net/ipv4/tcp_input.c
4693
const struct tcphdr *th, struct tcp_sock *tp)
net/ipv4/tcp_input.c
4721
int tcp_do_parse_auth_options(const struct tcphdr *th,
net/ipv4/tcp_input.c
4815
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_input.c
4862
const struct tcphdr *th)
net/ipv4/tcp_input.c
501
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_input.c
6230
static void tcp_check_urg(struct sock *sk, const struct tcphdr *th)
net/ipv4/tcp_input.c
6296
static void tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th)
net/ipv4/tcp_input.c
6342
const struct tcphdr *th, int syn_inerr)
net/ipv4/tcp_input.c
6522
const struct tcphdr *th = (const struct tcphdr *)skb->data;
net/ipv4/tcp_input.c
6572
if (tcp_header_len == sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) {
net/ipv4/tcp_input.c
6598
(sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) &&
net/ipv4/tcp_input.c
6641
(sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED) &&
net/ipv4/tcp_input.c
6873
const struct tcphdr *th)
net/ipv4/tcp_input.c
6975
sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED;
net/ipv4/tcp_input.c
6979
tp->tcp_header_len = sizeof(struct tcphdr);
net/ipv4/tcp_input.c
7064
sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED;
net/ipv4/tcp_input.c
7066
tp->tcp_header_len = sizeof(struct tcphdr);
net/ipv4/tcp_input.c
7174
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_input.c
7478
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_input.c
7615
struct sock *sk, struct tcphdr *th)
net/ipv4/tcp_ipv4.c
1009
arg.csumoffset = offsetof(struct tcphdr, check) / 2;
net/ipv4/tcp_ipv4.c
1573
const struct tcphdr *th, int nbytes)
net/ipv4/tcp_ipv4.c
1577
struct tcphdr tcp;
net/ipv4/tcp_ipv4.c
1592
__be32 daddr, __be32 saddr, const struct tcphdr *th)
net/ipv4/tcp_ipv4.c
1606
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ipv4.c
1826
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ipv4.c
1835
struct tcphdr *th, u32 *cookie)
net/ipv4/tcp_ipv4.c
1939
const struct tcphdr *th;
net/ipv4/tcp_ipv4.c
1945
if (!pskb_may_pull(skb, skb_transport_offset(skb) + sizeof(struct tcphdr)))
net/ipv4/tcp_ipv4.c
1951
if (th->doff < sizeof(struct tcphdr) / 4)
net/ipv4/tcp_ipv4.c
1978
const struct tcphdr *th;
net/ipv4/tcp_ipv4.c
1979
struct tcphdr *thtail;
net/ipv4/tcp_ipv4.c
2012
th = (const struct tcphdr *)skb->data;
net/ipv4/tcp_ipv4.c
2018
thtail = (struct tcphdr *)tail->data;
net/ipv4/tcp_ipv4.c
2123
const struct tcphdr *th)
net/ipv4/tcp_ipv4.c
2155
const struct tcphdr *th;
net/ipv4/tcp_ipv4.c
2168
if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
net/ipv4/tcp_ipv4.c
2171
th = (const struct tcphdr *)skb->data;
net/ipv4/tcp_ipv4.c
2173
if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) {
net/ipv4/tcp_ipv4.c
2188
th = (const struct tcphdr *)skb->data;
net/ipv4/tcp_ipv4.c
2239
th = (const struct tcphdr *)skb->data;
net/ipv4/tcp_ipv4.c
2302
th = (const struct tcphdr *)skb->data;
net/ipv4/tcp_ipv4.c
499
struct tcphdr *th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
net/ipv4/tcp_ipv4.c
665
struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ipv4.c
669
skb->csum_offset = offsetof(struct tcphdr, check);
net/ipv4/tcp_ipv4.c
685
struct ip_reply_arg *arg, struct tcphdr *reply,
net/ipv4/tcp_ipv4.c
743
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ipv4.c
745
struct tcphdr th;
net/ipv4/tcp_ipv4.c
775
rep.th.doff = sizeof(struct tcphdr) / 4;
net/ipv4/tcp_ipv4.c
873
arg.csumoffset = offsetof(struct tcphdr, check) / 2;
net/ipv4/tcp_ipv4.c
938
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_ipv4.c
940
struct tcphdr th;
net/ipv4/tcp_ipv4.c
948
memset(&rep.th, 0, sizeof(struct tcphdr));
net/ipv4/tcp_ipv4.c
97
__be32 daddr, __be32 saddr, const struct tcphdr *th);
net/ipv4/tcp_minisocks.c
102
const struct tcphdr *th, u32 *tw_isn,
net/ipv4/tcp_minisocks.c
622
newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED;
net/ipv4/tcp_minisocks.c
626
newtp->tcp_header_len = sizeof(struct tcphdr);
net/ipv4/tcp_minisocks.c
697
const struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_minisocks.c
705
if (th->doff > (sizeof(struct tcphdr)>>2)) {
net/ipv4/tcp_offload.c
104
if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
net/ipv4/tcp_offload.c
108
struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_offload.c
119
struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_offload.c
138
struct tcphdr *th;
net/ipv4/tcp_offload.c
265
struct sk_buff *tcp_gro_lookup(struct list_head *head, struct tcphdr *th)
net/ipv4/tcp_offload.c
267
struct tcphdr *th2;
net/ipv4/tcp_offload.c
287
struct tcphdr *th)
net/ipv4/tcp_offload.c
292
struct tcphdr *th2;
net/ipv4/tcp_offload.c
371
struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_offload.c
378
skb->csum_offset = offsetof(struct tcphdr, check);
net/ipv4/tcp_offload.c
38
struct tcphdr *th;
net/ipv4/tcp_offload.c
390
struct tcphdr *th)
net/ipv4/tcp_offload.c
421
struct tcphdr *th;
net/ipv4/tcp_offload.c
446
struct tcphdr *th = tcp_hdr(skb);
net/ipv4/tcp_offload.c
57
const struct tcphdr *th;
net/ipv4/tcp_offload.c
60
struct tcphdr *th2;
net/ipv4/tcp_output.c
1523
struct tcphdr *th;
net/ipv4/tcp_output.c
1570
tcp_header_size = tcp_options_size + sizeof(struct tcphdr);
net/ipv4/tcp_output.c
1606
th = (struct tcphdr *)skb->data;
net/ipv4/tcp_output.c
1982
mss_now = pmtu - icsk->icsk_af_ops->net_header_len - sizeof(struct tcphdr);
net/ipv4/tcp_output.c
2002
(tcp_sk(sk)->tcp_header_len - sizeof(struct tcphdr));
net/ipv4/tcp_output.c
2027
icsk->icsk_mtup.search_high = tp->rx_opt.mss_clamp + sizeof(struct tcphdr) +
net/ipv4/tcp_output.c
2100
sizeof(struct tcphdr);
net/ipv4/tcp_output.c
2560
sizeof(struct tcphdr) +
net/ipv4/tcp_output.c
348
struct tcphdr *th, int tcp_header_len)
net/ipv4/tcp_output.c
3945
struct tcphdr *th;
net/ipv4/tcp_output.c
4038
th = (struct tcphdr *)skb->data;
net/ipv4/tcp_output.c
4039
memset(th, 0, sizeof(struct tcphdr));
net/ipv4/tcp_output.c
4115
tp->tcp_header_len = sizeof(struct tcphdr);
net/ipv4/tcp_output.c
4147
tp->advmss - (tp->rx_opt.ts_recent_stamp ? tp->tcp_header_len - sizeof(struct tcphdr) : 0),
net/ipv4/tcp_output.c
446
static void mptcp_options_write(struct tcphdr *th, __be32 *ptr,
net/ipv4/tcp_output.c
653
static void tcp_options_write(struct tcphdr *th, struct tcp_sock *tp,
net/ipv4/tcp_sigpool.c
332
const struct tcphdr *tp = tcp_hdr(skb);
net/ipv6/esp6.c
765
struct tcphdr *th;
net/ipv6/ila/ila_common.c
83
if (likely(pskb_may_pull(skb, nhoff + sizeof(struct tcphdr)))) {
net/ipv6/ila/ila_common.c
84
struct tcphdr *th = (struct tcphdr *)
net/ipv6/netfilter/ip6t_SYNPROXY.c
19
struct tcphdr *th, _th;
net/ipv6/netfilter/nf_reject_ipv6.c
192
static const struct tcphdr *
net/ipv6/netfilter/nf_reject_ipv6.c
194
struct tcphdr *otcph,
net/ipv6/netfilter/nf_reject_ipv6.c
214
if (proto != IPPROTO_TCP || *otcplen < sizeof(struct tcphdr)) {
net/ipv6/netfilter/nf_reject_ipv6.c
22
const struct tcphdr *oth, unsigned int otcplen);
net/ipv6/netfilter/nf_reject_ipv6.c
220
otcph = skb_header_pointer(oldskb, tcphoff, sizeof(struct tcphdr),
net/ipv6/netfilter/nf_reject_ipv6.c
23
static const struct tcphdr *
net/ipv6/netfilter/nf_reject_ipv6.c
25
struct tcphdr *otcph,
net/ipv6/netfilter/nf_reject_ipv6.c
267
const struct tcphdr *oth, unsigned int otcplen)
net/ipv6/netfilter/nf_reject_ipv6.c
269
struct tcphdr *tcph;
net/ipv6/netfilter/nf_reject_ipv6.c
272
tcph = skb_put_zero(nskb, sizeof(struct tcphdr));
net/ipv6/netfilter/nf_reject_ipv6.c
274
tcph->doff = sizeof(struct tcphdr)/4;
net/ipv6/netfilter/nf_reject_ipv6.c
291
sizeof(struct tcphdr), IPPROTO_TCP,
net/ipv6/netfilter/nf_reject_ipv6.c
293
sizeof(struct tcphdr), 0));
net/ipv6/netfilter/nf_reject_ipv6.c
316
const struct tcphdr *otcph;
net/ipv6/netfilter/nf_reject_ipv6.c
318
struct tcphdr _otcph;
net/ipv6/netfilter/nf_reject_ipv6.c
359
sizeof(struct tcphdr) + dst->trailer_len,
net/ipv6/netfilter/nf_reject_ipv6.c
399
ip6h->payload_len = htons(sizeof(struct tcphdr));
net/ipv6/netfilter/nf_reject_ipv6.c
78
const struct tcphdr *oth;
net/ipv6/netfilter/nf_reject_ipv6.c
79
struct tcphdr _oth;
net/ipv6/netfilter/nf_reject_ipv6.c
90
nskb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(struct tcphdr) +
net/ipv6/netfilter/nf_socket_ipv6.c
117
struct tcphdr _hdr;
net/ipv6/netfilter/nf_socket_ipv6.c
131
thoff + __tcp_hdrlen((struct tcphdr *)hp) :
net/ipv6/netfilter/nf_tproxy_ipv6.c
46
struct tcphdr _hdr, *hp;
net/ipv6/netfilter/nf_tproxy_ipv6.c
87
struct tcphdr _hdr, *hp;
net/ipv6/netfilter/nf_tproxy_ipv6.c
90
sizeof(struct tcphdr), &_hdr);
net/ipv6/route.c
3257
mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr);
net/ipv6/route.c
3273
if (mtu > IPV6_MAXPLEN - sizeof(struct tcphdr))
net/ipv6/syncookies.c
113
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/syncookies.c
118
int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th)
net/ipv6/syncookies.c
176
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/syncookies.c
94
const struct tcphdr *th, __u16 *mssp)
net/ipv6/tcp_ao.c
57
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcp_ipv6.c
1259
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcp_ipv6.c
1268
struct tcphdr *th, u32 *cookie)
net/ipv6/tcp_ipv6.c
1673
const struct tcphdr *th)
net/ipv6/tcp_ipv6.c
1702
const struct tcphdr *th;
net/ipv6/tcp_ipv6.c
1718
if (!pskb_may_pull(skb, sizeof(struct tcphdr)))
net/ipv6/tcp_ipv6.c
1721
th = (const struct tcphdr *)skb->data;
net/ipv6/tcp_ipv6.c
1723
if (unlikely(th->doff < sizeof(struct tcphdr) / 4)) {
net/ipv6/tcp_ipv6.c
1733
th = (const struct tcphdr *)skb->data;
net/ipv6/tcp_ipv6.c
1783
th = (const struct tcphdr *)skb->data;
net/ipv6/tcp_ipv6.c
1846
th = (const struct tcphdr *)skb->data;
net/ipv6/tcp_ipv6.c
1964
const struct tcphdr *th;
net/ipv6/tcp_ipv6.c
1970
if (!pskb_may_pull(skb, skb_transport_offset(skb) + sizeof(struct tcphdr)))
net/ipv6/tcp_ipv6.c
1976
if (th->doff < sizeof(struct tcphdr) / 4)
net/ipv6/tcp_ipv6.c
307
tp->rx_opt.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr);
net/ipv6/tcp_ipv6.c
382
const struct tcphdr *th = (struct tcphdr *)(skb->data+offset);
net/ipv6/tcp_ipv6.c
697
const struct tcphdr *th, int nbytes)
net/ipv6/tcp_ipv6.c
701
struct tcphdr tcp;
net/ipv6/tcp_ipv6.c
716
const struct tcphdr *th)
net/ipv6/tcp_ipv6.c
730
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcp_ipv6.c
803
.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) -
net/ipv6/tcp_ipv6.c
828
unsigned int tot_len = sizeof(struct tcphdr);
net/ipv6/tcp_ipv6.c
830
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcp_ipv6.c
834
struct tcphdr *t1;
net/ipv6/tcp_ipv6.c
974
const struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcpv6_offload.c
117
const struct tcphdr *th;
net/ipv6/tcpv6_offload.c
120
struct tcphdr *th2;
net/ipv6/tcpv6_offload.c
160
struct tcphdr *th;
net/ipv6/tcpv6_offload.c
169
struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcpv6_offload.c
18
struct tcphdr *th)
net/ipv6/tcpv6_offload.c
180
struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcpv6_offload.c
48
struct tcphdr *th;
net/ipv6/tcpv6_offload.c
74
struct tcphdr *th = tcp_hdr(skb);
net/ipv6/tcpv6_offload.c
98
struct tcphdr *th = tcp_hdr(seg);
net/mptcp/options.c
1299
static void mptcp_set_rwin(struct tcp_sock *tp, struct tcphdr *th)
net/mptcp/options.c
1415
void mptcp_write_options(struct tcphdr *th, __be32 *ptr, struct tcp_sock *tp,
net/mptcp/options.c
362
const struct tcphdr *th = tcp_hdr(skb);
net/mptcp/options.c
372
length = (th->doff * 4) - sizeof(struct tcphdr);
net/mptcp/protocol.c
1415
sizeof(struct tcphdr) - \
net/mptcp/syncookies.c
41
struct tcphdr *th = tcp_hdr(skb);
net/netfilter/ipset/ip_set_getport.c
30
struct tcphdr _tcph;
net/netfilter/ipset/ip_set_getport.c
31
const struct tcphdr *th;
net/netfilter/ipvs/ip_vs_app.c
287
static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
net/netfilter/ipvs/ip_vs_app.c
314
vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
net/netfilter/ipvs/ip_vs_app.c
365
struct tcphdr *th;
net/netfilter/ipvs/ip_vs_app.c
371
th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset);
net/netfilter/ipvs/ip_vs_app.c
442
struct tcphdr *th;
net/netfilter/ipvs/ip_vs_app.c
448
th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset);
net/netfilter/ipvs/ip_vs_core.c
1065
struct tcphdr _tcph, *th;
net/netfilter/ipvs/ip_vs_core.c
1078
struct tcphdr _tcph, *th;
net/netfilter/ipvs/ip_vs_ftp.c
68
struct tcphdr *th = (struct tcphdr *)((char *)skb->data + ipvsh->len);
net/netfilter/ipvs/ip_vs_ftp.c
70
if ((th->doff << 2) < sizeof(struct tcphdr))
net/netfilter/ipvs/ip_vs_proto_tcp.c
105
tcp_fast_csum_update(int af, struct tcphdr *tcph,
net/netfilter/ipvs/ip_vs_proto_tcp.c
126
tcp_partial_csum_update(int af, struct tcphdr *tcph,
net/netfilter/ipvs/ip_vs_proto_tcp.c
150
struct tcphdr *tcph;
net/netfilter/ipvs/ip_vs_proto_tcp.c
228
struct tcphdr *tcph;
net/netfilter/ipvs/ip_vs_proto_tcp.c
41
struct tcphdr _tcph, *th;
net/netfilter/ipvs/ip_vs_proto_tcp.c
490
static inline int tcp_state_idx(struct tcphdr *th)
net/netfilter/ipvs/ip_vs_proto_tcp.c
505
int direction, struct tcphdr *th)
net/netfilter/ipvs/ip_vs_proto_tcp.c
584
struct tcphdr _tcph, *th;
net/netfilter/nf_conntrack_ftp.c
375
const struct tcphdr *th;
net/netfilter/nf_conntrack_ftp.c
376
struct tcphdr _tcph;
net/netfilter/nf_conntrack_h323_main.c
71
const struct tcphdr *th;
net/netfilter/nf_conntrack_h323_main.c
72
struct tcphdr _tcph;
net/netfilter/nf_conntrack_irc.c
113
const struct tcphdr *th;
net/netfilter/nf_conntrack_irc.c
114
struct tcphdr _tcph;
net/netfilter/nf_conntrack_pptp.c
497
const struct tcphdr *tcph;
net/netfilter/nf_conntrack_pptp.c
498
struct tcphdr _tcph;
net/netfilter/nf_conntrack_proto_tcp.c
275
static unsigned int get_conntrack_index(const struct tcphdr *tcph)
net/netfilter/nf_conntrack_proto_tcp.c
316
const struct tcphdr *tcph)
net/netfilter/nf_conntrack_proto_tcp.c
335
const struct tcphdr *tcph,
net/netfilter/nf_conntrack_proto_tcp.c
338
unsigned char buff[(15 * 4) - sizeof(struct tcphdr)];
net/netfilter/nf_conntrack_proto_tcp.c
340
int length = (tcph->doff*4) - sizeof(struct tcphdr);
net/netfilter/nf_conntrack_proto_tcp.c
345
ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr),
net/netfilter/nf_conntrack_proto_tcp.c
392
const struct tcphdr *tcph, __u32 *sack)
net/netfilter/nf_conntrack_proto_tcp.c
394
unsigned char buff[(15 * 4) - sizeof(struct tcphdr)];
net/netfilter/nf_conntrack_proto_tcp.c
396
int length = (tcph->doff*4) - sizeof(struct tcphdr);
net/netfilter/nf_conntrack_proto_tcp.c
402
ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr),
net/netfilter/nf_conntrack_proto_tcp.c
459
const struct tcphdr *tcph,
net/netfilter/nf_conntrack_proto_tcp.c
512
unsigned int dataoff, const struct tcphdr *tcph,
net/netfilter/nf_conntrack_proto_tcp.c
802
static bool tcp_error(const struct tcphdr *th,
net/netfilter/nf_conntrack_proto_tcp.c
811
if (th->doff*4 < sizeof(struct tcphdr) || tcplen < th->doff*4) {
net/netfilter/nf_conntrack_proto_tcp.c
840
const struct tcphdr *th,
net/netfilter/nf_conntrack_proto_tcp.c
975
const struct tcphdr *th;
net/netfilter/nf_conntrack_proto_tcp.c
976
struct tcphdr _tcph;
net/netfilter/nf_conntrack_sane.c
64
const struct tcphdr *th;
net/netfilter/nf_conntrack_sane.c
65
struct tcphdr _tcph;
net/netfilter/nf_conntrack_seqadj.c
122
struct tcphdr *tcph = (void *)skb->data + protoff;
net/netfilter/nf_conntrack_seqadj.c
126
optoff = protoff + sizeof(struct tcphdr);
net/netfilter/nf_conntrack_seqadj.c
169
struct tcphdr *tcph;
net/netfilter/nf_conntrack_seqadj.c
64
const struct tcphdr *th;
net/netfilter/nf_conntrack_seqadj.c
69
th = (struct tcphdr *)(skb_network_header(skb) + ip_hdrlen(skb));
net/netfilter/nf_conntrack_seqadj.c
76
struct tcphdr *tcph,
net/netfilter/nf_conntrack_sip.c
1541
struct tcphdr *th, _tcph;
net/netfilter/nf_flow_table_core.c
607
struct tcphdr *tcph;
net/netfilter/nf_flow_table_ip.c
239
ctx->hdrsize = sizeof(struct tcphdr);
net/netfilter/nf_flow_table_ip.c
28
struct tcphdr *tcph;
net/netfilter/nf_flow_table_ip.c
49
struct tcphdr *tcph;
net/netfilter/nf_flow_table_ip.c
842
struct tcphdr *tcph;
net/netfilter/nf_flow_table_ip.c
958
ctx->hdrsize = sizeof(struct tcphdr);
net/netfilter/nf_log_syslog.c
189
struct tcphdr _tcph;
net/netfilter/nf_log_syslog.c
190
const struct tcphdr *th;
net/netfilter/nf_log_syslog.c
241
if ((logflags & NF_LOG_TCPOPT) && th->doff * 4 > sizeof(struct tcphdr)) {
net/netfilter/nf_log_syslog.c
242
unsigned int optsize = th->doff * 4 - sizeof(struct tcphdr);
net/netfilter/nf_log_syslog.c
243
u8 _opt[60 - sizeof(struct tcphdr)];
net/netfilter/nf_log_syslog.c
247
op = skb_header_pointer(skb, offset + sizeof(struct tcphdr),
net/netfilter/nf_nat_helper.c
95
struct tcphdr *tcph;
net/netfilter/nf_nat_proto.c
147
struct tcphdr *hdr;
net/netfilter/nf_nat_proto.c
154
if (skb->len >= hdroff + sizeof(struct tcphdr))
net/netfilter/nf_nat_proto.c
155
hdrsize = sizeof(struct tcphdr);
net/netfilter/nf_nat_proto.c
160
hdr = (struct tcphdr *)(skb->data + hdroff);
net/netfilter/nf_nat_sip.c
308
const struct tcphdr *th;
net/netfilter/nf_nat_sip.c
313
th = (struct tcphdr *)(skb->data + protoff);
net/netfilter/nf_nat_sip.c
42
struct tcphdr *th;
net/netfilter/nf_nat_sip.c
46
th = (struct tcphdr *)(skb->data + protoff);
net/netfilter/nf_synproxy_core.c
1032
const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
1067
struct tcphdr *th, _th;
net/netfilter/nf_synproxy_core.c
116
synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts)
net/netfilter/nf_synproxy_core.c
187
struct tcphdr *th, struct nf_conn *ct,
net/netfilter/nf_synproxy_core.c
197
optoff = protoff + sizeof(struct tcphdr);
net/netfilter/nf_synproxy_core.c
30
const struct tcphdr *th, struct synproxy_options *opts)
net/netfilter/nf_synproxy_core.c
422
struct iphdr *niph, struct tcphdr *nth,
net/netfilter/nf_synproxy_core.c
428
nskb->csum_offset = offsetof(struct tcphdr, check);
net/netfilter/nf_synproxy_core.c
449
const struct sk_buff *skb, const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
454
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
492
const struct sk_buff *skb, const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
498
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
538
const struct sk_buff *skb, const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
543
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
576
const struct sk_buff *skb, const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
581
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
615
const struct sk_buff *skb, const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
650
struct tcphdr *th, _th;
net/netfilter/nf_synproxy_core.c
816
struct ipv6hdr *niph, struct tcphdr *nth,
net/netfilter/nf_synproxy_core.c
826
nskb->csum_offset = offsetof(struct tcphdr, check);
net/netfilter/nf_synproxy_core.c
862
const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
867
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
906
const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
912
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
952
const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
957
struct tcphdr *nth;
net/netfilter/nf_synproxy_core.c
991
const struct tcphdr *th,
net/netfilter/nf_synproxy_core.c
996
struct tcphdr *nth;
net/netfilter/nfnetlink_osf.c
165
static const struct tcphdr *nf_osf_hdr_ctx_init(struct nf_osf_hdr_ctx *ctx,
net/netfilter/nfnetlink_osf.c
169
struct tcphdr *_tcph)
net/netfilter/nfnetlink_osf.c
171
const struct tcphdr *tcp;
net/netfilter/nfnetlink_osf.c
173
tcp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(struct tcphdr), _tcph);
net/netfilter/nfnetlink_osf.c
184
if (tcp->doff * 4 > sizeof(struct tcphdr)) {
net/netfilter/nfnetlink_osf.c
185
ctx->optsize = tcp->doff * 4 - sizeof(struct tcphdr);
net/netfilter/nfnetlink_osf.c
188
sizeof(struct tcphdr), ctx->optsize, opts);
net/netfilter/nfnetlink_osf.c
209
const struct tcphdr *tcp;
net/netfilter/nfnetlink_osf.c
210
struct tcphdr _tcph;
net/netfilter/nfnetlink_osf.c
270
const struct tcphdr *tcp;
net/netfilter/nfnetlink_osf.c
271
struct tcphdr _tcph;
net/netfilter/nft_exthdr.c
172
struct tcphdr *tcph;
net/netfilter/nft_exthdr.c
192
u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE];
net/netfilter/nft_exthdr.c
196
struct tcphdr *tcph;
net/netfilter/nft_exthdr.c
236
u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE];
net/netfilter/nft_exthdr.c
239
struct tcphdr *tcph;
net/netfilter/nft_exthdr.c
249
tcph = (struct tcphdr *)(pkt->skb->data + nft_thoff(pkt));
net/netfilter/nft_exthdr.c
316
u8 buff[sizeof(struct tcphdr) + MAX_TCP_OPTION_SPACE];
net/netfilter/nft_exthdr.c
319
struct tcphdr *tcph;
net/netfilter/nft_exthdr.c
329
tcph = (struct tcphdr *)(pkt->skb->data + nft_thoff(pkt));
net/netfilter/nft_flow_offload.c
56
struct tcphdr _tcph, *tcph = NULL;
net/netfilter/nft_osf.c
27
const struct tcphdr *tcp;
net/netfilter/nft_osf.c
29
struct tcphdr _tcph;
net/netfilter/nft_osf.c
37
sizeof(struct tcphdr), &_tcph);
net/netfilter/nft_payload.c
482
case offsetof(struct tcphdr, source):
net/netfilter/nft_payload.c
489
case offsetof(struct tcphdr, dest):
net/netfilter/nft_payload.c
712
*l4csum_offset = offsetof(struct tcphdr, check);
net/netfilter/nft_payload.c
86
struct tcphdr *th, _tcph;
net/netfilter/nft_rt.c
33
minlen = sizeof(struct iphdr) + sizeof(struct tcphdr);
net/netfilter/nft_rt.c
37
minlen = sizeof(struct ipv6hdr) + sizeof(struct tcphdr);
net/netfilter/nft_synproxy.c
114
const struct tcphdr *tcp;
net/netfilter/nft_synproxy.c
115
struct tcphdr _tcph;
net/netfilter/nft_synproxy.c
128
sizeof(struct tcphdr),
net/netfilter/nft_synproxy.c
25
const struct tcphdr *tcp,
net/netfilter/nft_synproxy.c
48
const struct tcphdr *tcp,
net/netfilter/nft_synproxy.c
49
struct tcphdr *_tcph,
net/netfilter/nft_synproxy.c
79
const struct tcphdr *tcp,
net/netfilter/nft_synproxy.c
80
struct tcphdr *_tcph,
net/netfilter/xt_TCPMSS.c
117
for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) {
net/netfilter/xt_TCPMSS.c
159
tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff);
net/netfilter/xt_TCPMSS.c
176
opt = (u_int8_t *)tcph + sizeof(struct tcphdr);
net/netfilter/xt_TCPMSS.c
177
memmove(opt + TCPOLEN_MSS, opt, len - sizeof(struct tcphdr));
net/netfilter/xt_TCPMSS.c
205
sizeof(*iph) + sizeof(struct tcphdr));
net/netfilter/xt_TCPMSS.c
234
sizeof(*ipv6h) + sizeof(struct tcphdr));
net/netfilter/xt_TCPMSS.c
78
struct tcphdr *tcph;
net/netfilter/xt_TCPMSS.c
93
if (len < (int)sizeof(struct tcphdr))
net/netfilter/xt_TCPMSS.c
96
tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff);
net/netfilter/xt_TCPMSS.c
99
if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr))
net/netfilter/xt_TCPOPTSTRIP.c
34
struct tcphdr *tcph, _th;
net/netfilter/xt_TCPOPTSTRIP.c
49
if (tcp_hdrlen < sizeof(struct tcphdr))
net/netfilter/xt_TCPOPTSTRIP.c
56
tcph = (struct tcphdr *)(skb_network_header(skb) + tcphoff);
net/netfilter/xt_TCPOPTSTRIP.c
63
for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) {
net/netfilter/xt_ecn.c
30
struct tcphdr _tcph;
net/netfilter/xt_ecn.c
31
const struct tcphdr *th;
net/netfilter/xt_tcpmss.c
28
const struct tcphdr *th;
net/netfilter/xt_tcpmss.c
29
struct tcphdr _tcph;
net/netfilter/xt_tcpudp.c
44
u_int8_t _opt[60 - sizeof(struct tcphdr)];
net/netfilter/xt_tcpudp.c
53
op = skb_header_pointer(skb, protoff + sizeof(struct tcphdr),
net/netfilter/xt_tcpudp.c
73
const struct tcphdr *th;
net/netfilter/xt_tcpudp.c
74
struct tcphdr _tcph;
net/openvswitch/actions.c
330
if (likely(transport_len >= sizeof(struct tcphdr)))
net/openvswitch/actions.c
363
if (likely(transport_len >= sizeof(struct tcphdr)))
net/openvswitch/actions.c
631
struct tcphdr *th;
net/openvswitch/actions.c
636
sizeof(struct tcphdr));
net/openvswitch/flow.c
214
if (unlikely(!pskb_may_pull(skb, th_ofs + sizeof(struct tcphdr))))
net/openvswitch/flow.c
218
if (unlikely(tcp_len < sizeof(struct tcphdr) ||
net/openvswitch/flow.c
722
struct tcphdr *tcp = tcp_hdr(skb);
net/openvswitch/flow.c
846
struct tcphdr *tcp = tcp_hdr(skb);
net/sched/act_csum.c
209
struct tcphdr *tcph;
net/sched/act_csum.c
233
struct tcphdr *tcph;
net/sched/act_ct.c
152
offsetof(struct tcphdr, source),
net/sched/act_ct.c
156
offsetof(struct tcphdr, dest),
net/sched/act_ct.c
515
struct tcphdr **tcph)
net/sched/act_ct.c
536
hdrsize = sizeof(struct tcphdr);
net/sched/act_ct.c
588
struct tcphdr **tcph)
net/sched/act_ct.c
605
hdrsize = sizeof(struct tcphdr);
net/sched/act_ct.c
662
struct tcphdr *tcph = NULL;
net/sched/act_nat.c
181
struct tcphdr *tcph;
net/sched/sch_cake.c
1013
static const void *cake_get_tcpopt(const struct tcphdr *tcph,
net/sched/sch_cake.c
1017
int length = __tcp_hdrlen(tcph) - sizeof(struct tcphdr);
net/sched/sch_cake.c
1055
static int cake_tcph_sack_compare(const struct tcphdr *tcph_a,
net/sched/sch_cake.c
1056
const struct tcphdr *tcph_b)
net/sched/sch_cake.c
1125
static void cake_tcph_get_tstamp(const struct tcphdr *tcph,
net/sched/sch_cake.c
1139
static bool cake_tcph_may_drop(const struct tcphdr *tcph,
net/sched/sch_cake.c
1143
int length = __tcp_hdrlen(tcph) - sizeof(struct tcphdr);
net/sched/sch_cake.c
1219
const struct tcphdr *tcph, *tcph_check;
net/sched/sch_cake.c
1433
const struct tcphdr *th;
net/sched/sch_cake.c
1434
struct tcphdr _tcphdr;
net/sched/sch_cake.c
961
static struct tcphdr *cake_get_tcphdr(const struct sk_buff *skb,
net/sched/sch_cake.c
966
const struct tcphdr *tcph;
net/sched/sch_cake.c
969
struct tcphdr _tcph;
net/tls/tls_device_fallback.c
157
struct tcphdr *th = tcp_hdr(skb);
net/tls/tls_device_fallback.c
170
skb->csum_offset = offsetof(struct tcphdr, check);
net/xfrm/xfrm_iptfs.c
213
return ntohl(((struct tcphdr *)nexthdr)->seq);
samples/bpf/parse_varlen.c
24
struct tcphdr *tcp = data + tp_off;
samples/bpf/tcbpf1_kern.c
32
#define TCP_CSUM_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, check))
samples/bpf/tcbpf1_kern.c
46
#define TCP_DPORT_OFF (ETH_HLEN + sizeof(struct iphdr) + offsetof(struct tcphdr, dest))
samples/bpf/test_lwt_bpf.c
80
#define TCP_CSUM_OFF offsetof(struct tcphdr, check)
samples/bpf/xdp_tx_iptunnel_kern.c
48
struct tcphdr *th;
samples/bpf/xdp_tx_iptunnel_kern.c
53
th = (struct tcphdr *)trans_data;
security/lsm_audit.c
114
struct tcphdr _tcph, *th;
security/lsm_audit.c
57
struct tcphdr *th = tcp_hdr(skb);
security/selinux/hooks.c
4533
struct tcphdr _tcph, *th;
security/selinux/hooks.c
4619
struct tcphdr _tcph, *th;
security/smack/smack_lsm.c
4154
struct tcphdr _tcph, *th;
tools/include/uapi/linux/tcp.h
66
struct tcphdr hdr;
tools/testing/selftests/bpf/network_helpers.c
908
struct tcphdr *tcp;
tools/testing/selftests/bpf/network_helpers.c
922
tcp = (struct tcphdr *)packet;
tools/testing/selftests/bpf/network_helpers.h
49
struct tcphdr tcp;
tools/testing/selftests/bpf/network_helpers.h
57
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/cls_redirect.c
214
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/cls_redirect.c
270
tcp = (struct tcphdr){
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
21
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
28
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
36
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
42
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
54
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
64
struct tcphdr tcp;
tools/testing/selftests/bpf/prog_tests/flow_dissector.c
77
struct tcphdr tcp;
tools/testing/selftests/bpf/progs/bpf_flow.c
172
struct tcphdr *tcp, _tcp;
tools/testing/selftests/bpf/progs/cgroup_skb_sk_lookup_kern.c
31
const struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_skb_sk_lookup_kern.c
41
const struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_skb_sk_lookup_kern.c
70
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
111
static int egress_close_remote(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
135
static int ingress_close_remote(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
156
static int egress_close_local(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
176
static int ingress_close_local(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
208
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
231
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
25
int needed_tcp_pkt(struct __sk_buff *skb, struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
254
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
277
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
300
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
323
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
346
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
369
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
48
static int egress_accept(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
61
static int ingress_accept(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
84
static int egress_connect(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/cgroup_tcp_skb.c
97
static int ingress_connect(struct tcphdr *tcph)
tools/testing/selftests/bpf/progs/fexit_bpf2bpf.c
162
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/skb_pkt_end.c
13
#define ETH_IPV4_TCP_SIZE (14 + sizeof(struct iphdr) + sizeof(struct tcphdr))
tools/testing/selftests/bpf/progs/skb_pkt_end.c
34
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/test_assign_reuse.c
124
return maybe_assign_tcp(skb, (struct tcphdr *)(iph + 1));
tools/testing/selftests/bpf/progs/test_assign_reuse.c
136
return maybe_assign_tcp(skb, (struct tcphdr *)(ip6h + 1));
tools/testing/selftests/bpf/progs/test_assign_reuse.c
20
struct tcphdr tcp;
tools/testing/selftests/bpf/progs/test_assign_reuse.c
81
maybe_assign_tcp(struct __sk_buff *skb, struct tcphdr *th)
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
103
th = (struct tcphdr *)(ip6h + 1);
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
24
struct tcphdr *th, struct tcp_sock *tp,
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
74
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
86
th = (struct tcphdr *)(ip4h + 1);
tools/testing/selftests/bpf/progs/test_cls_redirect.c
650
void *iph, struct tcphdr *tcp)
tools/testing/selftests/bpf/progs/test_cls_redirect.c
820
struct tcphdr _tcp;
tools/testing/selftests/bpf/progs/test_cls_redirect.c
821
struct tcphdr *tcp = buf_assign(pkt, sizeof(_tcp), &_tcp);
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
541
uint64_t tuplen, void *iph, struct tcphdr *tcp)
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
710
struct tcphdr tcp;
tools/testing/selftests/bpf/progs/test_l4lb.c
303
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/test_l4lb_noinline.c
302
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
307
__u8 buffer[sizeof(struct tcphdr)] = {};
tools/testing/selftests/bpf/progs/test_l4lb_noinline_dynptr.c
308
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/test_migrate_reuseport.c
50
struct tcphdr *tcp = NULL;
tools/testing/selftests/bpf/progs/test_migrate_reuseport.c
65
tcp = (struct tcphdr *)((void *)ip + ip->ihl * 4);
tools/testing/selftests/bpf/progs/test_migrate_reuseport.c
77
tcp = (struct tcphdr *)(ipv6 + 1);
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
111
pth = (struct tcphdr *)(&hdr.ip6 + 1);
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
132
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
175
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
36
struct tcphdr th;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
43
struct tcphdr *pth;
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt.c
102
opt_state.byte_offset = sizeof(struct tcphdr) + tcp_offset;
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt.c
88
struct tcphdr *tcp_hdr;
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt.c
93
tcp_hdr = (struct tcphdr *)(data + tcp_offset);
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt.c
97
tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr);
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt_dynptr.c
100
off += sizeof(struct tcphdr);
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt_dynptr.c
77
__u8 buffer[sizeof(struct tcphdr)] = {};
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt_dynptr.c
79
struct tcphdr *tcp_hdr;
tools/testing/selftests/bpf/progs/test_parse_tcp_hdr_opt_dynptr.c
94
tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr);
tools/testing/selftests/bpf/progs/test_pkt_access.c
108
struct tcphdr *tcp = NULL;
tools/testing/selftests/bpf/progs/test_pkt_access.c
122
tcp = (struct tcphdr *)((void *)(iph) + ihl_len);
tools/testing/selftests/bpf/progs/test_pkt_access.c
130
tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len);
tools/testing/selftests/bpf/progs/test_pkt_access.c
89
struct tcphdr *tcp = NULL;
tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c
105
struct tcphdr *th = data;
tools/testing/selftests/bpf/progs/test_tc_dtime.c
146
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_tc_edt.c
65
static inline int handle_tcp(struct __sk_buff *skb, struct tcphdr *tcp)
tools/testing/selftests/bpf/progs/test_tc_edt.c
97
return handle_tcp(skb, (struct tcphdr *)(((void *)iph) + ihl));
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
261
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
370
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/test_tc_tunnel.c
94
struct tcphdr tcph;
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
112
ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
146
ctx->tcp = (struct tcphdr *)(ctx->ipv4 + 1);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
150
ctx->tcp = (struct tcphdr *)(ctx->ipv6 + 1);
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
63
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/test_tcp_custom_syncookie.c
98
ctx->tcp = (struct tcphdr *)(ctx->ipv4 + 1);
tools/testing/selftests/bpf/progs/test_tcp_hdr_options.c
374
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_tcp_hdr_options.c
465
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_tcp_hdr_options.c
531
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c
108
sizeof(struct tcphdr)));
tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c
112
thdr = (struct tcphdr *)(header + offset);
tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c
34
char header[sizeof(struct ipv6hdr) + sizeof(struct tcphdr)];
tools/testing/selftests/bpf/progs/test_tcpbpf_kern.c
36
struct tcphdr *thdr;
tools/testing/selftests/bpf/progs/test_xdp.c
50
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_xdp.c
55
th = (struct tcphdr *)trans_data;
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
21
#define tcphdr_sz sizeof(struct tcphdr)
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
52
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_xdp_dynptr.c
57
th = (struct tcphdr *)trans_data;
tools/testing/selftests/bpf/progs/test_xdp_loop.c
46
struct tcphdr *th;
tools/testing/selftests/bpf/progs/test_xdp_loop.c
51
th = (struct tcphdr *)trans_data;
tools/testing/selftests/bpf/progs/test_xdp_noinline.c
261
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/verifier_netfilter_ctx.c
91
const struct tcphdr *th;
tools/testing/selftests/bpf/progs/xdp_flowtable.c
49
struct tcphdr *tcph = ports;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
274
static __always_inline bool tscookie_init(struct tcphdr *tcp_header,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
371
struct tcphdr *tcp;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
514
static __always_inline void tcp_gen_synack(struct tcphdr *tcp_header,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
672
struct tcphdr *new_tcp_header;
tools/testing/selftests/bpf/progs/xdpwall.c
173
static __always_inline bool tcphdr_only_contains_flag(struct tcphdr *tcp,
tools/testing/selftests/bpf/progs/xdpwall.c
181
struct tcphdr *tcp) {
tools/testing/selftests/bpf/progs/xdpwall.c
193
struct tcphdr *tcp = transport_hdr;
tools/testing/selftests/bpf/test_tcp_hdr_options.h
96
static inline unsigned int tcp_hdrlen(const struct tcphdr *th)
tools/testing/selftests/drivers/net/gro.c
1003
struct tcphdr *tcph;
tools/testing/selftests/drivers/net/gro.c
1028
tcph = (struct tcphdr *)(buffer + tcp_offset + ip_ext_len);
tools/testing/selftests/drivers/net/gro.c
1041
- sizeof(struct tcphdr) - sizeof(struct iphdr);
tools/testing/selftests/drivers/net/gro.c
140
const int dport_off = tcp_offset + offsetof(struct tcphdr, dest);
tools/testing/selftests/drivers/net/gro.c
1475
total_hdr_len = tcp_offset + sizeof(struct tcphdr);
tools/testing/selftests/drivers/net/gro.c
1478
total_hdr_len = tcp_offset + sizeof(struct tcphdr);
tools/testing/selftests/drivers/net/gro.c
244
ph6.payload_len = htons(sizeof(struct tcphdr) + payload_len);
tools/testing/selftests/drivers/net/gro.c
253
ph4.payload_len = htons(sizeof(struct tcphdr) + payload_len);
tools/testing/selftests/drivers/net/gro.c
258
return checksum_fold(buf, sizeof(struct tcphdr) + payload_len, sum);
tools/testing/selftests/drivers/net/gro.c
287
ip6h->payload_len = htons(sizeof(struct tcphdr) + payload_len);
tools/testing/selftests/drivers/net/gro.c
301
iph->tot_len = htons(sizeof(struct tcphdr) +
tools/testing/selftests/drivers/net/gro.c
315
struct tcphdr *tcph = buf;
tools/testing/selftests/drivers/net/gro.c
366
static void set_flags(struct tcphdr *tcph, int payload_len, int psh, int syn,
tools/testing/selftests/drivers/net/gro.c
390
struct tcphdr *tcph;
tools/testing/selftests/drivers/net/gro.c
404
tcph = (struct tcphdr *)(flag_buf[i] + tcp_offset);
tools/testing/selftests/drivers/net/gro.c
471
struct tcphdr *tcphdr = (struct tcphdr *)(buf + tcp_offset);
tools/testing/selftests/drivers/net/gro.c
479
tcphdr->doff = tcphdr->doff + (extlen / 4);
tools/testing/selftests/drivers/net/gro.c
480
tcphdr->check = 0;
tools/testing/selftests/drivers/net/gro.c
481
tcphdr->check = tcp_checksum(tcphdr, PAYLOAD_LEN + extlen);
tools/testing/selftests/drivers/net/gro.c
572
struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
tools/testing/selftests/drivers/net/gro.c
587
struct tcphdr *tcph = (struct tcphdr *)(buf + tcp_offset);
tools/testing/selftests/drivers/net/gro.c
670
sizeof(struct tcphdr) + PAYLOAD_LEN);
tools/testing/selftests/drivers/net/gro.c
692
sizeof(struct tcphdr) + PAYLOAD_LEN);
tools/testing/selftests/drivers/net/gro.c
89
#define TOTAL_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
tools/testing/selftests/drivers/net/gro.c
90
#define MSS (4096 - sizeof(struct tcphdr) - sizeof(struct ipv6hdr))
tools/testing/selftests/drivers/net/gro.c
91
#define MAX_PAYLOAD (IP_MAXPACKET - sizeof(struct tcphdr) - sizeof(struct ipv6hdr))
tools/testing/selftests/drivers/net/gro.c
93
#define MAX_HDR_LEN (ETH_HLEN + sizeof(struct ipv6hdr) + sizeof(struct tcphdr))
tools/testing/selftests/drivers/net/gro.c
943
sizeof(struct tcphdr) + PAYLOAD_LEN);
tools/testing/selftests/drivers/net/hw/iou-zcrx.c
417
sizeof(struct tcphdr) -
tools/testing/selftests/drivers/net/hw/toeplitz.c
340
const int off_dport = offsetof(struct tcphdr, dest); /* same for udp */
tools/testing/selftests/net/io_uring_zerocopy_tx.c
231
sizeof(struct tcphdr) -
tools/testing/selftests/net/lib/csum.c
125
#define MAX_HEADER_LEN (sizeof(struct ipv6hdr) + ENC_HEADER_LEN + sizeof(struct tcphdr))
tools/testing/selftests/net/lib/csum.c
258
struct tcphdr *th = _th;
tools/testing/selftests/net/lib/csum.c
287
sizeof(struct tcphdr) +
tools/testing/selftests/net/lib/csum.c
314
tlen = sizeof(struct tcphdr) + cfg_payload_len;
tools/testing/selftests/net/lib/csum.c
434
vh.csum_offset = __builtin_offsetof(struct tcphdr, check);
tools/testing/selftests/net/lib/csum.c
435
vh.hdr_len = vh.csum_start + sizeof(struct tcphdr);
tools/testing/selftests/net/lib/csum.c
517
const int off_dport = offsetof(struct tcphdr, dest); /* same for udp */
tools/testing/selftests/net/lib/csum.c
618
struct tcphdr *tcph = th;
tools/testing/selftests/net/msg_zerocopy.c
713
sizeof(struct tcphdr) -