/linux/net/netfilter/ |
A 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()
|
A 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/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
A D | tls_rxtx.c | 212 headln = skb_transport_offset(skb) + tcp_hdrlen(skb); in mlx5e_tls_handle_ooo() 228 headln = skb_transport_offset(skb) + tcp_hdrlen(skb); in mlx5e_tls_handle_ooo() 266 datalen = skb->len - (skb_transport_offset(skb) + tcp_hdrlen(skb)); in mlx5e_tls_handle_tx_skb()
|
/linux/net/tls/ |
A D | tls_device_fallback.c | 235 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in fill_sg_in() 313 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in tls_enc_skb() 375 int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in tls_sw_fallback()
|
/linux/tools/testing/selftests/bpf/progs/ |
A 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()
|
A D | test_tcp_hdr_options.c | 392 if (skops->skb_len > tcp_hdrlen(th)) in handle_write_hdr_opt()
|
/linux/include/linux/ |
A D | tcp.h | 34 static inline unsigned int tcp_hdrlen(const struct sk_buff *skb) in tcp_hdrlen() function 495 saved_syn->tcp_hdrlen; in tcp_saved_syn_len()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_tcp_hdr_options.h | 95 static inline unsigned int tcp_hdrlen(const struct tcphdr *th) in tcp_hdrlen() function
|
/linux/net/core/ |
A D | tso.c | 74 int tlen = skb_is_gso_tcp(skb) ? tcp_hdrlen(skb) : sizeof(struct udphdr); in tso_start()
|
/linux/drivers/net/ethernet/google/gve/ |
A D | gve_tx.c | 288 tcp_hdrlen(skb) : skb_headlen(skb); in gve_skb_fifo_bytes_required() 445 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : in gve_tx_add_skb_copy() 513 hlen = is_gso ? l4_hdr_offset + tcp_hdrlen(skb) : skb_headlen(skb); in gve_tx_add_skb_no_copy()
|
A D | gve_tx_dqo.c | 389 header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in gve_prep_tso() 601 const int header_len = skb_checksum_start_offset(skb) + tcp_hdrlen(skb); in gve_can_send_tso()
|
/linux/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_trace.h | 41 skb_transport_offset(skb) + tcp_hdrlen(skb);
|
/linux/include/net/ |
A D | request_sock.h | 47 u32 tcp_hdrlen; member
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | tx.c | 808 tcp_hdrlen(tmp) + tmp->data_len; in iwl_mvm_tx_tso_segment() 852 tcp_hdrlen(skb); in iwl_mvm_tx_tso() 914 tcp_hdrlen(skb) + skb->data_len; in iwl_mvm_tx_tso() 1175 tcp_hdrlen(skb) + skb->data_len; in iwl_mvm_tx_skb_sta()
|
/linux/drivers/net/ethernet/atheros/atlx/ |
A D | atl1.c | 2118 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1_tso() 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() 2209 hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1_tx_map() 2371 tcp_hdrlen(skb)); in atl1_xmit_frame()
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
A D | atl1e_main.c | 1613 tcp_hdrlen(skb); in atl1e_cal_tdp_req() 1648 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1e_tso_csum() 1664 tpd->word3 |= ((tcp_hdrlen(skb) >> 2) & in atl1e_tso_csum() 1716 map_len = hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1e_tx_map()
|
/linux/net/ipv4/ |
A D | tcp_fastopen.c | 189 __skb_pull(skb, tcp_hdrlen(skb)); in tcp_fastopen_add_skb()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_txrx.c | 602 ext->lso_sb = skb_transport_offset(skb) + tcp_hdrlen(skb); in otx2_sqe_add_ext() 909 payload_len = skb->len - (skb_transport_offset(skb) + tcp_hdrlen(skb)); in is_hw_tso_supported()
|
/linux/drivers/net/ethernet/synopsys/ |
A D | dwc-xlgmac-net.c | 84 pkt_info->header_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in xlgmac_prep_tso() 85 pkt_info->tcp_header_len = tcp_hdrlen(skb); in xlgmac_prep_tso()
|
/linux/drivers/net/ethernet/atheros/atl1c/ |
A D | atl1c_main.c | 2075 proto_hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1c_cal_tpd_req() 2110 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1c_tso_csum() 2135 hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb)); in atl1c_tso_csum() 2222 map_len = hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in atl1c_tx_map()
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
A D | chcr_ktls.c | 1015 pktlen = skb_transport_offset(skb) + tcp_hdrlen(skb); in chcr_ktls_write_tcp_options() 1910 skb_offset = skb_transport_offset(nskb) + tcp_hdrlen(nskb); in chcr_ktls_sw_fallback() 1941 skb_offset = skb_transport_offset(skb) + tcp_hdrlen(skb); in chcr_ktls_xmit()
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A D | emac-mac.c | 1267 hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in emac_tso_csum() 1342 mapped_len = skb_transport_offset(skb) + tcp_hdrlen(skb); in emac_tx_fill_tpd()
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
A D | hns_enet.c | 35 (((SKB)->transport_header - (SKB)->mac_header) + tcp_hdrlen(SKB)) 95 l4_len = tcp_hdrlen(skb); in fill_v2_desc_hw() 109 l4_len = tcp_hdrlen(skb); in fill_v2_desc_hw()
|
/linux/drivers/net/wireless/ath/wil6210/ |
A D | txrx.c | 1692 (tcp_hdrlen(skb) & DMA_CFG_DESC_TX_0_L4_LENGTH_MSK); in wil_tx_desc_offload_setup() 1787 tcp_hdrlen(skb); in __wil_tx_vring_tso() 1817 tcp_hdr_len = tcp_hdrlen(skb); in __wil_tx_vring_tso()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
A D | qede_fp.c | 234 cpu_to_le16(((tcp_hdrlen(skb) / 4) & in qede_set_params_for_ipv6_ext() 266 tcp_hdrlen(skb) - skb->data); in qede_get_skb_hlen()
|