Home
last modified time | relevance | path

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

123456789

/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c33 static bool iwl_mei_rx_filter_eth(const struct ethhdr *ethhdr, in iwl_mei_rx_filter_eth() argument
41 if (!is_multicast_ether_addr(ethhdr->h_dest) || in iwl_mei_rx_filter_eth()
42 is_broadcast_ether_addr(ethhdr->h_dest)) in iwl_mei_rx_filter_eth()
52 if (compare_ether_header(filt->mac_address, ethhdr->h_dest)) in iwl_mei_rx_filter_eth()
282 const struct ethhdr *ethhdr = (void *)skb_mac_header(skb); in iwl_mei_rx_pass_to_csme() local
301 if (skb_headroom(skb) < sizeof(*ethhdr)) in iwl_mei_rx_pass_to_csme()
304 if (iwl_mei_rx_filter_eth(ethhdr, filters, in iwl_mei_rx_pass_to_csme()
375 struct ethhdr ethhdr; in iwl_mei_tx_copy_to_csme() local
376 struct ethhdr *eth; in iwl_mei_tx_copy_to_csme()
397 memcpy(ethhdr.h_dest, ieee80211_get_DA(hdr), ETH_ALEN); in iwl_mei_tx_copy_to_csme()
[all …]
/linux/drivers/net/usb/
H A Dlg-vl600.c100 struct ethhdr *ethhdr; in vl600_rx_fixup() local
175 ethhdr = (struct ethhdr *) skb->data; in vl600_rx_fixup()
176 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup()
179 memcpy(ethhdr->h_source, in vl600_rx_fixup()
180 &buf->data[sizeof(*ethhdr) + 0x8], in vl600_rx_fixup()
182 memcpy(ethhdr->h_dest, in vl600_rx_fixup()
183 &buf->data[sizeof(*ethhdr) + 0x12], in vl600_rx_fixup()
186 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup()
187 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup()
194 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup()
[all …]
/linux/include/linux/
H A Dif_ether.h25 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) in eth_hdr()
27 return (struct ethhdr *)skb_mac_header(skb); in eth_hdr()
33 static inline struct ethhdr *skb_eth_hdr(const struct sk_buff *skb) in skb_eth_hdr()
35 return (struct ethhdr *)skb->data; in skb_eth_hdr()
38 static inline struct ethhdr *inner_eth_hdr(const struct sk_buff *skb) in inner_eth_hdr()
40 return (struct ethhdr *)skb_inner_mac_header(skb); in inner_eth_hdr()
/linux/net/hsr/
H A Dhsr_main.h76 struct ethhdr ethhdr; member
114 struct ethhdr ethhdr; member
119 struct ethhdr ethhdr; member
264 struct ethhdr *ethhdr; in prp_check_lsdu_size() local
270 ethhdr = (struct ethhdr *)skb_mac_header(skb); in prp_check_lsdu_size()
272 if (ethhdr->h_proto == htons(ETH_P_8021Q)) in prp_check_lsdu_size()
H A Dhsr_framereg.c223 struct ethhdr *ethhdr; in hsr_get_node() local
231 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
234 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node()
239 if (ether_addr_equal(node->macaddress_B, ethhdr->h_source)) { in hsr_get_node()
248 if (ether_addr_equal(node->macaddress_A, ethhdr->h_source)) { in hsr_get_node()
258 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
259 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
279 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
297 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
316 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame()
[all …]
H A Dhsr_forward.c37 struct ethhdr *eth_hdr; in is_supervision_frame()
44 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame()
124 struct ethhdr *eth_hdr; in is_proxy_supervision_frame()
127 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_proxy_supervision_frame()
307 * mean that the ethhdr starts there. But rather it in hsr_fill_tag()
320 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
321 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag()
323 skb->protocol = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
682 struct ethhdr *ethhdr; in fill_frame_info()
680 struct ethhdr *ethhdr; fill_frame_info() local
[all...]
/linux/drivers/scsi/fnic/
H A Dfip.h51 struct ethhdr eth;
62 struct ethhdr eth;
69 struct ethhdr eth;
94 struct ethhdr eth;
107 struct ethhdr eth;
138 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame()
155 fnic_debug_dump_fip_frame(struct fnic *fnic, struct ethhdr *eth, in fnic_debug_dump_fip_frame()
H A Dfnic_fcs.c123 struct ethhdr *ethhdr = (struct ethhdr *) rx_frame; in fnic_fdls_learn_fcoe_macs() local
130 ethhdr->h_dest[0], ethhdr->h_dest[1], in fnic_fdls_learn_fcoe_macs()
131 ethhdr->h_dest[2], ethhdr->h_dest[3], in fnic_fdls_learn_fcoe_macs()
132 ethhdr->h_dest[4], ethhdr->h_dest[5]); in fnic_fdls_learn_fcoe_macs()
140 fnic_fdls_set_fcoe_dstmac(fnic, ethhdr->h_source); in fnic_fdls_learn_fcoe_macs()
372 struct ethhdr *eh; in fnic_import_rq_eth_pkt()
376 eh = (struct ethhdr *) fp; in fnic_import_rq_eth_pkt()
447 struct ethhdr *eh; in fnic_rq_cmpl_frame_recv()
484 eh = (struct ethhdr *) fp; in fnic_rq_cmpl_frame_recv()
685 struct ethhdr *pethhdr; in fdls_send_fcoe_frame()
[all …]
/linux/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
68 const struct ethhdr *old_eth, in set_ethhdr()
82 struct ethhdr *new_eth; in handle_ipv4()
83 struct ethhdr *old_eth; in handle_ipv4()
84 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
157 struct ethhdr *new_eth; in handle_ipv6()
158 struct ethhdr *old_eth; in handle_ipv6()
159 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
220 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp.c69 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
70 const struct ethhdr *old_eth, in set_ethhdr()
84 struct ethhdr *new_eth; in handle_ipv4()
85 struct ethhdr *old_eth; in handle_ipv4()
86 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
157 struct ethhdr *new_eth; in handle_ipv6()
158 struct ethhdr *old_eth; in handle_ipv6()
159 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
217 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
H A Dtest_xdp_loop.c65 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
66 const struct ethhdr *old_eth, in set_ethhdr()
80 struct ethhdr *new_eth; in handle_ipv4()
81 struct ethhdr *old_eth; in handle_ipv4()
82 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
153 struct ethhdr *new_eth; in handle_ipv6()
154 struct ethhdr *old_eth; in handle_ipv6()
155 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
213 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
H A Dtest_xdp_dynptr.c23 #define ethhdr_sz sizeof(struct ethhdr)
67 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
68 const struct ethhdr *old_eth, in set_ethhdr()
84 struct ethhdr *new_eth; in handle_ipv4()
85 struct ethhdr *old_eth; in handle_ipv4()
130 old_eth = (struct ethhdr *)(iph + 1); in handle_ipv4()
166 struct ethhdr *new_eth; in handle_ipv6()
167 struct ethhdr *old_eth; in handle_ipv6()
209 old_eth = (struct ethhdr *)(ip6h + 1); in handle_ipv6()
235 struct ethhdr *eth; in _xdp_tx_iptunnel()
H A Dtest_tc_neigh_fib.c31 if (data + sizeof(struct ethhdr) > data_end) in fill_fib_params_v4()
34 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v4()
59 if (data + sizeof(struct ethhdr) > data_end) in fill_fib_params_v6()
62 ip6h = (struct ipv6hdr *)(data + sizeof(struct ethhdr)); in fill_fib_params_v6()
85 if (data + sizeof(struct ethhdr) > data_end) in tc_chk()
129 struct ethhdr *eth = ctx_ptr(skb->data); in tc_redir()
H A Dtest_tc_neigh.c46 if (data + sizeof(struct ethhdr) > data_end) in is_remote_ep_v4()
49 ip4h = (struct iphdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v4()
63 if (data + sizeof(struct ethhdr) > data_end) in is_remote_ep_v6()
66 ip6h = (struct ipv6hdr *)(data + sizeof(struct ethhdr)); in is_remote_ep_v6()
80 if (data + sizeof(struct ethhdr) > data_end) in tc_chk()
H A Dtest_xdp_meta.c35 static bool check_smac(const struct ethhdr *eth) in ing_cls()
110 src = bpf_dynptr_slice(&data, sizeof(struct ethhdr), NULL, META_SIZE);
148 src = bpf_dynptr_slice(&data, sizeof(struct ethhdr), NULL, META_SIZE);
210 bpf_skb_load_bytes(ctx, sizeof(struct ethhdr), payload, sizeof(payload));
287 struct ethhdr *eth = ctx_ptr(ctx, data);
314 struct ethhdr *eth;
325 eth = (struct ethhdr *)data;
326 payload = data + sizeof(struct ethhdr);
351 struct ethhdr *eth = ctx_ptr(ctx, data);
381 struct ethhdr *et
[all...]
H A Ddynptr_fail.c257 struct ethhdr *hdr; in data_slice_out_of_bounds_skb()
1097 struct ethhdr *hdr; in skb_invalid_data_slice1()
1138 struct ethhdr *hdr; in skb_invalid_data_slice2()
1164 struct ethhdr *hdr; in skb_invalid_data_slice3()
1191 struct ethhdr *hdr; in skb_invalid_data_slice4()
1217 struct ethhdr *hdr; in xdp_invalid_data_slice1()
1423 struct ethhdr *hdr;
1448 struct ethhdr *hdr;
1547 __u32 hdr_size = sizeof(struct ethhdr); in clone_invalidate3()
1554 struct ethhdr *hd in clone_invalidate3()
[all...]
H A Dtest_tc_change_tail.c16 struct ethhdr *eth = data; in parse_ip_header()
24 iph = (void *)(data + sizeof(struct ethhdr)); in parse_ip_header()
27 if ((void *)(data + sizeof(struct ethhdr) + sizeof(*iph)) > data_end) in parse_ip_header()
H A Dtest_pkt_access.c91 if (off > sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) in test_pkt_write_access_subprog()
107 struct ethhdr *eth = (struct ethhdr *)(data); in test_pkt_access()
/linux/tools/testing/selftests/net/
H A Dnat6to4.bpf.c51 const int l2_header_size = sizeof(struct ethhdr); in sched_cls_ingress6_nat_6_prog()
54 const struct ethhdr * const eth = data; // used iff is_ethernet in sched_cls_ingress6_nat_6_prog()
89 struct ethhdr eth2; // used iff is_ethernet in sched_cls_ingress6_nat_6_prog()
139 struct ethhdr *new_eth = data; in sched_cls_ingress6_nat_6_prog()
152 const int l2_header_size = sizeof(struct ethhdr); in sched_cls_egress4_snat4_prog()
155 const struct ethhdr *const eth = data; // used iff is_ethernet in sched_cls_egress4_snat4_prog()
224 struct ethhdr eth2; // used iff is_ethernet in sched_cls_egress4_snat4_prog()
276 struct ethhdr *new_eth = data; in sched_cls_egress4_snat4_prog()
/linux/net/batman-adv/
H A Dbat_v_ogm.c685 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument
702 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update()
779 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument
806 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif()
851 struct ethhdr *ethhdr; in batadv_v_ogm_process() local
861 ethhdr = eth_hdr(skb); in batadv_v_ogm_process()
868 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process()
889 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process()
901 ethhdr->h_source); in batadv_v_ogm_process()
916 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process()
[all …]
H A Dgateway_client.c556 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local
569 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
570 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
682 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local
689 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_gw_out_of_range()
692 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range()
693 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
H A Dbat_v_elp.c554 struct ethhdr *ethhdr; in batadv_v_elp_packet_recv() local
562 ethhdr = eth_hdr(skb); in batadv_v_elp_packet_recv()
563 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_elp_packet_recv()
576 ethhdr->h_source, ntohl(elp_packet->seqno), in batadv_v_elp_packet_recv()
583 batadv_v_elp_neigh_update(bat_priv, ethhdr->h_source, if_incoming, in batadv_v_elp_packet_recv()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c27 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp()
31 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp()
34 arp = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
42 ipv6 = (void *)(skb->data + sizeof(struct ethhdr)); in mwifiex_discard_gratuitous_arp()
43 icmpv6 = (void *)(skb->data + sizeof(struct ethhdr) + in mwifiex_discard_gratuitous_arp()
78 struct ethhdr *eth; in mwifiex_process_rx_packet()
115 eth = (struct ethhdr *) in mwifiex_process_rx_packet()
/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_encap.c299 struct ethhdr *mac_hdr) in opa_vnic_chk_mac_tbl()
337 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_dlid()
366 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_sc()
389 struct ethhdr *mac_hdr = (struct ethhdr *)skb_mac_header(skb); in opa_vnic_get_vl()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcommon.h49 sizeof(struct ethhdr) + \
55 sizeof(struct ethhdr) + \

123456789