Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 137 of 137) sorted by relevance

/linux-4.1.27/net/batman-adv/
Drouting.c153 struct ethhdr *ethhdr; in batadv_check_management_packet() local
159 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
162 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
166 if (is_broadcast_ether_addr(ethhdr->h_source)) in batadv_check_management_packet()
301 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local
310 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
313 if (is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
317 if (is_broadcast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet()
321 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
343 ethhdr->h_dest); in batadv_recv_icmp_packet()
[all …]
Dmulticast.c270 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) in batadv_mcast_forw_mode_check_ipv4()
308 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6()
344 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local
352 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check()
374 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument
376 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count()
397 struct ethhdr *ethhdr) in batadv_mcast_forw_tt_node_get() argument
399 return batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_mcast_forw_tt_node_get()
400 ethhdr->h_dest, BATADV_NO_FLAGS); in batadv_mcast_forw_tt_node_get()
468 struct ethhdr *ethhdr) in batadv_mcast_forw_ip_node_get() argument
[all …]
Dbridge_loop_avoidance.c258 struct ethhdr *ethhdr; in batadv_bla_send_claim() local
294 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim()
295 hw_src = (uint8_t *)ethhdr + ETH_HLEN + sizeof(struct arphdr); in batadv_bla_send_claim()
303 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim()
324 ethhdr->h_source, BATADV_PRINT_VID(vid)); in batadv_bla_send_claim()
332 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim()
335 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim()
694 struct ethhdr *ethhdr, unsigned short vid) in batadv_handle_request() argument
697 if (!batadv_compare_eth(backbone_addr, ethhdr->h_dest)) in batadv_handle_request()
703 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request()
[all …]
Dsend.c42 struct ethhdr *ethhdr; in batadv_send_skb_packet() local
62 ethhdr = eth_hdr(skb); in batadv_send_skb_packet()
63 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet()
64 ether_addr_copy(ethhdr->h_dest, dst_addr); in batadv_send_skb_packet()
65 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet()
258 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local
286 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast()
294 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast()
331 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local
335 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic()
[all …]
Dnetwork-coding.c1011 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument
1070 second_source = ethhdr->h_source; in batadv_nc_code_packets()
1079 first_source = ethhdr->h_source; in batadv_nc_code_packets()
1341 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local
1349 ethhdr = eth_hdr(skb); in batadv_nc_skb_store_before_coding()
1350 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding()
1351 ether_addr_copy(ethhdr->h_dest, eth_dst_new); in batadv_nc_skb_store_before_coding()
1380 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument
1393 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search()
1411 if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, in batadv_nc_skb_dst_search()
[all …]
Dsoft-interface.c154 struct ethhdr *ethhdr; in batadv_interface_tx() local
182 ethhdr = eth_hdr(skb); in batadv_interface_tx()
184 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_tx()
204 ethhdr = eth_hdr(skb); in batadv_interface_tx()
207 if (!is_multicast_ether_addr(ethhdr->h_source)) { in batadv_interface_tx()
208 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx()
221 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx()
224 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx()
228 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
240 ethhdr = eth_hdr(skb); in batadv_interface_tx()
[all …]
Dbat_iv_ogm.c802 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument
833 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward()
971 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument
994 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update()
1026 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update()
1031 ethhdr->h_source, in batadv_iv_ogm_orig_update()
1272 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument
1325 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos()
1390 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local
1401 ethhdr = eth_hdr(skb_priv); in batadv_iv_ogm_process_per_outif()
[all …]
Dgateway_client.c676 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local
689 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
690 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
737 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
738 if (ntohs(ethhdr->h_proto) == ETH_P_8021Q) in batadv_gw_dhcp_recipient_get()
739 ethhdr = (struct ethhdr *)(skb->data + VLAN_HLEN); in batadv_gw_dhcp_recipient_get()
802 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local
809 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range()
810 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
Dmain.c307 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local
315 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), &ethhdr_tmp); in batadv_skb_set_priority()
316 if (!ethhdr) in batadv_skb_set_priority()
319 switch (ethhdr->h_proto) { in batadv_skb_set_priority()
329 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
336 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
1184 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local
1188 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
Ddistributed-arp-table.c806 struct ethhdr *ethhdr; in batadv_arp_get_type() local
815 ethhdr = (struct ethhdr *)(skb->data + hdr_size); in batadv_arp_get_type()
817 if (ethhdr->h_proto != htons(ETH_P_ARP)) in batadv_arp_get_type()
/linux-4.1.27/drivers/net/usb/
Dlg-vl600.c114 struct ethhdr *ethhdr; in vl600_rx_fixup() local
193 ethhdr = (struct ethhdr *) skb->data; in vl600_rx_fixup()
194 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup()
197 memcpy(ethhdr->h_source, in vl600_rx_fixup()
198 &buf->data[sizeof(*ethhdr) + 0x8], in vl600_rx_fixup()
200 memcpy(ethhdr->h_dest, in vl600_rx_fixup()
201 &buf->data[sizeof(*ethhdr) + 0x12], in vl600_rx_fixup()
204 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup()
205 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup()
212 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup()
[all …]
Dsierra_net.c665 struct ethhdr *eth; in sierra_net_bind()
704 eth = (struct ethhdr *)priv->ethr_hdr_tmpl; in sierra_net_bind()
Dnet1080.c75 + sizeof (struct ethhdr) \
Dusbnet.c331 skb->len + sizeof (struct ethhdr), skb->protocol); in usbnet_skb_return()
/linux-4.1.27/net/ethernet/
Deth.c82 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); in eth_header()
125 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen()
155 const struct ethhdr *eth; in eth_type_trans()
208 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse()
224 struct ethhdr *eth; in eth_header_cache()
227 eth = (struct ethhdr *) in eth_header_cache()
253 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update()
398 struct ethhdr *eh, *eh2; in eth_gro_receive()
419 eh2 = (struct ethhdr *)(p->data + off_eth); in eth_gro_receive()
450 struct ethhdr *eh = (struct ethhdr *)(skb->data + nhoff); in eth_gro_complete()
[all …]
/linux-4.1.27/net/hsr/
Dhsr_forward.c58 if (!ether_addr_equal(hdr->ethhdr.h_dest, in is_supervision_frame()
133 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
134 hsr_ethhdr->ethhdr.h_proto = htons(ETH_P_PRP); in hsr_fill_tag()
307 struct ethhdr *ethhdr; in hsr_fill_frame_info() local
316 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_fill_frame_info()
318 if (ethhdr->h_proto == htons(ETH_P_8021Q)) { in hsr_fill_frame_info()
323 if (ethhdr->h_proto == htons(ETH_P_PRP)) { in hsr_fill_frame_info()
Dhsr_main.h95 struct ethhdr ethhdr; member
135 struct ethhdr ethhdr; member
Dhsr_framereg.c165 struct ethhdr *ethhdr; in hsr_get_node() local
171 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_get_node()
174 if (ether_addr_equal(node->MacAddressA, ethhdr->h_source)) in hsr_get_node()
176 if (ether_addr_equal(node->MacAddressB, ethhdr->h_source)) in hsr_get_node()
183 if (ethhdr->h_proto == htons(ETH_P_PRP)) { in hsr_get_node()
193 return hsr_add_node(node_db, ethhdr->h_source, seq_out); in hsr_get_node()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsta_rx.c39 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp()
43 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp()
46 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
54 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
55 icmpv6 = (void *)(skb->data + sizeof(struct ethhdr) + in mwifiex_discard_gratuitous_arp()
90 struct ethhdr *eth; in mwifiex_process_rx_packet()
116 eth = (struct ethhdr *) in mwifiex_process_rx_packet()
Dtdls.c842 if (len < (sizeof(struct ethhdr) + 3)) in mwifiex_process_tdls_action_frame()
844 if (*(buf + sizeof(struct ethhdr)) != WLAN_TDLS_SNAP_RFTYPE) in mwifiex_process_tdls_action_frame()
846 if (*(buf + sizeof(struct ethhdr) + 1) != WLAN_CATEGORY_TDLS) in mwifiex_process_tdls_action_frame()
850 action = *(buf + sizeof(struct ethhdr) + 2); in mwifiex_process_tdls_action_frame()
856 if (len < (sizeof(struct ethhdr) + TDLS_REQ_FIX_LEN)) in mwifiex_process_tdls_action_frame()
859 pos = buf + sizeof(struct ethhdr) + 4; in mwifiex_process_tdls_action_frame()
862 ie_len = len - sizeof(struct ethhdr) - TDLS_REQ_FIX_LEN; in mwifiex_process_tdls_action_frame()
867 if (len < (sizeof(struct ethhdr) + TDLS_RESP_FIX_LEN)) in mwifiex_process_tdls_action_frame()
870 pos = buf + sizeof(struct ethhdr) + 6; in mwifiex_process_tdls_action_frame()
872 ie_len = len - sizeof(struct ethhdr) - TDLS_RESP_FIX_LEN; in mwifiex_process_tdls_action_frame()
[all …]
Duap_txrx.c99 struct ethhdr *p_ethhdr; in mwifiex_uap_queue_bridged_pkt()
129 p_ethhdr = (struct ethhdr *) in mwifiex_uap_queue_bridged_pkt()
D11n_aggr.c72 snap.snap_type = ((struct ethhdr *)skb_src->data)->h_proto; in mwifiex_11n_form_amsdu_pkt()
Dwmm.c680 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_wmm_add_buf_txqueue()
Dfw.h37 struct ethhdr eth803_hdr;
42 struct ethhdr eth803_hdr;
/linux-4.1.27/include/linux/
Dif_ether.h26 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) in eth_hdr()
28 return (struct ethhdr *)skb_mac_header(skb); in eth_hdr()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dcommon.h49 sizeof(struct ethhdr) + \
55 sizeof(struct ethhdr) + \
Dtxrx.c46 struct ethhdr *eth_hdr; in ath6kl_ibss_map_epid()
52 eth_hdr = (struct ethhdr *) (datap + sizeof(struct wmi_data_hdr)); in ath6kl_ibss_map_epid()
109 struct ethhdr *datap = (struct ethhdr *) skb->data; in ath6kl_process_uapsdq()
212 struct ethhdr *datap = (struct ethhdr *) skb->data; in ath6kl_powersave_ap()
999 struct ethhdr *hdr; in aggr_slice_amsdu()
1003 mac_hdr_len = sizeof(struct ethhdr); in aggr_slice_amsdu()
1008 hdr = (struct ethhdr *) framep; in aggr_slice_amsdu()
1321 struct ethhdr *datap = NULL; in ath6kl_rx()
1384 min_hdr_len = sizeof(struct ethhdr) + sizeof(struct wmi_data_hdr) + in ath6kl_rx()
1427 datap = (struct ethhdr *) (skb->data + offset); in ath6kl_rx()
[all …]
Dwmi.c163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3()
176 eth_hdr = (struct ethhdr *) skb->data; in ath6kl_wmi_dix_2_dot3()
325 hdr_size = sizeof(struct ethhdr); in ath6kl_wmi_implicit_create_pstream()
392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix()
/linux-4.1.27/drivers/staging/gdm724x/
Dgdm_lte.c105 struct ethhdr eth; in gdm_lte_emulate_arp()
122 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp()
127 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp()
171 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp()
225 struct ethhdr eth; in gdm_lte_emulate_ndp()
247 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp()
254 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_ndp()
337 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp()
350 struct ethhdr *eth; in gdm_lte_tx_nic_type()
362 eth = (struct ethhdr *)skb->data; in gdm_lte_tx_nic_type()
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_selftest.c52 struct ethhdr *ethh; in mlx4_en_test_loopback_xmit()
66 ethh = (struct ethhdr *)skb_put(skb, sizeof(struct ethhdr)); in mlx4_en_test_loopback_xmit()
Den_rx.c730 void *hdr = (u8 *)va + sizeof(struct ethhdr); in check_csum()
809 struct ethhdr *ethh; in mlx4_en_process_rx_cq()
817 ethh = (struct ethhdr *)(page_address(frags[0].page) + in mlx4_en_process_rx_cq()
Den_tx.c864 struct ethhdr *ethh; in mlx4_en_xmit()
869 ethh = (struct ethhdr *)skb->data; in mlx4_en_xmit()
Den_ethtool.c1214 struct ethhdr *eth_mask; in mlx4_en_validate_flow()
1440 struct ethhdr *eth_spec; in mlx4_en_ethtool_to_net_trans_rule()
/linux-4.1.27/arch/powerpc/platforms/ps3/
Dgelic_udbg.c59 struct ethhdr { struct
90 static __iomem struct ethhdr *h_eth;
174 h_eth = (struct ethhdr *)dbg.pkt; in gelic_debug_init()
179 header_size = sizeof(struct ethhdr); in gelic_debug_init()
/linux-4.1.27/drivers/net/ipvlan/
Dipvlan_core.c195 struct ethhdr *eth = eth_hdr(skb); in ipvlan_multicast_frame()
415 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound()
472 struct ethhdr *eth = eth_hdr(skb); in ipvlan_xmit_mode_l2()
515 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in ipvlan_queue_xmit()
535 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame()
578 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2()
/linux-4.1.27/net/wireless/
Dutil.c516 struct ethhdr *ehdr; in ieee80211_data_to_8023()
521 ehdr = (struct ethhdr *) skb_push(skb, sizeof(struct ethhdr)); in ieee80211_data_to_8023()
656 const struct ethhdr *eth; in ieee80211_amsdu_to_8023s()
666 eth = (struct ethhdr *) skb_pull(skb, sizeof(struct ethhdr)); in ieee80211_amsdu_to_8023s()
670 eth = (struct ethhdr *) skb->data; in ieee80211_amsdu_to_8023s()
676 unsigned int subframe_len = sizeof(struct ethhdr) + ntohs(len); in ieee80211_amsdu_to_8023s()
687 skb_pull(skb, sizeof(struct ethhdr)); in ieee80211_amsdu_to_8023s()
701 skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); in ieee80211_amsdu_to_8023s()
705 eth = (struct ethhdr *)skb_pull(skb, ntohs(len) + in ieee80211_amsdu_to_8023s()
779 mpls = skb_header_pointer(skb, sizeof(struct ethhdr), in cfg80211_classify8021d()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c225 struct ethhdr *eth; in libipw_classify()
228 eth = (struct ethhdr *)skb->data; in libipw_classify()
295 ether_type = ((struct ethhdr *)skb->data)->h_proto; in libipw_xmit()
345 skb_pull(skb, sizeof(struct ethhdr)); in libipw_xmit()
Dipw2100.h788 sizeof(struct ethhdr))
/linux-4.1.27/drivers/scsi/fnic/
Dfnic_fip.h60 struct ethhdr eth;
Dfnic_fcs.c574 struct ethhdr *eh; in fnic_handle_fip_frame()
594 eh = (struct ethhdr *)skb->data; in fnic_handle_fip_frame()
630 struct ethhdr *eh; in fnic_import_rq_eth_pkt()
637 eh = (struct ethhdr *)skb->data; in fnic_import_rq_eth_pkt()
640 eh = (struct ethhdr *)skb_pull(skb, VLAN_HLEN); in fnic_import_rq_eth_pkt()
981 struct ethhdr *eth_hdr; in fnic_eth_send()
986 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send()
1028 struct ethhdr *eth_hdr; in fnic_send_frame()
1046 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
1053 eth_hdr = (struct ethhdr *)skb_push(skb, eth_hdr_len); in fnic_send_frame()
Dfnic_trace.c625 eth_fcoe_hdr_len = sizeof(struct ethhdr) + in fnic_fc_trace_set_data()
733 int ethhdr_len = sizeof(struct ethhdr) - 1; in copy_and_format_trace_data()
/linux-4.1.27/net/ipv4/
Dip_tunnel_core.c95 struct ethhdr *eh; in iptunnel_pull_header()
100 eh = (struct ethhdr *)skb->data; in iptunnel_pull_header()
/linux-4.1.27/net/bluetooth/bnep/
Dnetdev.c124 struct ethhdr *eh = (void *) skb->data; in bnep_net_mc_filter()
136 struct ethhdr *eh = (void *) skb->data; in bnep_net_eth_proto()
Dbnep.h164 struct ethhdr eh;
Dcore.c424 struct ethhdr *eh = (void *) skb->data; in bnep_tx_frame()
/linux-4.1.27/include/uapi/linux/
Dif_arcnet.h84 struct ethhdr eth; /* standard ethernet header (yuck!) */
Dif_ether.h137 struct ethhdr { struct
Dethtool.h750 struct ethhdr ether_spec;
941 struct ethhdr ether_spec;
/linux-4.1.27/include/net/
Dbond_3ad.h147 struct ethhdr hdr;
168 struct ethhdr hdr;
/linux-4.1.27/drivers/net/wireless/libertas/
Drx.c63 struct ethhdr *p_ethhdr; in lbs_process_rxed_packet()
117 p_ethhdr = (struct ethhdr *) in lbs_process_rxed_packet()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c277 struct ethhdr *eth; in ieee80211_classify()
279 eth = (struct ethhdr *)skb->data; in ieee80211_classify()
640 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in ieee80211_xmit()
655 sizeof(struct ethhdr) - SNAP_SIZE - sizeof(u16)); in ieee80211_xmit()
666 skb_pull(skb, sizeof(struct ethhdr)); in ieee80211_xmit()
/linux-4.1.27/drivers/net/hamradio/
Dbpqether.c183 struct ethhdr *eth; in bpq_rcv()
192 if (!pskb_may_pull(skb, sizeof(struct ethhdr))) in bpq_rcv()
214 if (skb_cow(skb, sizeof(struct ethhdr))) in bpq_rcv()
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_tx.c256 struct ethhdr *eth; in rtllib_classify()
259 eth = (struct ethhdr *)skb->data; in rtllib_classify()
615 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in rtllib_xmit_inter()
670 sizeof(struct ethhdr) - SNAP_SIZE - in rtllib_xmit_inter()
677 skb_pull(skb, sizeof(struct ethhdr)); in rtllib_xmit_inter()
/linux-4.1.27/net/802/
Dstp.c36 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv()
/linux-4.1.27/net/core/
Dnetpoll.c54 (sizeof(struct ethhdr) + \
379 struct ethhdr *eth; in netpoll_send_udp()
431 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
460 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
Dflow_dissector.c226 const struct ethhdr *eth; in __skb_flow_dissect()
227 struct ethhdr _eth; in __skb_flow_dissect()
Ddev.c2416 struct ethhdr *eth; in skb_network_protocol()
2418 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in skb_network_protocol()
2421 eth = (struct ethhdr *)skb_mac_header(skb); in skb_network_protocol()
4269 const struct ethhdr *eth; in napi_frags_skb()
/linux-4.1.27/drivers/net/wireless/
Dray_cs.c954 __be16 proto = ((struct ethhdr *)data)->h_proto; in translate_frame()
998 memcpy_toio(ptx->mac.addr_1, ((struct ethhdr *)data)->h_dest, in ray_build_header()
1006 ((struct ethhdr *)data)->h_dest, ADDRLEN); in ray_build_header()
1009 ((struct ethhdr *)data)->h_source, ADDRLEN); in ray_build_header()
1015 ((struct ethhdr *)data)->h_source, ADDRLEN); in ray_build_header()
1017 ((struct ethhdr *)data)->h_dest, ADDRLEN); in ray_build_header()
2287 struct ethhdr *peth; in untranslate()
2315 peth = (struct ethhdr *)(skb->data + delta); in untranslate()
2323 peth = (struct ethhdr *)(skb->data + delta); in untranslate()
2331 peth = (struct ethhdr *)(skb->data + delta); in untranslate()
[all …]
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_net.c140 struct ethhdr *eth; in dvb_net_eth_type_trans()
196 struct ethhdr *hdr = (struct ethhdr*) p->ule_next_hdr; in ule_bridged_sndu()
198 int framelen = p->ule_sndu_len - ((p->ule_next_hdr+sizeof(struct ethhdr)) - p->ule_skb->data); in ule_bridged_sndu()
318 struct ethhdr *ethh = NULL; in dvb_net_ule()
708 ethh = (struct ethhdr *)priv->ule_skb->data; in dvb_net_ule()
/linux-4.1.27/drivers/net/plip/
Dplip.c543 struct ethhdr *eth; in plip_type_trans()
995 plip_rewrite_address(const struct net_device *dev, struct ethhdr *eth) in plip_rewrite_address()
1022 plip_rewrite_address (dev, (struct ethhdr *)skb->data); in plip_hard_header()
1034 struct ethhdr *eth; in plip_hard_header_cache()
1036 eth = (struct ethhdr*)(((u8*)hh->hh_data) + in plip_hard_header_cache()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c678 static struct ethhdr *fm10k_port_is_vxlan(struct sk_buff *skb) in fm10k_port_is_vxlan()
693 return (struct ethhdr *)(skb_transport_header(skb) + VXLAN_HLEN); in fm10k_port_is_vxlan()
704 static struct ethhdr *fm10k_gre_is_nvgre(struct sk_buff *skb) in fm10k_gre_is_nvgre()
722 return (struct ethhdr *)(nvgre_hdr + 1); in fm10k_gre_is_nvgre()
724 return (struct ethhdr *)(&nvgre_hdr->tni); in fm10k_gre_is_nvgre()
730 struct ethhdr *eth_hdr; in fm10k_tx_encap_offload()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dtxrx.c527 struct ethhdr *eth = (void *)skb->data; in wil_netif_rx_any()
845 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_ucast()
941 struct ethhdr *eth = (void *)skb->data; in wil_set_da_for_vring()
954 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_bcast_2()
1259 struct ethhdr *eth = (void *)skb->data; in wil_start_xmit()
1323 struct ethhdr *eth = (void *)skb->data; in wil_need_txstat()
Dwmi.c504 struct ethhdr *eth; in wmi_evt_eapol_rx()
526 eth = (struct ethhdr *)skb_put(skb, ETH_HLEN); in wmi_evt_eapol_rx()
/linux-4.1.27/net/bridge/netfilter/
Dnft_reject_bridge.c30 struct ethhdr *eth; in nft_reject_br_push_etherhdr()
32 eth = (struct ethhdr *)skb_push(nskb, ETH_HLEN); in nft_reject_br_push_etherhdr()
Debtables.c131 const struct ethhdr *h = eth_hdr(skb); in ebt_basic_match()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dselftest.c45 struct ethhdr header;
376 payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); in efx_iterate_state()
382 payload->udp.len = htons(sizeof(*payload) - sizeof(struct ethhdr) - in efx_iterate_state()
Dethtool.c794 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
795 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
954 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule()
955 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
Dtx.c855 EFX_BUG_ON_PARANOID(((struct ethhdr *)skb->data)->h_proto != in efx_tso_check_protocol()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c138 struct ethhdr *eth = pay; in test_payload()
140 if (len < sizeof(struct ethhdr)) { in test_payload()
156 struct ethhdr *eth = pay; in create_payload()
/linux-4.1.27/drivers/net/wireless/orinoco/
Dmain.c374 struct ethhdr *eh; in orinoco_process_xmit_skb()
386 eh = (struct ethhdr *)skb->data; in orinoco_process_xmit_skb()
391 struct ethhdr eth; /* 802.3 header */ in orinoco_process_xmit_skb()
410 eh = (struct ethhdr *) skb_push(skb, ENCAPS_OVERHEAD); in orinoco_process_xmit_skb()
968 struct ethhdr *hdr; in orinoco_rx()
1047 hdr = (struct ethhdr *)skb_push(skb, in orinoco_rx()
1051 hdr = (struct ethhdr *)skb_push(skb, ETH_HLEN); in orinoco_rx()
/linux-4.1.27/drivers/staging/rtl8712/
Dxmit_linux.c82 struct ethhdr etherhdr; in r8712_set_qos()
Drtl871x_recv.c639 sizeof(struct ethhdr) + 2) - 24); in r8712_wlanhdr_to_ethhdr()
644 sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0))); in r8712_wlanhdr_to_ethhdr()
Drtl871x_xmit.c189 struct ethhdr etherhdr; in r8712_update_attrib()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_reject_ipv4.c149 struct ethhdr *oeth = eth_hdr(oldskb); in nf_send_reset()
/linux-4.1.27/drivers/staging/gdm72xx/
Dgdm_qos.c257 struct ethhdr *ethh = (struct ethhdr *)(skb->data + HCI_HEADER_SIZE); in gdm_qos_send_hci_pkt()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dcore.c195 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_netdev_start_xmit()
550 struct ethhdr *eh; in brcmf_txfinalize()
557 eh = (struct ethhdr *)(txp->data); in brcmf_txfinalize()
Dmsgbuf.c661 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_flowring_create()
796 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_txdata()
Dfweh.c67 struct ethhdr eth;
Dfwsignal.c1892 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_fws_process_skb()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c195 struct ethhdr *phdr = (struct ethhdr *)(skb->data); in qlcnic_add_lb_filter()
308 struct ethhdr *phdr = (struct ethhdr *)(skb->data); in qlcnic_send_filter()
656 struct ethhdr *phdr; in qlcnic_xmit_frame()
668 phdr = (struct ethhdr *)skb->data; in qlcnic_xmit_frame()
1169 struct ethhdr *eth_hdr; in qlcnic_check_rx_tagging()
1172 eth_hdr = (struct ethhdr *)skb->data; in qlcnic_check_rx_tagging()
/linux-4.1.27/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c100 const struct ethhdr *eth = data; in xgene_enet_hdr_len()
191 u8 ethhdr; in xgene_enet_work_msg() local
215 ethhdr = xgene_enet_hdr_len(skb->data); in xgene_enet_work_msg()
218 SET_VAL(ETHHDR, ethhdr) | in xgene_enet_work_msg()
/linux-4.1.27/net/ipv6/netfilter/
Dnf_reject_ipv6.c198 struct ethhdr *oeth = eth_hdr(oldskb); in nf_send_reset6()
/linux-4.1.27/drivers/net/
Drionet.c172 struct ethhdr *eth = (struct ethhdr *)skb->data; in rionet_start_xmit()
Dmacvlan.c200 const struct ethhdr *eth, bool local) in macvlan_broadcast_one()
236 const struct ethhdr *eth = eth_hdr(skb); in macvlan_broadcast()
405 const struct ethhdr *eth = eth_hdr(skb); in macvlan_handle_frame()
476 const struct ethhdr *eth = (void *)skb->data; in macvlan_queue_xmit()
Dtun.c703 struct ethhdr *eh = (struct ethhdr *) skb->data; in run_filter()
Dvxlan.c1444 skb_push(reply, sizeof(struct ethhdr)); in vxlan_na_create()
1464 skb_pull(reply, sizeof(struct ethhdr)); in vxlan_na_create()
2051 struct ethhdr *eth; in vxlan_xmit()
Dvirtio_net.c845 const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest; in xmit_skb()
/linux-4.1.27/net/openvswitch/
Dactions.c126 struct ethhdr *hdr; in push_mpls()
161 struct ethhdr *hdr; in pop_mpls()
179 hdr = (struct ethhdr *)(skb_mpls_header(skb) - ETH_HLEN); in pop_mpls()
Dflow.c457 struct ethhdr *eth; in key_extract()
Ddatapath.c519 struct ethhdr *eth; in ovs_packet_cmd_execute()
/linux-4.1.27/drivers/net/ethernet/amd/
Dsunlance.c887 struct ethhdr __iomem *eth = (struct ethhdr __iomem *) packet; in build_fake_packet()
900 struct ethhdr *eth = (struct ethhdr *) packet; in build_fake_packet()
/linux-4.1.27/net/mac80211/
Drx.c2005 struct ethhdr *ehdr; in __ieee80211_data_to_8023()
2030 ehdr = (struct ethhdr *) rx->skb->data; in __ieee80211_data_to_8023()
2046 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_frame_allowed()
2073 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_deliver_skb()
2122 align = (unsigned long)(skb->data + sizeof(struct ethhdr)) & 3; in ieee80211_deliver_skb()
2406 if (unlikely(((struct ethhdr *)rx->skb->data)->h_proto == in ieee80211_rx_h_data()
2438 ((struct ethhdr *)rx->skb->data)->h_dest) && in ieee80211_rx_h_data()
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c314 struct ethhdr *eth = (struct ethhdr *)skb->data; in rtw_recv_select_queue23a()
/linux-4.1.27/drivers/staging/unisys/common-spar/include/channels/
Diochannel.h466 char ethhdr[ETH_HEADER_SIZE]; /* the ethernet header */ member
/linux-4.1.27/net/bridge/
Dbr_private.h509 struct ethhdr *eth) in br_multicast_querier_exists()
580 struct ethhdr *eth) in br_multicast_querier_exists()
Dbr_multicast.c354 struct ethhdr *eth; in br_ip4_multicast_alloc_query()
422 struct ethhdr *eth; in br_ip6_multicast_alloc_query()
2230 struct ethhdr eth; in br_multicast_has_querier_anywhere()
/linux-4.1.27/net/llc/
Dllc_sap.c33 return sizeof(struct ethhdr); in llc_mac_header_len()
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe_ctlr.c388 struct ethhdr eth; in fcoe_ctlr_solicit()
540 struct ethhdr eth; in fcoe_ctlr_send_keep_alive()
612 struct ethhdr eth; in fcoe_ctlr_encaps()
1513 struct ethhdr *eh; in fcoe_ctlr_recv_handler()
1992 struct ethhdr eth; in fcoe_ctlr_vn_send()
2012 len = max(len, min_len + sizeof(struct ethhdr)); in fcoe_ctlr_vn_send()
Dfcoe.c1438 struct ethhdr *eh; in fcoe_rcv()
1590 struct ethhdr *eh; in fcoe_xmit()
1622 elen = sizeof(struct ethhdr); in fcoe_xmit()
/linux-4.1.27/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1065 static void gfar_set_ether(struct ethhdr *value, struct ethhdr *mask, in gfar_set_ether()
1231 gfar_set_ether((struct ethhdr *) &rule->h_u, in gfar_convert_to_filer()
1232 (struct ethhdr *) &rule->m_u, tab); in gfar_convert_to_filer()
/linux-4.1.27/drivers/net/wimax/i2400m/
Dnetdev.c442 struct ethhdr *eth_hdr = _eth_hdr; in i2400m_rx_fake_eth_header()
/linux-4.1.27/drivers/net/bonding/
Dbond_alb.c1294 struct ethhdr *eth_data = eth_hdr(skb); in bond_do_alb_xmit()
1328 struct ethhdr *eth_data; in bond_tlb_xmit()
1366 struct ethhdr *eth_data; in bond_alb_xmit()
Dbond_main.c3081 struct ethhdr *ep, hdr_tmp; in bond_eth_hash()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c1094 struct ethhdr *eth; in ath10k_htt_rx_h_undecap_eth()
1110 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1113 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
/linux-4.1.27/drivers/staging/octeon/
Dethernet-tx.c420 pko_command.s.ipoffp1 = sizeof(struct ethhdr) + 1; in cvm_oct_xmit()
/linux-4.1.27/drivers/net/ethernet/altera/
Daltera_tse_main.c356 struct ethhdr *eth_hdr; in tse_rx_vlan()
360 eth_hdr = (struct ethhdr *)skb->data; in tse_rx_vlan()
/linux-4.1.27/drivers/s390/net/
Dqeth_core.h847 __be16 *p = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_ip_version()
Dqeth_core_main.c3852 tci = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_priority_queue()
/linux-4.1.27/net/atm/
Dmpc.c574 struct ethhdr *eth; in mpc_send_packet()
583 eth = (struct ethhdr *)skb->data; in mpc_send_packet()
/linux-4.1.27/drivers/usb/gadget/function/
Drndis.c591 + sizeof(struct ethhdr) in rndis_init_response()
Du_ether.c223 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; in rx_submit()
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_recv.c1545 ptr = skb_pull(skb, (hdrlen - sizeof(struct ethhdr) + 2) - 24); in wlanhdr_to_ethhdr()
1549 ptr = skb_pull(skb, (hdrlen - sizeof(struct ethhdr) + in wlanhdr_to_ethhdr()
Drtw_xmit.c425 struct ethhdr *ehdr = (struct ethhdr *) skb->data; in update_attrib()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c2195 struct ethhdr *eth = (struct ethhdr *)skb->data; in xgbe_print_pkt()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_xmit.c406 struct ethhdr etherhdr; in set_qos()
433 struct ethhdr etherhdr; in update_attrib()
Drtw_recv.c1417 ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr)+2)-24); in wlanhdr_to_ethhdr()
1421 ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0))); in wlanhdr_to_ethhdr()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c1915 struct ethhdr *hdr = (struct ethhdr *)skb->data; in bnx2x_select_queue()
3737 struct ethhdr *eth; in bnx2x_start_xmit()
3786 eth = (struct ethhdr *)skb->data; in bnx2x_start_xmit()
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c245 struct ethhdr *eh; in bnx2fc_xmit()
314 elen = sizeof(struct ethhdr); in bnx2fc_xmit()
/linux-4.1.27/Documentation/networking/
Dpacket_mmap.txt874 struct ethhdr *eth = (struct ethhdr *) ((uint8_t *) ppd + ppd->tp_mac);
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c1324 skb->mac_len = sizeof(struct ethhdr); in i40e_fcoe_set_skb_header()
Di40e_txrx.c1437 sizeof(struct ethhdr) + in i40e_rx_checksum()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c2091 struct ethhdr *ehdr; in stmmac_rx_vlan()
2098 ehdr = (struct ethhdr *)skb->data; in stmmac_rx_vlan()
/linux-4.1.27/drivers/net/ethernet/sgi/
Dioc3-eth.c509 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum()
/linux-4.1.27/drivers/net/phy/
Ddp83640.c569 struct ethhdr *h = eth_hdr(skb); in is_status_frame()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c128 sizeof(struct ethhdr) -
133 sizeof(struct ethhdr) -
Dd3.c401 struct ethhdr eth; in iwl_mvm_build_tcp_packet()
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_drv.c3197 struct ethhdr *ehdr; in vmxnet3_suspend()
3249 ehdr = (struct ethhdr *)pmConf->filters[i].pattern; in vmxnet3_suspend()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c920 sizeof(struct ethhdr) + in i40e_rx_checksum()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1764 const struct ethhdr *e = data; in eth_hdr_len()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_cm.c441 struct ethhdr *ethh; in form_cm_frame()
453 ethh = (struct ethhdr *)buf; in form_cm_frame()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dcm.c3650 struct ethhdr *eh = NULL; in rx_pkt()
3694 eh = (struct ethhdr *)(req + 1); in rx_pkt()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_main.c1004 struct ethhdr *eh = (struct ethhdr *)skb->data; in be_ipv6_exthdr_check()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1106 skb->mac_len = sizeof(struct ethhdr); in cxgb_fcoe_offload()
/linux-4.1.27/drivers/isdn/i4l/
Disdn_net.c1366 struct ethhdr *eth; in isdn_net_type_trans()
/linux-4.1.27/drivers/net/ethernet/sun/
Dniu.c6564 static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr, in niu_compute_tx_flags()
6638 struct ethhdr *ehdr; in niu_start_xmit()
6673 ehdr = (struct ethhdr *) skb->data; in niu_start_xmit()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c5490 if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) in e1000_transfer_dhcp_info()
/linux-4.1.27/drivers/net/ethernet/nvidia/
Dforcedeth.c2769 protolen = ntohs(((struct ethhdr *)packet)->h_proto); in nv_getlen()