Home
last modified time | relevance | path

Searched refs:skb_transport_offset (Results 1 – 25 of 108) sorted by relevance

12345

/openbmc/linux/net/ipv6/
H A Dmcast_snoop.c66 unsigned int len = skb_transport_offset(skb); in ipv6_mc_check_mld_reportv2()
89 len = skb_transport_offset(skb) + sizeof(struct mld2_query); in ipv6_mc_check_mld_query()
108 unsigned int len = skb_transport_offset(skb) + sizeof(struct mld_msg); in ipv6_mc_check_mld_msg()
136 unsigned int len = skb_transport_offset(skb) + sizeof(struct icmp6hdr); in ipv6_mc_check_icmpv6()
H A Dexthdrs.c305 if (!pskb_may_pull(skb, skb_transport_offset(skb) + 8) || in ipv6_destopt_rcv()
306 !pskb_may_pull(skb, (skb_transport_offset(skb) + in ipv6_destopt_rcv()
662 if (!pskb_may_pull(skb, skb_transport_offset(skb) + 8) || in ipv6_rthdr_rcv()
663 !pskb_may_pull(skb, (skb_transport_offset(skb) + in ipv6_rthdr_rcv()
H A Dfou6.c92 int transport_offset = skb_transport_offset(skb); in gue6_err()
H A Desp6.c270 unsigned int offset = skb_transport_offset(skb); in esp_output_encap_csum()
336 esp_restore_header(skb, skb_transport_offset(skb) + extra->esphoff - in esp_output_restore_header()
388 len = skb->len + esp->tailen - skb_transport_offset(skb); in esp6_output_udp_encap()
419 len = skb->len + esp->tailen - skb_transport_offset(skb); in esp6_output_tcp_encap()
H A Dudp.c529 transport_offset = skb_transport_offset(skb); in __udp6_lib_err_encap()
796 __skb_pull(skb, skb_transport_offset(skb)); in udpv6_queue_rcv_skb()
1100 if (!pskb_may_pull(skb, skb_transport_offset(skb) + in udp_v6_early_demux()
1203 offset = skb_transport_offset(skb); in udp6_hwcsum_outgoing()
1232 int offset = skb_transport_offset(skb); in udp_v6_send_skb()
H A Draw.c101 hdr = skb_header_pointer(skb, skb_transport_offset(skb), in icmpv6_filter()
549 len = skb->len - skb_transport_offset(skb); in rawv6_push_pending_frames()
561 offset += skb_transport_offset(skb); in rawv6_push_pending_frames()
/openbmc/linux/net/core/
H A Dtso.c11 int hdr_len = skb_transport_offset(skb) + tso->tlen; in tso_build_hdr()
26 hdr += skb_transport_offset(skb); in tso_build_hdr()
67 int hdr_len = skb_transport_offset(skb) + tlen; in tso_start()
/openbmc/linux/include/linux/
H A Dvirtio_net.h106 if (skb_transport_offset(skb) < nh_min_len) in virtio_net_hdr_to_skb()
109 nh_min_len = skb_transport_offset(skb); in virtio_net_hdr_to_skb()
H A Digmp.h105 if (skb_transport_offset(skb) + ip_transport_len(skb) < len) in ip_mc_may_pull()
/openbmc/linux/include/net/
H A Dudplite.h69 const int off = skb_transport_offset(skb); in udplite_csum()
/openbmc/linux/net/openvswitch/
H A Dflow.c215 int th_ofs = skb_transport_offset(skb); in tcphdr_ok()
231 return pskb_may_pull(skb, skb_transport_offset(skb) + in udphdr_ok()
237 return pskb_may_pull(skb, skb_transport_offset(skb) + in sctphdr_ok()
243 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmphdr_ok()
436 return pskb_may_pull(skb, skb_transport_offset(skb) + in icmp6hdr_ok()
568 int icmp_len = skb->len - skb_transport_offset(skb); in parse_icmpv6()
H A Dactions.c349 int transport_len = skb->len - skb_transport_offset(skb); in update_ip_l4_checksum()
385 int transport_len = skb->len - skb_transport_offset(skb); in update_ipv6_checksum()
680 err = skb_ensure_writable(skb, skb_transport_offset(skb) + in set_udp()
723 err = skb_ensure_writable(skb, skb_transport_offset(skb) + in set_tcp()
748 unsigned int sctphoff = skb_transport_offset(skb); in set_sctp()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c216 if (!pskb_may_pull(skb, skb_transport_offset(skb) + in iwl_mei_rx_filter_ipv4()
226 if (!pskb_may_pull(skb, skb_transport_offset(skb) + sizeof(*icmp))) in iwl_mei_rx_filter_ipv4()
/openbmc/linux/net/sctp/
H A Doffload.c36 return sctp_compute_cksum(skb, skb_transport_offset(skb)); in sctp_gso_make_checksum()
H A Dinput.c113 skb_transport_offset(skb)) in sctp_rcv()
125 __skb_pull(skb, skb_transport_offset(skb)); in sctp_rcv()
510 chunkhdr = skb_header_pointer(skb, skb_transport_offset(skb) + in sctp_err_lookup()
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
H A Dchcr_ipsec.c629 (skb_transport_offset(skb) + in ch_ipsec_crypto_wreq()
639 aadstart = sa_entry->esn ? 1 : (skb_transport_offset(skb) + 1); in ch_ipsec_crypto_wreq()
641 (skb_transport_offset(skb) + in ch_ipsec_crypto_wreq()
643 ciphstart = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr) + in ch_ipsec_crypto_wreq()
/openbmc/linux/net/xfrm/
H A Dxfrm_output.c70 skb_set_inner_transport_header(skb, skb_transport_offset(skb)); in xfrm4_transport_output()
171 skb_set_inner_transport_header(skb, skb_transport_offset(skb)); in xfrm6_transport_output()
281 skb_set_inner_transport_header(skb, skb_transport_offset(skb)); in xfrm4_tunnel_encap_add()
326 skb_set_inner_transport_header(skb, skb_transport_offset(skb)); in xfrm6_tunnel_encap_add()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c171 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv_esn()
183 iv_offset = skb_transport_offset(skb) + sizeof(struct ip_esp_hdr); in mlx5e_ipsec_set_iv()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def100_tx.c213 outer_l4_offset = skb_transport_offset(skb); in ef100_make_tso_desc()
221 tcp_offset = skb_transport_offset(skb); in ef100_make_tso_desc()
/openbmc/linux/net/ipv6/netfilter/
H A Dip6t_NPT.c90 skb_transport_offset(skb) + sizeof(struct icmp6hdr), in icmpv6_bounced_ipv6hdr()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c567 *hdr_len += skb_transport_offset(skb) + in ixgbe_fso()
585 vlan_macip_lens = skb_transport_offset(skb) + in ixgbe_fso()
587 vlan_macip_lens |= (skb_transport_offset(skb) - 4) in ixgbe_fso()
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_tx.c192 ol4_ofst = skb_transport_offset(skb); in write_pkt_desc()
235 skb_transport_offset(skb), 0, 0); in write_pkt_desc()
252 skb_transport_offset(skb), 0, 0); in write_pkt_desc()
/openbmc/linux/net/batman-adv/
H A Ddistributed-arp-table.c1494 offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_check_dhcp()
1526 unsigned int offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_get_dhcp_message_type()
1574 unsigned int offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_dhcp_get_yiaddr()
1601 unsigned int offset = skb_transport_offset(skb) + sizeof(struct udphdr); in batadv_dat_get_dhcp_chaddr()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_txrx.c689 ext->lso_sb = skb_transport_offset(skb) + in otx2_sqe_add_ext()
775 sqe_hdr->ol4ptr = skb_transport_offset(skb); in otx2_sqe_add_hdr()
1061 *offset = nix_offload_hlen + skb_transport_offset(skb) + in otx2_ptp_is_sync()
1112 udphoff = skb_transport_offset(skb); in otx2_set_txtstamp()
/openbmc/linux/net/ipv4/
H A Desp4.c300 esp_restore_header(skb, skb_transport_offset(skb) + extra->esphoff - in esp_output_restore_header()
352 len = skb->len + esp->tailen - skb_transport_offset(skb); in esp_output_udp_encap()
383 len = skb->len + esp->tailen - skb_transport_offset(skb); in esp_output_tcp_encap()

12345