Home
last modified time | relevance | path

Searched refs:skb_mac_header (Results 1 – 79 of 79) sorted by relevance

/linux-4.1.27/net/hsr/
Dhsr_forward.c56 hdr = (struct hsr_ethhdr_sp *) skb_mac_header(skb); in is_supervision_frame()
95 src = skb_mac_header(skb_in); in create_stripped_skb()
96 dst = skb_mac_header(skb); in create_stripped_skb()
128 hsr_ethhdr = (struct hsr_ethhdr *) skb_mac_header(skb); in hsr_fill_tag()
158 src = skb_mac_header(skb); in create_tagged_skb()
316 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_fill_frame_info()
348 if (skb_mac_header(skb) != skb->data) { in hsr_forward_skb()
Dhsr_main.h179 hsr_ethhdr = (struct hsr_ethhdr *) skb_mac_header(skb); in hsr_get_skb_sequence_nr()
Dhsr_framereg.c171 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_get_node()
/linux-4.1.27/net/netfilter/
Dxt_mac.c35 if (skb_mac_header(skb) < skb->head) in mac_mt()
37 if (skb_mac_header(skb) + ETH_HLEN > skb->data) in mac_mt()
Dnft_payload.c33 offset = skb_mac_header(skb) - skb->data; in nft_payload_eval()
Dnfnetlink_log.c528 hwhdrp = skb_mac_header(skb); in __build_packet_message()
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_eui64.c27 if (!(skb_mac_header(skb) >= skb->head && in eui64_mt6()
28 skb_mac_header(skb) + ETH_HLEN <= skb->data) && in eui64_mt6()
Dnf_log_ipv6.c315 const unsigned char *p = skb_mac_header(skb); in dump_ipv6_mac_header()
335 (struct iphdr *)skb_mac_header(skb); in dump_ipv6_mac_header()
/linux-4.1.27/include/linux/netfilter_bridge/
Debt_802_3.h9 return (struct ebt_802_3_hdr *)skb_mac_header(skb); in ebt_802_3_hdr()
/linux-4.1.27/include/linux/
Dif_ether.h28 return (struct ethhdr *)skb_mac_header(skb); in eth_hdr()
Dif_vlan.h63 return (struct vlan_ethhdr *)skb_mac_header(skb); in vlan_eth_hdr()
Dskbuff.h1902 static inline unsigned char *skb_mac_header(const struct sk_buff *skb) in skb_mac_header() function
1944 const unsigned char *old_mac = skb_mac_header(skb); in skb_mac_header_rebuild()
1947 memmove(skb_mac_header(skb), old_mac, skb->mac_len); in skb_mac_header_rebuild()
3329 return (skb_mac_header(inner_skb) - inner_skb->head) - in skb_tnl_header_len()
/linux-4.1.27/include/net/
Dmpls.h37 return skb_mac_header(skb) + skb->mac_len; in skb_mpls_header()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_mac.c87 if (skb_mac_header(skb) < skb->head || in hash_mac4_kadt()
88 (skb_mac_header(skb) + ETH_HLEN) > skb->data) in hash_mac4_kadt()
Dip_set_bitmap_ipmac.c220 if (skb_mac_header(skb) < skb->head || in bitmap_ipmac_kadt()
221 (skb_mac_header(skb) + ETH_HLEN) > skb->data) in bitmap_ipmac_kadt()
/linux-4.1.27/drivers/isdn/gigaset/
Dasyncdata.c491 memcpy(skb_mac_header(hdlc_skb), skb_mac_header(skb), skb->mac_len); in HDLC_Encode()
555 memcpy(skb_mac_header(iraw_skb), skb_mac_header(skb), skb->mac_len); in iraw_encode()
Di4l.c93 ack_header = skb_mac_header(skb); in writebuf_from_LL()
118 unsigned char *ack_header = skb_mac_header(skb); in gigaset_skb_sent()
Dcapi.c375 unsigned char *req = skb_mac_header(dskb); in gigaset_skb_sent()
/linux-4.1.27/net/ipv6/
Dmip6.c161 nexthdr = *skb_mac_header(skb); in mip6_destopt_output()
162 *skb_mac_header(skb) = IPPROTO_DSTOPTS; in mip6_destopt_output()
380 nexthdr = *skb_mac_header(skb); in mip6_rthdr_output()
381 *skb_mac_header(skb) = IPPROTO_ROUTING; in mip6_rthdr_output()
Dip6_offload.c88 nhoff = skb_network_header(skb) - skb_mac_header(skb); in ipv6_gso_segment()
119 ipv6h = (struct ipv6hdr *)(skb_mac_header(skb) + nhoff); in ipv6_gso_segment()
Dudp_offload.c103 unfrag_len = (skb_network_header(skb) - skb_mac_header(skb)) + in udp6_ufo_fragment()
Desp6.c223 tail[plen - 1] = *skb_mac_header(skb); in esp6_output()
228 *skb_mac_header(skb) = IPPROTO_ESP; in esp6_output()
Dah6.c389 nexthdr = *skb_mac_header(skb); in ah6_output()
390 *skb_mac_header(skb) = IPPROTO_AH; in ah6_output()
/linux-4.1.27/drivers/net/arcnet/
Dcapmode.c66 pkt = (struct archdr *)skb_mac_header(skb); in rx()
209 ackpkt = (struct archdr *)skb_mac_header(ackskb); in ack_tx()
/linux-4.1.27/net/mpls/
Dmpls_gso.c58 __skb_pull(skb, skb->data - skb_mac_header(skb)); in mpls_gso_segment()
/linux-4.1.27/arch/um/os-Linux/drivers/
Dtuntap_kern.c40 return net_read(fd, skb_mac_header(skb), in tuntap_read()
Dethertap_kern.c43 len = net_recvfrom(fd, skb_mac_header(skb), in etap_read()
/linux-4.1.27/arch/um/drivers/
Ddaemon_kern.c44 return net_recvfrom(fd, skb_mac_header(skb), in daemon_read()
Dslip_kern.c49 return slip_user_read(fd, skb_mac_header(skb), skb->dev->mtu, in slip_read()
Dslirp_kern.c54 return slirp_user_read(fd, skb_mac_header(skb), skb->dev->mtu, in slirp_read()
Dpcap_kern.c36 return pcap_user_read(fd, skb_mac_header(skb), in pcap_read()
Dvde_kern.c44 return vde_user_read(pri->conn, skb_mac_header(skb), in vde_read()
Dumcast_kern.c53 return net_recvfrom(fd, skb_mac_header(skb), in umcast_read()
/linux-4.1.27/net/ieee802154/
Dheader_ops.c274 const u8 *buf = skb_mac_header(skb); in ieee802154_hdr_peek_addrs()
294 const u8 *buf = skb_mac_header(skb); in ieee802154_hdr_peek()
/linux-4.1.27/net/xfrm/
Dxfrm_ipcomp.c193 ipch->nexthdr = *skb_mac_header(skb); in ipcomp_output()
196 *skb_mac_header(skb) = IPPROTO_COMP; in ipcomp_output()
/linux-4.1.27/net/802/
Dhippi.c107 hip = (struct hippi_hdr *)skb_mac_header(skb); in hippi_type_trans()
/linux-4.1.27/net/mac802154/
Dllsec.c663 sg_set_buf(&assoc[0], skb_mac_header(skb), skb->mac_len); in llsec_do_encrypt_auth()
666 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_encrypt_auth()
845 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_unauth()
872 sg_set_buf(&assoc[0], skb_mac_header(skb), skb->mac_len); in llsec_do_decrypt_auth()
875 data = skb_mac_header(skb) + skb->mac_len; in llsec_do_decrypt_auth()
/linux-4.1.27/net/bluetooth/bnep/
Dcore.c382 memcpy(__skb_put(nskb, ETH_ALEN), skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame()
387 memcpy(__skb_put(nskb, ETH_ALEN), skb_mac_header(skb), in bnep_rx_frame()
394 memcpy(__skb_put(nskb, ETH_ALEN * 2), skb_mac_header(skb), in bnep_rx_frame()
/linux-4.1.27/net/ipv4/
Desp4.c196 tail[plen - 1] = *skb_mac_header(skb); in esp_output()
201 *skb_mac_header(skb) = IPPROTO_ESP; in esp_output()
235 *skb_mac_header(skb) = IPPROTO_UDP; in esp_output()
Dah4.c204 ah->nexthdr = *skb_mac_header(skb); in ah_output()
205 *skb_mac_header(skb) = IPPROTO_AH; in ah_output()
Daf_inet.c1232 nhoff = skb_network_header(skb) - skb_mac_header(skb); in inet_gso_segment()
1273 iph = (struct iphdr *)(skb_mac_header(skb) + nhoff); in inet_gso_segment()
Dip_gre.c397 const struct iphdr *iph = (const struct iphdr *) skb_mac_header(skb); in ipgre_header_parse()
Droute.c1535 skb_mac_header(skb), in ip_handle_martian_source()
/linux-4.1.27/net/openvswitch/
Dactions.c136 memmove(skb_mac_header(skb) - MPLS_HLEN, skb_mac_header(skb), in push_mpls()
170 memmove(skb_mac_header(skb) + MPLS_HLEN, skb_mac_header(skb), in pop_mpls()
Dflow.c489 __skb_push(skb, skb->data - skb_mac_header(skb)); in key_extract()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dfweh.h269 event_packet = (struct brcmf_event *)skb_mac_header(skb); in brcmf_fweh_process_skb()
/linux-4.1.27/drivers/block/aoe/
Daoecmd.c327 h = (struct aoe_hdr *) skb_mac_header(skb); in ata_rw_frameinit()
435 h = (struct aoe_hdr *) skb_mac_header(skb); in aoecmd_cfg_pkts()
471 h = (struct aoe_hdr *) skb_mac_header(skb); in resend()
1163 hout = (struct aoe_hdr *) skb_mac_header(f->skb); in ktiocomplete()
1454 h = (struct aoe_hdr *) skb_mac_header(skb); in aoecmd_ata_id()
1600 h = (struct aoe_hdr *) skb_mac_header(skb); in aoecmd_cfg_rsp()
/linux-4.1.27/include/trace/events/
Dnet.h188 __entry->mac_header = skb_mac_header(skb) - skb->data;
/linux-4.1.27/net/8021q/
Dvlan_core.c34 unsigned int offset = skb->data - skb_mac_header(skb); in vlan_do_receive()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_log_ipv4.c302 const unsigned char *p = skb_mac_header(skb); in dump_ipv4_mac_header()
/linux-4.1.27/net/core/
Dfilter.c1220 offset -= skb->data - skb_mac_header(skb); in bpf_skb_store_bytes()
1266 offset -= skb->data - skb_mac_header(skb); in bpf_l3_csum_replace()
1314 offset -= skb->data - skb_mac_header(skb); in bpf_l4_csum_replace()
Ddev.c2421 eth = (struct ethhdr *)skb_mac_header(skb); in skb_network_protocol()
2455 __skb_push(skb, skb->data - skb_mac_header(skb)); in skb_mac_gso_segment()
2791 hdr_len = skb_transport_header(skb) - skb_mac_header(skb); in qdisc_pkt_len_init()
3986 diffs |= compare_ether_header(skb_mac_header(p), in gro_list_prepare()
3987 skb_mac_header(skb)); in gro_list_prepare()
3989 diffs = memcmp(skb_mac_header(p), in gro_list_prepare()
3990 skb_mac_header(skb), in gro_list_prepare()
4005 if (skb_mac_header(skb) == skb_tail_pointer(skb) && in skb_gro_reset_offset()
Dskbuff.c3007 unsigned int doffset = head_skb->data - skb_mac_header(head_skb); in skb_segment()
4268 unsigned int offset = skb->data - skb_mac_header(skb); in __skb_vlan_pop()
4334 unsigned int offset = skb->data - skb_mac_header(skb); in skb_vlan_push()
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunvnet.c1081 offset = skb_mac_header(skb) - skb->data; in vnet_skb_shape()
1155 int hlen = skb_transport_header(skb) - skb_mac_header(skb); in vnet_handle_offloads()
1191 maclen = skb_network_header(skb) - skb_mac_header(skb); in vnet_handle_offloads()
1225 memcpy(skb_mac_header(curr), skb_mac_header(skb), in vnet_handle_offloads()
/linux-4.1.27/net/batman-adv/
Dfragmentation.c263 memmove(skb_out->data - ETH_HLEN, skb_mac_header(skb_out), ETH_HLEN); in batadv_frag_merge_packets()
Dmain.c381 if (unlikely(skb->mac_len != ETH_HLEN || !skb_mac_header(skb))) in batadv_batman_skb_recv()
Dnetwork-coding.c1621 memcpy(&ethhdr_tmp, skb_mac_header(skb), sizeof(ethhdr_tmp)); in batadv_nc_skb_decode_packet()
/linux-4.1.27/net/appletalk/
Dddp.c1516 if (skb_mac_header(skb)[2] == 1) { in ltalk_rcv()
1542 ddp->deh_dnode = skb_mac_header(skb)[0]; /* From physical header */ in ltalk_rcv()
1543 ddp->deh_snode = skb_mac_header(skb)[1]; /* From physical header */ in ltalk_rcv()
/linux-4.1.27/net/phonet/
Daf_phonet.c147 const u8 *media = skb_mac_header(skb); in pn_header_parse()
/linux-4.1.27/net/sched/
Dsch_tbf.c151 unsigned int hdr_len = skb_transport_header(skb) - skb_mac_header(skb); in skb_gso_mac_seglen()
/linux-4.1.27/drivers/staging/ozwpan/
Dozproto.c346 mac_hdr = skb_mac_header(skb); in oz_rx_frame()
/linux-4.1.27/kernel/bpf/
Dcore.c64 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in bpf_internal_load_pointer_neg_helper()
/linux-4.1.27/net/bridge/
Dbr_netfilter.c96 return *((__be16 *)(skb_mac_header(skb) + ETH_HLEN + in pppoe_proto()
/linux-4.1.27/drivers/s390/net/
Dqeth_l2_main.c258 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)skb_mac_header(skb); in qeth_l2_fill_header()
764 skb_mac_header(new_skb), ETH_HLEN); in qeth_l2_hard_start_xmit()
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_main.c584 memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); /* addr2 */ in hostap_80211_header_parse()
/linux-4.1.27/net/packet/
Daf_packet.c1587 skb_push(skb, skb->data - skb_mac_header(skb)); in packet_rcv_spkt()
1788 skb_push(skb, skb->data - skb_mac_header(skb)); in packet_rcv()
1904 skb_push(skb, skb->data - skb_mac_header(skb)); in tpacket_rcv()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c787 skb_mac_header(skb) > FM10K_TUNNEL_HEADER_LENGTH) in fm10k_tx_encap_offload()
/linux-4.1.27/drivers/message/fusion/
Dmptlan.c763 mac = skb_mac_header(skb); in mpt_lan_sdu_send()
/linux-4.1.27/drivers/scsi/fnic/
Dfnic_fcs.c986 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send()
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Dmain.c1197 ip_hdr_offset = skb_network_header(skb) - skb_mac_header(skb); in wl18xx_set_tx_desc_csum()
/linux-4.1.27/drivers/net/phy/
Ddp83640.c794 u8 *msgtype, *data = skb_mac_header(skb); in match()
/linux-4.1.27/drivers/firewire/
Dnet.c520 eth = (struct fwnet_header *)skb_mac_header(skb); in fwnet_finish_incoming_packet()
/linux-4.1.27/net/ax25/
Daf_ax25.c1644 const unsigned char *mac = skb_mac_header(skb); in ax25_recvmsg()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dptp.c1743 skb_mac_header(skb)) + in __efx_rx_skb_attach_timestamp()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dmain.c730 orinoco_spy_gather(dev, skb_mac_header(skb) + ETH_ALEN, in orinoco_stat_gather()
/linux-4.1.27/drivers/net/xen-netback/
Dnetback.c1493 skb_mac_header(skb) + in xenvif_tx_submit()
/linux-4.1.27/drivers/net/ethernet/cadence/
Dmacb.c811 skb_mac_header(skb), 16, true); in gem_rx()
/linux-4.1.27/drivers/net/bonding/
Dbond_main.c1180 skb->data - skb_mac_header(skb)))) { in bond_handle_frame()
/linux-4.1.27/drivers/net/wireless/
Dairo.c2440 memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); in wll_header_parse()