Home
last modified time | relevance | path

Searched refs:mac_header (Results 1 – 25 of 31) sorted by relevance

12

/linux/include/net/
H A Dgso.h104 skb->mac_header = mac_offset; in skb_gso_error_unwind()
105 skb->network_header = skb->mac_header + mac_len; in skb_gso_error_unwind()
/linux/include/trace/events/
H A Dnet.h201 __field( int, mac_header )
228 __entry->mac_header = skb_mac_header(skb) - skb->data;
235 TP_printk("dev=%s napi_id=%#x queue_mapping=%u skbaddr=%p vlan_tagged=%d vlan_proto=0x%04x vlan_tci=0x%04x protocol=0x%04x ip_summed=%d hash=0x%08x l4_hash=%d len=%u data_len=%u truesize=%u mac_header_valid=%d mac_header=%d nr_frags=%d gso_size=%d gso_type=%#x net_cookie=%llu",
241 __entry->mac_header_valid, __entry->mac_header,
/linux/net/xfrm/
H A Dxfrm_output.c73 skb->mac_header = skb->network_header + in xfrm4_transport_output()
239 skb->mac_header = skb->network_header + in xfrm4_beet_encap_add()
284 skb->mac_header = skb->network_header + in xfrm4_tunnel_encap_add()
329 skb->mac_header = skb->network_header + in xfrm6_tunnel_encap_add()
368 skb->mac_header = skb->network_header + in xfrm6_beet_encap_add()
H A Dxfrm_iptfs.c2365 skb->mac_header = skb->network_header + offsetof(struct iphdr, protocol); in iptfs_encap_add_ipv4()
2412 skb->mac_header = skb->network_header + offsetof(struct ipv6hdr, nexthdr); in iptfs_encap_add_ipv6()
/linux/drivers/infiniband/hw/hfi1/
H A Dipoib_rx.c18 skb->mac_header = HFI1_IPOIB_PSEUDO_LEN; in copy_ipoib_buf()
/linux/net/mpls/
H A Dmpls_gso.c24 u16 mac_offset = skb->mac_header; in mpls_gso_segment()
/linux/net/netfilter/
H A Dnfnetlink_queue.c613 if (entskb->network_header > entskb->mac_header) in nfqnl_get_bridge_size()
615 entskb->mac_header)); in nfqnl_get_bridge_size()
641 if (entskb->mac_header < entskb->network_header) { in nfqnl_put_bridge()
642 int len = (int)(entskb->network_header - entskb->mac_header); in nfqnl_put_bridge()
1030 __skb_push(skb, skb->network_header - skb->mac_header); in nf_bridge_adjust_skb_data()
1036 __skb_pull(skb, skb->network_header - skb->mac_header); in nf_bridge_adjust_segmented_data()
1496 entry->skb->mac_header; in nfqa_parse_bridge()
H A Dnfnetlink_log.c415 if (skb->network_header > skb->mac_header) in nfulnl_get_bridge_size()
416 size += nla_total_size(skb->network_header - skb->mac_header); in nfulnl_get_bridge_size()
440 if (skb->mac_header < skb->network_header) { in nfulnl_put_bridge()
441 int len = (int)(skb->network_header - skb->mac_header); in nfulnl_put_bridge()
H A Dnf_log_syslog.c805 skb->mac_header != skb->network_header) { in dump_mac_header()
/linux/net/netrom/
H A Dnr_dev.c56 skb->mac_header = skb->network_header; in nr_rx_ip()
/linux/include/linux/
H A Dskbuff.h1083 __u16 mac_header;
2975 skb->inner_mac_header = skb->mac_header; in skb_reset_inner_headers()
2982 return skb->mac_header != (typeof(skb->mac_header))~0U; in skb_mac_header_was_set()
2991 skb->mac_len = skb->network_header - skb->mac_header; in skb_reset_mac_len()
3136 return skb->head + skb->mac_header; in skb_mac_header()
3147 return skb->network_header - skb->mac_header; in skb_mac_header_len()
3152 skb->mac_header = (typeof(skb->mac_header))~0U; in skb_unset_mac_header()
3159 DEBUG_NET_WARN_ON_ONCE(offset != (typeof(skb->mac_header))offset); in skb_reset_mac_header()
3160 skb->mac_header = offset; in skb_reset_mac_header()
3166 skb->mac_header += offset; in skb_set_mac_header()
[all …]
/linux/net/nsh/
H A Dnsh.c82 u16 mac_offset = skb->mac_header; in nsh_gso_segment()
/linux/net/ipv6/
H A Dip6_offload.c
H A Dreassembly.c290 skb->mac_header += sizeof(struct frag_hdr); in ip6_frag_reasm()
/linux/net/ipv4/
H A Dgre_offload.c22 u16 mac_offset = skb->mac_header; in gre_gso_segment()
H A Dudp_offload.c182 u16 mac_offset = skb->mac_header; in __skb_udp_tunnel_segment()
/linux/drivers/net/ipvlan/
H A Dipvlan_core.c558 skb->mac_header = (typeof(skb->mac_header))~0U; in ipvlan_process_outbound()
/linux/net/psp/
H A Dpsp_main.c198 skb->mac_header -= PSP_ENCAP_HLEN; in psp_dev_encapsulate()
/linux/net/ax25/
H A Dax25_in.c123 skb->mac_header = skb->network_header; in ax25_rx_iframe()
/linux/drivers/net/wireless/microchip/wilc1000/
H A Dnetdev.c99 static struct net_device *get_if_handler(struct wilc *wilc, u8 *mac_header) in get_if_handler() argument
103 struct ieee80211_hdr *h = (struct ieee80211_hdr *)mac_header; in get_if_handler()
/linux/drivers/net/arcnet/
H A Darcnet.c675 if (skb->network_header - skb->mac_header != 2) in arcnet_header()
677 skb->network_header - skb->mac_header); in arcnet_header()
/linux/net/ipv6/netfilter/
H A Dnf_conntrack_reasm.c351 skb->mac_header += sizeof(struct frag_hdr); in nf_ct_frag6_reasm()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dscan.c782 params->preq.mac_header.offset = 0; in iwl_mvm_build_scan_probe()
783 params->preq.mac_header.len = cpu_to_le16(24 + 2); in iwl_mvm_build_scan_probe()
932 p_req->mac_header = src_p_req->mac_header; in iwl_mvm_scan_set_legacy_probe_req()
/linux/net/core/
H A Dskbuff.c402 skb->mac_header = (typeof(skb->mac_header))~0U; in __finalize_skb_around()
1345 has_mac ? skb->mac_header : -1, in skb_dump()
1585 CHECK_SKB_FIELD(mac_header); in __copy_skb_header()
2140 skb->mac_header += off; in skb_headers_offset_update()
6299 skb->mac_header += VLAN_HLEN; in skb_reorder_vlan_header()
6403 skb->mac_header += VLAN_HLEN; in __skb_vlan_pop()
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dscan.c395 params->preq.mac_header.offset = 0; in iwl_mld_scan_build_probe_req()
396 params->preq.mac_header.len = cpu_to_le16(24 + 2); in iwl_mld_scan_build_probe_req()

12