| /linux/include/net/ |
| H A D | mac802154.h | 242 skb_mac_header(skb)) < IEEE802154_FC_LEN)) in ieee802154_get_fc_from_skb() 245 memcpy(&fc, skb_mac_header(skb), IEEE802154_FC_LEN); in ieee802154_get_fc_from_skb() 265 dst_pan = skb_mac_header(skb) + in ieee802154_skb_dst_pan() 304 src_pan = skb_mac_header(skb) + in ieee802154_skb_src_pan() 309 src_pan = skb_mac_header(skb) + in ieee802154_skb_src_pan() 316 src_pan = skb_mac_header(skb) + in ieee802154_skb_src_pan()
|
| H A D | gso.h | 28 return (skb_mac_header(inner_skb) - inner_skb->head) - in skb_tnl_header_len()
|
| /linux/net/ipv6/ |
| H A D | mip6.c | 149 nexthdr = *skb_mac_header(skb); in mip6_destopt_output() 150 *skb_mac_header(skb) = IPPROTO_DSTOPTS; in mip6_destopt_output() 315 nexthdr = *skb_mac_header(skb); in mip6_rthdr_output() 316 *skb_mac_header(skb) = IPPROTO_ROUTING; in mip6_rthdr_output()
|
| H A D | esp6.c | 227 if (*skb_mac_header(skb) == IPPROTO_UDP) { in esp_output_encap_csum() 269 skb_push(skb, skb->data - skb_mac_header(skb)); in esp_output_done() 361 *skb_mac_header(skb) = IPPROTO_UDP; in esp6_output_udp_encap() 659 esp.proto = *skb_mac_header(skb); in esp6_output() 660 *skb_mac_header(skb) = IPPROTO_ESP; in esp6_output()
|
| /linux/net/core/ |
| H A D | net_test.c | 15 memcpy(skb_mac_header(skb), hdr, sizeof(hdr)); in __init_skb() 245 KUNIT_ASSERT_PTR_EQ(test, skb_mac_header(cur), cur->data); in gso_test_func() 249 KUNIT_ASSERT_EQ(test, memcmp(skb_mac_header(cur), hdr, sizeof(hdr)), 0); in gso_test_func()
|
| H A D | gso.c | 59 __skb_push(skb, skb->data - skb_mac_header(skb)); in skb_mac_gso_segment() 197 unsigned int hdr_len = skb_transport_header(skb) - skb_mac_header(skb); in skb_gso_mac_seglen()
|
| H A D | ptp_classifier.c | 112 u8 *ptr = skb_mac_header(skb); in ptp_parse_header()
|
| H A D | gro.c | 362 diffs |= compare_ether_header(skb_mac_header(p), in gro_list_prepare() 363 skb_mac_header(skb)); in gro_list_prepare() 365 diffs = memcmp(skb_mac_header(p), in gro_list_prepare() 366 skb_mac_header(skb), in gro_list_prepare()
|
| H A D | drop_monitor.c | 699 if (skb->data > skb_mac_header(skb)) in net_dm_packet_report() 700 skb_push(skb, skb->data - skb_mac_header(skb)); in net_dm_packet_report() 702 skb_pull(skb, skb_mac_header(skb) - skb->data); in net_dm_packet_report() 915 if (skb->data > skb_mac_header(skb)) in net_dm_hw_packet_report() 916 skb_push(skb, skb->data - skb_mac_header(skb)); in net_dm_hw_packet_report() 918 skb_pull(skb, skb_mac_header(skb) - skb->data); in net_dm_hw_packet_report()
|
| /linux/include/linux/ |
| H A D | if_ether.h | 27 return (struct ethhdr *)skb_mac_header(skb); in eth_hdr()
|
| /linux/drivers/net/arcnet/ |
| H A D | capmode.c | 67 pkt = (struct archdr *)skb_mac_header(skb); in rx() 207 ackpkt = (struct archdr *)skb_mac_header(ackskb); in ack_tx()
|
| /linux/net/mac802154/ |
| H A D | llsec.c | 631 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_unauth() 675 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_auth() 680 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen + authlen); in llsec_do_encrypt_auth() 850 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_unauth() 884 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_auth() 887 sg_init_one(&sg, skb_mac_header(skb), assoclen + datalen); in llsec_do_decrypt_auth()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mei/ |
| H A D | net.c | 282 const struct ethhdr *ethhdr = (void *)skb_mac_header(skb); in iwl_mei_rx_pass_to_csme() 350 skb_push(skb, skb->data - skb_mac_header(skb)); in iwl_mei_rx_filter()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_802_3.c | 19 return (struct ebt_802_3_hdr *)skb_mac_header(skb); in ebt_802_3_hdr()
|
| /linux/net/dsa/ |
| H A D | tag_ar9331.c | 57 hdr = le16_to_cpu(*(__le16 *)skb_mac_header(skb)); in ar9331_tag_rcv()
|
| /linux/drivers/scsi/qedf/ |
| H A D | qedf_fip.c | 137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send() 186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv()
|
| /linux/net/ieee802154/ |
| H A D | header_ops.c | 326 const u8 *buf = skb_mac_header(skb); in ieee802154_hdr_peek_addrs() 346 const u8 *buf = skb_mac_header(skb); in ieee802154_hdr_peek()
|
| /linux/net/netfilter/ |
| H A D | nf_tables_trace.c | 53 off = skb_mac_header(skb) - skb->data; in nf_trace_fill_ll_header() 167 off = skb_mac_header(skb) - skb->data; in nf_trace_fill_pkt_info()
|
| H A D | nf_flow_table_inet.c | 23 veth = (struct vlan_ethhdr *)skb_mac_header(skb); in nf_flow_offload_inet_hook()
|
| /linux/net/xfrm/ |
| H A D | xfrm_ipcomp.c | 251 ipch->nexthdr = *skb_mac_header(skb); in ipcomp_output_done2() 254 *skb_mac_header(skb) = IPPROTO_COMP; in ipcomp_output_done2()
|
| H A D | xfrm_device.c | 192 skb_push(skb, skb->data - skb_mac_header(skb)); in validate_xmit_xfrm() 223 skb_push(skb2, skb2->data - skb_mac_header(skb2)); in validate_xmit_xfrm()
|
| /linux/net/bluetooth/bnep/ |
| H A D | core.c | 389 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 394 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 400 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN * 2); in bnep_rx_frame()
|
| /linux/include/linux/dsa/ |
| H A D | ocelot.h | 308 hdr = (struct vlan_ethhdr *)skb_mac_header(skb); in ocelot_xmit_get_vlan_info()
|
| /linux/drivers/block/aoe/ |
| H A D | aoecmd.c | 326 h = (struct aoe_hdr *) skb_mac_header(skb); in ata_rw_frameinit() 439 h = (struct aoe_hdr *) skb_mac_header(skb); in aoecmd_cfg_pkts() 472 h = (struct aoe_hdr *) skb_mac_header(skb); in resend() 1103 hout = (struct aoe_hdr *) skb_mac_header(f->skb); in ktiocomplete() 1395 h = (struct aoe_hdr *) skb_mac_header(skb); in aoecmd_ata_id() 1542 h = (struct aoe_hdr *) skb_mac_header(skb); in aoecmd_cfg_rsp()
|
| /linux/net/ipv4/ |
| H A D | esp4.c | 233 skb_push(skb, skb->data - skb_mac_header(skb)); in esp_output_done() 331 *skb_mac_header(skb) = IPPROTO_UDP; in esp_output_udp_encap() 627 esp.proto = *skb_mac_header(skb); in esp_output() 628 *skb_mac_header(skb) = IPPROTO_ESP; in esp_output()
|