/linux-6.1.9/net/netfilter/ |
D | xt_TCPOPTSTRIP.c | 38 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()
|
D | xt_TCPMSS.c | 79 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/ |
D | tcp.h | 34 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/ |
D | test_misc_tcp_hdr_options.c | 140 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()
|
D | test_tcp_hdr_options.c | 392 if (skops->skb_len > tcp_hdrlen(th)) in handle_write_hdr_opt()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | test_tcp_hdr_options.h | 95 static inline unsigned int tcp_hdrlen(const struct tcphdr *th) in tcp_hdrlen() function
|
/linux-6.1.9/net/core/ |
D | tso.c | 74 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start()
|
D | filter.c | 5473 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/ |
D | request_sock.h | 47 u32 tcp_hdrlen; member
|
/linux-6.1.9/drivers/net/ethernet/google/gve/ |
D | gve_tx.c | 288 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/ |
D | tx.c | 850 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/ |
D | tcp_fastopen.c | 189 __skb_pull(skb, tcp_hdrlen(skb)); in tcp_fastopen_add_skb()
|
D | tcp_input.c | 172 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/ |
D | en_tx.c | 459 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/ |
D | atl1.c | 2123 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/ |
D | flow.c | 218 tcp_len = tcp_hdrlen(skb); in tcphdr_ok()
|
/linux-6.1.9/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_main.c | 331 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/ |
D | hns_enet.c | 93 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/ |
D | txrx.c | 1692 (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()
|
D | txrx_edma.c | 1453 tcp_hdr_len = tcp_hdrlen(skb); in __wil_tx_ring_tso_edma()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | en_tx.c | 1040 tcp_hdrlen(skb)); in mlx4_en_xmit()
|
/linux-6.1.9/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-net.c | 85 pkt_info->tcp_header_len = tcp_hdrlen(skb); in xlgmac_prep_tso()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | tx.c | 1317 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/ |
D | qede_fp.c | 235 cpu_to_le16(((tcp_hdrlen(skb) / 4) & in qede_set_params_for_ipv6_ext()
|
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_nic.c | 695 dx_buff->len_l4 = tcp_hdrlen(skb); in aq_nic_map_skb()
|