Home
last modified time | relevance | path

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

/linux-4.4.14/net/batman-adv/
Drouting.c178 struct ethhdr *ethhdr; in batadv_check_management_packet() local
184 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
187 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
191 if (is_broadcast_ether_addr(ethhdr->h_source)) in batadv_check_management_packet()
326 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local
335 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
338 if (is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
342 if (is_broadcast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet()
346 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
368 ethhdr->h_dest); in batadv_recv_icmp_packet()
[all …]
Dmulticast.c302 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) in batadv_mcast_forw_mode_check_ipv4()
340 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6()
376 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local
384 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check()
406 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument
408 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count()
429 struct ethhdr *ethhdr) in batadv_mcast_forw_tt_node_get() argument
431 return batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_mcast_forw_tt_node_get()
432 ethhdr->h_dest, BATADV_NO_FLAGS); in batadv_mcast_forw_tt_node_get()
500 struct ethhdr *ethhdr) in batadv_mcast_forw_ip_node_get() argument
[all …]
Dbridge_loop_avoidance.c273 struct ethhdr *ethhdr; in batadv_bla_send_claim() local
309 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim()
310 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr); in batadv_bla_send_claim()
318 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim()
339 ethhdr->h_source, BATADV_PRINT_VID(vid)); in batadv_bla_send_claim()
347 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim()
350 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim()
707 u8 *backbone_addr, struct ethhdr *ethhdr, in batadv_handle_request() argument
711 if (!batadv_compare_eth(backbone_addr, ethhdr->h_dest)) in batadv_handle_request()
717 if (!batadv_compare_eth(ethhdr->h_dest, primary_if->net_dev->dev_addr)) in batadv_handle_request()
[all …]
Dsend.c60 struct ethhdr *ethhdr; in batadv_send_skb_packet() local
80 ethhdr = eth_hdr(skb); in batadv_send_skb_packet()
81 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet()
82 ether_addr_copy(ethhdr->h_dest, dst_addr); in batadv_send_skb_packet()
83 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet()
277 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local
304 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast()
312 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast()
349 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local
353 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic()
[all …]
Dnetwork-coding.c1038 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument
1097 second_source = ethhdr->h_source; in batadv_nc_code_packets()
1106 first_source = ethhdr->h_source; in batadv_nc_code_packets()
1367 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local
1375 ethhdr = eth_hdr(skb); in batadv_nc_skb_store_before_coding()
1376 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding()
1377 ether_addr_copy(ethhdr->h_dest, eth_dst_new); in batadv_nc_skb_store_before_coding()
1406 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument
1419 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search()
1437 if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, in batadv_nc_skb_dst_search()
[all …]
Dsoft-interface.c184 struct ethhdr *ethhdr; in batadv_interface_tx() local
212 ethhdr = eth_hdr(skb); in batadv_interface_tx()
214 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_tx()
234 ethhdr = eth_hdr(skb); in batadv_interface_tx()
237 if (!is_multicast_ether_addr(ethhdr->h_source)) { in batadv_interface_tx()
238 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx()
251 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx()
254 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx()
258 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
270 ethhdr = eth_hdr(skb); in batadv_interface_tx()
[all …]
Dbat_iv_ogm.c804 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument
835 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward()
973 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument
997 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update()
1029 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update()
1034 ethhdr->h_source, in batadv_iv_ogm_orig_update()
1276 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument
1329 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos()
1394 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local
1405 ethhdr = eth_hdr(skb_priv); in batadv_iv_ogm_process_per_outif()
[all …]
Dmain.c333 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local
341 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), &ethhdr_tmp); in batadv_skb_set_priority()
342 if (!ethhdr) in batadv_skb_set_priority()
345 switch (ethhdr->h_proto) { in batadv_skb_set_priority()
355 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
362 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
1203 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local
1207 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
Dgateway_client.c671 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local
684 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
685 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
794 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local
801 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range()
802 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
Ddistributed-arp-table.c843 struct ethhdr *ethhdr; in batadv_arp_get_type() local
852 ethhdr = (struct ethhdr *)(skb->data + hdr_size); in batadv_arp_get_type()
854 if (ethhdr->h_proto != htons(ETH_P_ARP)) in batadv_arp_get_type()
/linux-4.4.14/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.c332 skb->len + sizeof (struct ethhdr), skb->protocol); in usbnet_skb_return()
Dlan78xx.c2346 skb->len + sizeof(struct ethhdr), skb->protocol); in lan78xx_skb_return()
/linux-4.4.14/net/ethernet/
Deth.c83 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); in eth_header()
126 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen()
156 const struct ethhdr *eth; in eth_type_trans()
161 eth = (struct ethhdr *)skb->data; in eth_type_trans()
210 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse()
226 struct ethhdr *eth; in eth_header_cache()
229 eth = (struct ethhdr *) in eth_header_cache()
255 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update()
400 struct ethhdr *eh, *eh2; in eth_gro_receive()
421 eh2 = (struct ethhdr *)(p->data + off_eth); in eth_gro_receive()
[all …]
/linux-4.4.14/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.4.14/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.c856 if (len < (sizeof(struct ethhdr) + 3)) in mwifiex_process_tdls_action_frame()
858 if (*(buf + sizeof(struct ethhdr)) != WLAN_TDLS_SNAP_RFTYPE) in mwifiex_process_tdls_action_frame()
860 if (*(buf + sizeof(struct ethhdr) + 1) != WLAN_CATEGORY_TDLS) in mwifiex_process_tdls_action_frame()
864 action = *(buf + sizeof(struct ethhdr) + 2); in mwifiex_process_tdls_action_frame()
870 if (len < (sizeof(struct ethhdr) + TDLS_REQ_FIX_LEN)) in mwifiex_process_tdls_action_frame()
873 pos = buf + sizeof(struct ethhdr) + 4; in mwifiex_process_tdls_action_frame()
876 ie_len = len - sizeof(struct ethhdr) - TDLS_REQ_FIX_LEN; in mwifiex_process_tdls_action_frame()
881 if (len < (sizeof(struct ethhdr) + TDLS_RESP_FIX_LEN)) in mwifiex_process_tdls_action_frame()
884 pos = buf + sizeof(struct ethhdr) + 6; in mwifiex_process_tdls_action_frame()
886 ie_len = len - sizeof(struct ethhdr) - TDLS_RESP_FIX_LEN; in mwifiex_process_tdls_action_frame()
[all …]
Duap_txrx.c103 struct ethhdr *p_ethhdr; in mwifiex_uap_queue_bridged_pkt()
134 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()
Dtxrx.c92 struct ethhdr *hdr = (void *)skb->data; in mwifiex_process_tx()
Dwmm.c815 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_wmm_add_buf_txqueue()
Dmain.c705 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_bypass_tx_queue()
Dutil.c439 struct ethhdr *p_ethhdr; in mwifiex_recv_packet()
Dfw.h37 struct ethhdr eth803_hdr;
42 struct ethhdr eth803_hdr;
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.c724 void *hdr = (u8 *)va + sizeof(struct ethhdr); in check_csum()
803 struct ethhdr *ethh; in mlx4_en_process_rx_cq()
811 ethh = (struct ethhdr *)(page_address(frags[0].page) + in mlx4_en_process_rx_cq()
Den_tx.c868 struct ethhdr *ethh; in mlx4_en_xmit()
873 ethh = (struct ethhdr *)skb->data; in mlx4_en_xmit()
Den_ethtool.c1229 struct ethhdr *eth_mask; in mlx4_en_validate_flow()
1455 struct ethhdr *eth_spec; in mlx4_en_ethtool_to_net_trans_rule()
/linux-4.4.14/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.4.14/drivers/net/ipvlan/
Dipvlan_core.c193 struct ethhdr *ethh; in ipvlan_process_multicast()
424 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound()
501 struct ethhdr *eth = eth_hdr(skb); in ipvlan_xmit_mode_l2()
541 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in ipvlan_queue_xmit()
561 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame()
604 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2()
/linux-4.4.14/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.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c99 struct ethhdr *eth = (struct ethhdr *)(skb->data); in mlx5e_lro_update_hdr()
156 __be16 ethertype = ((struct ethhdr *)skb->data)->h_proto; in is_first_ethertype_ip()
/linux-4.4.14/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.4.14/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()
993 struct ethhdr *eth_hdr; in fnic_eth_send()
999 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send()
1050 struct ethhdr *eth_hdr; in fnic_send_frame()
1068 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
1075 eth_hdr = (struct ethhdr *)skb_push(skb, eth_hdr_len); in fnic_send_frame()
Dfnic_trace.c626 eth_fcoe_hdr_len = sizeof(struct ethhdr) + in fnic_fc_trace_set_data()
734 int ethhdr_len = sizeof(struct ethhdr) - 1; in copy_and_format_trace_data()
/linux-4.4.14/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.4.14/include/uapi/linux/
Dif_arcnet.h81 struct ethhdr eth; /* standard ethernet header (yuck!) */
Dif_ether.h138 struct ethhdr { struct
Dethtool.h756 struct ethhdr ether_spec;
972 struct ethhdr ether_spec;
/linux-4.4.14/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.4.14/include/net/
Dbond_3ad.h147 struct ethhdr hdr;
168 struct ethhdr hdr;
/linux-4.4.14/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.4.14/drivers/net/hamradio/
Dbpqether.c182 struct ethhdr *eth; in bpq_rcv()
191 if (!pskb_may_pull(skb, sizeof(struct ethhdr))) in bpq_rcv()
213 if (skb_cow(skb, sizeof(struct ethhdr))) in bpq_rcv()
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_tx.c252 struct ethhdr *eth; in rtllib_classify()
255 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()
678 skb_pull(skb, sizeof(struct ethhdr)); in rtllib_xmit_inter()
/linux-4.4.14/net/802/
Dstp.c36 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv()
/linux-4.4.14/net/core/
Dnetpoll.c54 (sizeof(struct ethhdr) + \
384 struct ethhdr *eth; in netpoll_send_udp()
438 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
467 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
Dflow_dissector.c159 struct ethhdr *eth = eth_hdr(skb); in __skb_flow_dissect()
392 const struct ethhdr *eth; in __skb_flow_dissect()
393 struct ethhdr _eth; in __skb_flow_dissect()
Ddev.c2479 struct ethhdr *eth; in skb_network_protocol()
2481 if (unlikely(!pskb_may_pull(skb, sizeof(struct ethhdr)))) in skb_network_protocol()
2484 eth = (struct ethhdr *)skb_mac_header(skb); in skb_network_protocol()
4435 const struct ethhdr *eth; in napi_frags_skb()
Dpktgen.c2645 struct ethhdr *eth; in process_ipsec()
2667 eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); in process_ipsec()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c669 static struct ethhdr *fm10k_port_is_vxlan(struct sk_buff *skb) in fm10k_port_is_vxlan()
684 return (struct ethhdr *)(skb_transport_header(skb) + VXLAN_HLEN); in fm10k_port_is_vxlan()
695 static struct ethhdr *fm10k_gre_is_nvgre(struct sk_buff *skb) in fm10k_gre_is_nvgre()
713 return (struct ethhdr *)(nvgre_hdr + 1); in fm10k_gre_is_nvgre()
715 return (struct ethhdr *)(&nvgre_hdr->tni); in fm10k_gre_is_nvgre()
721 struct ethhdr *eth_hdr; in fm10k_tx_encap_offload()
/linux-4.4.14/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.4.14/drivers/net/ethernet/sfc/
Dselftest.c45 struct ethhdr header;
385 payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); in efx_iterate_state()
391 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.c856 EFX_BUG_ON_PARANOID(((struct ethhdr *)skb->data)->h_proto != in efx_tso_check_protocol()
/linux-4.4.14/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.4.14/net/ipv4/
Dip_tunnel_core.c97 struct ethhdr *eh; in iptunnel_pull_header()
102 eh = (struct ethhdr *)skb->data; in iptunnel_pull_header()
/linux-4.4.14/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.4.14/drivers/staging/rtl8712/
Dxmit_linux.c82 struct ethhdr etherhdr; in r8712_set_qos()
Drtl871x_recv.c643 sizeof(struct ethhdr) + 2) - 24); in r8712_wlanhdr_to_ethhdr()
648 sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0))); in r8712_wlanhdr_to_ethhdr()
Drtl871x_xmit.c189 struct ethhdr etherhdr; in r8712_update_attrib()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_reject_ipv4.c149 struct ethhdr *oeth = eth_hdr(oldskb); in nf_send_reset()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_qos.c257 struct ethhdr *ethh = (struct ethhdr *)(skb->data + HCI_HEADER_SIZE); in gdm_qos_send_hci_pkt()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dcore.c214 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_netdev_start_xmit()
565 struct ethhdr *eh; in brcmf_txfinalize()
568 eh = (struct ethhdr *)(txp->data); in brcmf_txfinalize()
Dmsgbuf.c652 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_flowring_create()
787 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_txdata()
Dfweh.c67 struct ethhdr eth;
Dfwsignal.c1890 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_fws_process_skb()
/linux-4.4.14/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.4.14/drivers/net/wireless/ath/wil6210/
Dtxrx.c563 struct ethhdr *eth = (void *)skb->data; in wil_netif_rx_any()
898 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_ucast()
995 struct ethhdr *eth = (void *)skb->data; in wil_set_da_for_vring()
1008 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_bcast_2()
1655 struct ethhdr *eth = (void *)skb->data; in wil_start_xmit()
1719 struct ethhdr *eth = (void *)skb->data; in wil_need_txstat()
Dwmi.c532 struct ethhdr *eth; in wmi_evt_eapol_rx()
554 eth = (struct ethhdr *)skb_put(skb, ETH_HLEN); in wmi_evt_eapol_rx()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c105 const struct ethhdr *eth = data; in xgene_enet_hdr_len()
195 u8 ethhdr, proto = 0, csum_enable = 0; in xgene_enet_work_msg() local
200 ethhdr = xgene_enet_hdr_len(skb->data); in xgene_enet_work_msg()
218 hdr_len = ethhdr + ip_hdrlen(skb) + tcp_hdrlen(skb); in xgene_enet_work_msg()
252 SET_VAL(ETHHDR, ethhdr) | in xgene_enet_work_msg()
/linux-4.4.14/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()
478 const struct ethhdr *eth = (void *)skb->data; in macvlan_queue_xmit()
Dtun.c758 struct ethhdr *eh = (struct ethhdr *) skb->data; in run_filter()
Dvxlan.c1457 skb_push(reply, sizeof(struct ethhdr)); in vxlan_na_create()
1477 skb_pull(reply, sizeof(struct ethhdr)); in vxlan_na_create()
2142 struct ethhdr *eth; in vxlan_xmit()
Dvirtio_net.c851 const unsigned char *dest = ((struct ethhdr *)skb->data)->h_dest; in xmit_skb()
/linux-4.4.14/drivers/net/xen-netback/
Dinterface.c175 struct ethhdr *eth = (struct ethhdr *)skb->data; in xenvif_start_xmit()
/linux-4.4.14/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.4.14/net/ipv6/netfilter/
Dnf_reject_ipv6.c198 struct ethhdr *oeth = eth_hdr(oldskb); in nf_send_reset6()
/linux-4.4.14/net/mac80211/
Drx.c2033 struct ethhdr *ehdr; in __ieee80211_data_to_8023()
2058 ehdr = (struct ethhdr *) rx->skb->data; in __ieee80211_data_to_8023()
2074 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_frame_allowed()
2101 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_deliver_skb()
2147 align = (unsigned long)(skb->data + sizeof(struct ethhdr)) & 3; in ieee80211_deliver_skb()
2427 if (unlikely(((struct ethhdr *)rx->skb->data)->h_proto == in ieee80211_rx_h_data()
2458 ((struct ethhdr *)rx->skb->data)->h_dest) && in ieee80211_rx_h_data()
Dtx.c2701 struct ethhdr eth; in ieee80211_xmit_fast()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c313 struct ethhdr *eth = (struct ethhdr *)skb->data; in rtw_recv_select_queue23a()
/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1062 static void gfar_set_ether(struct ethhdr *value, struct ethhdr *mask, in gfar_set_ether()
1228 gfar_set_ether((struct ethhdr *) &rule->h_u, in gfar_convert_to_filer()
1229 (struct ethhdr *) &rule->m_u, tab); in gfar_convert_to_filer()
/linux-4.4.14/drivers/staging/unisys/include/
Diochannel.h347 char ethhdr[ETH_HEADER_SIZE]; /* the ethernet header */ member
/linux-4.4.14/drivers/net/fjes/
Dfjes_main.c592 struct ethhdr *eth; in fjes_xmit_frame()
603 eth = (struct ethhdr *)skb->data; in fjes_xmit_frame()
1043 ((struct ethhdr *)frame)->h_dest)) { in fjes_poll()
/linux-4.4.14/net/openvswitch/
Dactions.c144 struct ethhdr *hdr; in push_mpls()
177 struct ethhdr *hdr; in pop_mpls()
195 hdr = (struct ethhdr *)(skb_mpls_header(skb) - ETH_HLEN); in pop_mpls()
Dflow.c464 struct ethhdr *eth; in key_extract()
Ddatapath.c553 struct ethhdr *eth; in ovs_packet_cmd_execute()
/linux-4.4.14/net/llc/
Dllc_sap.c33 return sizeof(struct ethhdr); in llc_mac_header_len()
/linux-4.4.14/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.c1437 struct ethhdr *eh; in fcoe_rcv()
1589 struct ethhdr *eh; in fcoe_xmit()
1621 elen = sizeof(struct ethhdr); in fcoe_xmit()
/linux-4.4.14/net/bridge/
Dbr_private.h584 struct ethhdr *eth) in br_multicast_querier_exists()
659 struct ethhdr *eth) in br_multicast_querier_exists()
Dbr_multicast.c368 struct ethhdr *eth; in br_ip4_multicast_alloc_query()
436 struct ethhdr *eth; in br_ip6_multicast_alloc_query()
2087 struct ethhdr eth; in br_multicast_has_querier_anywhere()
/linux-4.4.14/drivers/staging/wilc1000/
Dlinux_wlan.c1368 struct ethhdr *eth_h; in mac_xmit()
1394 eth_h = (struct ethhdr *)(skb->data); in mac_xmit()
1399 ih = (struct iphdr *)(skb->data + sizeof(struct ethhdr)); in mac_xmit()
/linux-4.4.14/drivers/net/wimax/i2400m/
Dnetdev.c442 struct ethhdr *eth_hdr = _eth_hdr; in i2400m_rx_fake_eth_header()
/linux-4.4.14/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.c3092 struct ethhdr *ep, hdr_tmp; in bond_eth_hash()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c1178 struct ethhdr *eth; in ath10k_htt_rx_h_undecap_eth()
1194 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1197 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
Dmac.c3236 struct ethhdr *eth; in ath10k_tx_h_8023()
/linux-4.4.14/drivers/staging/octeon/
Dethernet-tx.c406 pko_command.s.ipoffp1 = sizeof(struct ethhdr) + 1; in cvm_oct_xmit()
/linux-4.4.14/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.4.14/drivers/net/vmxnet3/
Dvmxnet3_drv.c1191 struct ethhdr *eth; in vmxnet3_get_hdr_len()
1205 hdr.ptr += sizeof(struct ethhdr); in vmxnet3_get_hdr_len()
1211 hdr.ptr += sizeof(struct ethhdr); in vmxnet3_get_hdr_len()
3368 struct ethhdr *ehdr; in vmxnet3_suspend()
3420 ehdr = (struct ethhdr *)pmConf->filters[i].pattern; in vmxnet3_suspend()
/linux-4.4.14/drivers/s390/net/
Dqeth_core.h854 __be16 *p = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_ip_version()
Dqeth_core_main.c3804 tci = &((struct ethhdr *)skb->data)->h_proto; in qeth_get_priority_queue()
/linux-4.4.14/net/atm/
Dmpc.c574 struct ethhdr *eth; in mpc_send_packet()
583 eth = (struct ethhdr *)skb->data; in mpc_send_packet()
/linux-4.4.14/drivers/staging/unisys/visornic/
Dvisornic_main.c919 memcpy(cmdrsp->net.xmt.ethhdr, skb->data, ETH_HEADER_SIZE); in visornic_xmit()
1163 struct ethhdr *eth; in visornic_rx()
/linux-4.4.14/drivers/usb/gadget/function/
Drndis.c585 + sizeof(struct ethhdr) in rndis_init_response()
Du_ether.c228 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; in rx_submit()
/linux-4.4.14/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.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c2155 struct ethhdr *eth = (struct ethhdr *)skb->data; in xgbe_print_pkt()
/linux-4.4.14/drivers/staging/rtl8188eu/core/
Drtw_recv.c1401 ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr)+2)-24); in wlanhdr_to_ethhdr()
1405 ptr = recvframe_pull(precvframe, (rmv_len-sizeof(struct ethhdr) + (bsnaphdr ? 2 : 0))); in wlanhdr_to_ethhdr()
Drtw_xmit.c407 struct ethhdr etherhdr; in set_qos()
434 struct ethhdr etherhdr; in update_attrib()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c1935 struct ethhdr *hdr = (struct ethhdr *)skb->data; in bnx2x_select_queue()
3802 struct ethhdr *eth; in bnx2x_start_xmit()
3851 eth = (struct ethhdr *)skb->data; in bnx2x_start_xmit()
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt874 struct ethhdr *eth = (struct ethhdr *) ((uint8_t *) ppd + ppd->tp_mac);
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c245 struct ethhdr *eh; in bnx2fc_xmit()
314 elen = sizeof(struct ethhdr); in bnx2fc_xmit()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_fcoe.c1324 skb->mac_len = sizeof(struct ethhdr); in i40e_fcoe_set_skb_header()
Di40e_txrx.c1386 sizeof(struct ethhdr) + in i40e_rx_checksum()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c1023 struct ethhdr *eh = (struct ethhdr *)skb->data; in be_ipv6_exthdr_check()
1226 struct ethhdr *eh = (struct ethhdr *)(*skb)->data; in be_send_pkt_to_bmc()
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c2099 struct ethhdr *ehdr; in stmmac_rx_vlan()
2106 ehdr = (struct ethhdr *)skb->data; in stmmac_rx_vlan()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c2750 cmdsetup.s.cksum_offset = sizeof(struct ethhdr) + 1; in liquidio_xmit()
2759 cmdsetup.s.cksum_offset = sizeof(struct ethhdr) + 1; in liquidio_xmit()
/linux-4.4.14/drivers/net/phy/
Ddp83640.c570 struct ethhdr *h = eth_hdr(skb); in is_status_frame()
/linux-4.4.14/drivers/net/ethernet/sgi/
Dioc3-eth.c509 struct ethhdr *eh = eth_hdr(skb); in ioc3_tcpudp_checksum()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c859 sizeof(struct ethhdr) + in i40e_rx_checksum()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dmac80211.c127 sizeof(struct ethhdr) -
132 sizeof(struct ethhdr) -
Dd3.c395 struct ethhdr eth; in iwl_mvm_build_tcp_packet()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1764 const struct ethhdr *e = data; in eth_hdr_len()
/linux-4.4.14/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.4.14/drivers/infiniband/hw/cxgb4/
Dcm.c3778 struct ethhdr *eh = NULL; in rx_pkt()
3835 eh = (struct ethhdr *)(req + 1); in rx_pkt()
/linux-4.4.14/drivers/isdn/i4l/
Disdn_net.c1366 struct ethhdr *eth; in isdn_net_type_trans()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c5348 struct ethhdr *eth = (struct ethhdr *)skb_mac_header(skb); in bnxt_rx_flow_steer()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1113 skb->mac_len = sizeof(struct ethhdr); in cxgb_fcoe_offload()
/linux-4.4.14/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()
6671 ehdr = (struct ethhdr *) skb->data; in niu_start_xmit()
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dnetdev.c5639 if (((struct ethhdr *)skb->data)->h_proto != htons(ETH_P_IP)) in e1000_transfer_dhcp_info()
/linux-4.4.14/drivers/net/ethernet/nvidia/
Dforcedeth.c2769 protolen = ntohs(((struct ethhdr *)packet)->h_proto); in nv_getlen()