Home
last modified time | relevance | path

Searched refs:tcp_hdrlen (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.1.9/net/netfilter/
Dxt_TCPOPTSTRIP.c38 int tcp_hdrlen; in tcpoptstrip_mangle_packet() local
48 tcp_hdrlen = tcph->doff * 4; in tcpoptstrip_mangle_packet()
49 if (tcp_hdrlen < sizeof(struct tcphdr)) in tcpoptstrip_mangle_packet()
52 if (skb_ensure_writable(skb, tcphoff + tcp_hdrlen)) in tcpoptstrip_mangle_packet()
63 for (i = sizeof(struct tcphdr); i < tcp_hdrlen - 1; i += optl) { in tcpoptstrip_mangle_packet()
66 if (i + optl > tcp_hdrlen) in tcpoptstrip_mangle_packet()
Dxt_TCPMSS.c79 int len, tcp_hdrlen; in tcpmss_mangle_packet() local
97 tcp_hdrlen = tcph->doff * 4; in tcpmss_mangle_packet()
99 if (len < tcp_hdrlen || tcp_hdrlen < sizeof(struct tcphdr)) in tcpmss_mangle_packet()
117 for (i = sizeof(struct tcphdr); i <= tcp_hdrlen - TCPOLEN_MSS; i += optlen(opt, i)) { in tcpmss_mangle_packet()
144 if (len > tcp_hdrlen) in tcpmss_mangle_packet()
148 if (tcp_hdrlen >= 15 * 4) in tcpmss_mangle_packet()
/linux-6.1.9/include/linux/
Dtcp.h34 static inline unsigned int tcp_hdrlen(const struct sk_buff *skb) in tcp_hdrlen() function
61 return skb_transport_offset(skb) + tcp_hdrlen(skb); in skb_tcp_all_headers()
532 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_misc_tcp_hdr_options.c140 if (tcp_hdrlen(th) < skops->skb_len) in check_active_hdr_in()
146 if (th->ack && !th->fin && tcp_hdrlen(th) == skops->skb_len) in check_active_hdr_in()
Dtest_tcp_hdr_options.c392 if (skops->skb_len > tcp_hdrlen(th)) in handle_write_hdr_opt()
/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_tcp_hdr_options.h95 static inline unsigned int tcp_hdrlen(const struct tcphdr *th) in tcp_hdrlen() function
/linux-6.1.9/net/core/
Dtso.c74 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start()
Dfilter.c5473 ret = tcp_hdrlen(syn_skb); in bpf_sock_ops_get_syn()
5477 tcp_hdrlen(syn_skb); in bpf_sock_ops_get_syn()
5483 tcp_hdrlen(syn_skb); in bpf_sock_ops_get_syn()
5505 ret = saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()
5510 saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()
5521 saved_syn->tcp_hdrlen; in bpf_sock_ops_get_syn()
/linux-6.1.9/include/net/
Drequest_sock.h47 u32 tcp_hdrlen; member
/linux-6.1.9/drivers/net/ethernet/google/gve/
Dgve_tx.c288 tcp_hdrlen(skb) : skb_headlen(skb); in gve_skb_fifo_bytes_required()
462 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy()
536 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Dtx.c850 tcp_hdrlen(tmp) + tmp->data_len; in iwl_mvm_tx_tso_segment()
894 tcp_hdrlen(skb); in iwl_mvm_tx_tso()
956 tcp_hdrlen(skb) + skb->data_len; in iwl_mvm_tx_tso()
1229 tcp_hdrlen(skb) + skb->data_len; in iwl_mvm_tx_skb_sta()
/linux-6.1.9/net/ipv4/
Dtcp_fastopen.c189 __skb_pull(skb, tcp_hdrlen(skb)); in tcp_fastopen_add_skb()
Dtcp_input.c172 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_parse_hdr()
190 bpf_skops_init_skb(&sock_ops, skb, tcp_hdrlen(skb)); in bpf_skops_established()
6846 u32 len = skb_network_header_len(skb) + tcp_hdrlen(skb); in tcp_reqsk_record_syn()
6865 saved_syn->tcp_hdrlen = tcp_hdrlen(skb); in tcp_reqsk_record_syn()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tx.c459 tcp_hdrlen(skb)); in mlx5e_sq_xmit_wqe()
1027 tcp_hdrlen(skb), in mlx5i_sq_xmit()
/linux-6.1.9/drivers/net/ethernet/atheros/atlx/
Datl1.c2123 iph->daddr, tcp_hdrlen(skb), in atl1_tso()
2127 ptpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1_tso()
2147 ptpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1_tso()
/linux-6.1.9/net/openvswitch/
Dflow.c218 tcp_len = tcp_hdrlen(skb); in tcphdr_ok()
/linux-6.1.9/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c331 l4hlen = tcp_hdrlen(skb) >> 2; in xgene_enet_work_msg()
335 hdr_len = ethhdr + ip_hdrlen(skb) + tcp_hdrlen(skb); in xgene_enet_work_msg()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c93 l4_len = tcp_hdrlen(skb); in fill_v2_desc_hw()
107 l4_len = tcp_hdrlen(skb); in fill_v2_desc_hw()
/linux-6.1.9/drivers/net/wireless/ath/wil6210/
Dtxrx.c1692 (tcp_hdrlen(skb) & DMA_CFG_DESC_TX_0_L4_LENGTH_MSK); in wil_tx_desc_offload_setup()
1815 tcp_hdr_len = tcp_hdrlen(skb); in __wil_tx_vring_tso()
Dtxrx_edma.c1453 tcp_hdr_len = tcp_hdrlen(skb); in __wil_tx_ring_tso_edma()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c1040 tcp_hdrlen(skb)); in mlx4_en_xmit()
/linux-6.1.9/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-net.c85 pkt_info->tcp_header_len = tcp_hdrlen(skb); in xlgmac_prep_tso()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c1317 snap_ip_tcp_hdrlen = 8 + ip_hdrlen + tcp_hdrlen(skb); in iwl_fill_data_tbs_amsdu()
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c235 cpu_to_le16(((tcp_hdrlen(skb) / 4) & in qede_set_params_for_ipv6_ext()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c695 dx_buff->len_l4 = tcp_hdrlen(skb); in aq_nic_map_skb()

12