Home
last modified time | relevance | path

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

1234567891011

/linux/net/batman-adv/
A Drouting.c181 struct ethhdr *ethhdr; in batadv_check_management_packet() local
187 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
344 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local
353 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
387 ethhdr->h_dest); in batadv_recv_icmp_packet()
444 struct ethhdr *ethhdr; in batadv_check_unicast_packet() local
450 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet()
662 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet() local
793 struct ethhdr *ethhdr; in batadv_check_unicast_ttvn() local
807 ethhdr = (struct ethhdr *)(skb->data + hdr_len); in batadv_check_unicast_ttvn()
[all …]
A Dbridge_loop_avoidance.c343 struct ethhdr *ethhdr; in batadv_bla_send_claim() local
379 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim()
420 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim()
427 __func__, ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim()
896 u8 *backbone_addr, struct ethhdr *ethhdr, in batadv_handle_request() argument
1012 struct ethhdr *ethhdr) in batadv_check_claim_group() argument
1083 struct ethhdr *ethhdr; in batadv_bla_process_claim() local
1164 ethhdr); in batadv_bla_process_claim()
1841 struct ethhdr *ethhdr; in batadv_bla_loopdetect_check() local
1897 struct ethhdr *ethhdr; in batadv_bla_rx() local
[all …]
A Dnetwork-coding.c1049 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument
1374 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local
1383 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding()
1413 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument
1506 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_nc_skb_forward() local
1559 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_nc_skb_store_for_decoding() local
1618 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_nc_skb_store_sniffed_unicast() local
1647 struct ethhdr *ethhdr, ethhdr_tmp; in batadv_nc_skb_decode_packet() local
1670 *ethhdr = ethhdr_tmp; in batadv_nc_skb_decode_packet()
1734 struct ethhdr *ethhdr, in batadv_nc_find_decoding_packet() argument
[all …]
A Dsoft-interface.c181 struct ethhdr *ethhdr; in batadv_interface_tx() local
215 ethhdr = eth_hdr(skb); in batadv_interface_tx()
217 proto = ethhdr->h_proto; in batadv_interface_tx()
243 ethhdr = eth_hdr(skb); in batadv_interface_tx()
271 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
283 ethhdr = eth_hdr(skb); in batadv_interface_tx()
418 struct ethhdr *ethhdr; in batadv_interface_rx() local
437 ethhdr = eth_hdr(skb); in batadv_interface_rx()
439 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_rx()
471 ethhdr->h_source, vid); in batadv_interface_rx()
[all …]
A Dsend.c68 struct ethhdr *ethhdr; in batadv_send_skb_packet() local
91 ethhdr = eth_hdr(skb); in batadv_send_skb_packet()
92 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet()
93 ether_addr_copy(ethhdr->h_dest, dst_addr); in batadv_send_skb_packet()
94 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet()
338 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local
365 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast()
373 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast()
408 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local
413 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic()
[all …]
A Dmain.c363 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local
371 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), &ethhdr_tmp); in batadv_skb_set_priority()
372 if (!ethhdr) in batadv_skb_set_priority()
375 switch (ethhdr->h_proto) { in batadv_skb_set_priority()
385 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
392 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority()
625 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local
629 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
A Dbat_v_ogm.c688 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument
705 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update()
782 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument
809 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif()
855 struct ethhdr *ethhdr; in batadv_v_ogm_process() local
864 ethhdr = eth_hdr(skb); in batadv_v_ogm_process()
871 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process()
904 ethhdr->h_source); in batadv_v_ogm_process()
963 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, in batadv_v_ogm_process()
989 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_v_ogm_packet_recv() local
[all …]
A Dbat_iv_ogm.c683 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument
918 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument
1206 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument
1327 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local
1349 ethhdr->h_source); in batadv_iv_ogm_process_per_outif()
1385 ethhdr->h_source); in batadv_iv_ogm_process_per_outif()
1559 struct ethhdr *ethhdr; in batadv_iv_ogm_process() local
1565 ethhdr = eth_hdr(skb); in batadv_iv_ogm_process()
1623 ethhdr->h_source); in batadv_iv_ogm_process()
1645 ethhdr->h_source); in batadv_iv_ogm_process()
[all …]
A Dmulticast.c1069 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local
1074 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check()
1102 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument
1104 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count()
1148 struct ethhdr *ethhdr) in batadv_mcast_forw_tt_node_get() argument
1219 struct ethhdr *ethhdr) in batadv_mcast_forw_ip_node_get() argument
1221 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_ip_node_get()
1324 struct ethhdr *ethhdr) in batadv_mcast_forw_rtr_node_get() argument
1355 struct ethhdr *ethhdr; in batadv_mcast_forw_mode() local
1365 ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode()
[all …]
A Dgateway_client.c565 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local
578 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get()
579 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
691 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local
698 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_gw_out_of_range()
701 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range()
702 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
/linux/drivers/net/usb/
A Dlg-vl600.c100 struct ethhdr *ethhdr; in vl600_rx_fixup() local
175 ethhdr = (struct ethhdr *) skb->data; 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()
194 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup()
195 ethhdr->h_proto = htons(ETH_P_IPV6); in vl600_rx_fixup()
237 int orig_len = skb->len - sizeof(struct ethhdr); in vl600_tx_fixup()
[all …]
/linux/include/linux/
A Dif_ether.h22 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) in eth_hdr()
24 return (struct ethhdr *)skb_mac_header(skb); in eth_hdr()
30 static inline struct ethhdr *skb_eth_hdr(const struct sk_buff *skb) in skb_eth_hdr()
32 return (struct ethhdr *)skb->data; in skb_eth_hdr()
35 static inline struct ethhdr *inner_eth_hdr(const struct sk_buff *skb) in inner_eth_hdr()
37 return (struct ethhdr *)skb_inner_mac_header(skb); in inner_eth_hdr()
/linux/net/hsr/
A Dhsr_main.h90 struct ethhdr ethhdr; member
128 struct ethhdr ethhdr; member
133 struct ethhdr ethhdr; member
272 struct ethhdr *ethhdr; in prp_check_lsdu_size() local
278 ethhdr = (struct ethhdr *)skb_mac_header(skb); in prp_check_lsdu_size()
280 if (ethhdr->h_proto == htons(ETH_P_8021Q)) in prp_check_lsdu_size()
A Dhsr_framereg.c211 struct ethhdr *ethhdr; in hsr_get_node() local
219 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_get_node()
237 if (ethhdr->h_proto == htons(ETH_P_PRP) || in hsr_get_node()
238 ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node()
254 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node()
272 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local
291 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame()
295 ethhdr = (struct ethhdr *)skb_mac_header(skb); in hsr_handle_sup_frame()
298 if (ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_handle_sup_frame()
299 pull_size = sizeof(struct ethhdr); in hsr_handle_sup_frame()
[all …]
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()
269 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
270 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag()
272 skb->protocol = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag()
570 struct ethhdr *ethhdr; in fill_frame_info() local
575 if (skb->mac_len < sizeof(struct ethhdr)) in fill_frame_info()
586 ethhdr = (struct ethhdr *)skb_mac_header(skb); in fill_frame_info()
588 proto = ethhdr->h_proto; in fill_frame_info()
594 vlan_hdr = (struct hsr_vlan_ethhdr *)ethhdr; in fill_frame_info()
/linux/net/ethernet/
A Deth.c83 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header()
128 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen()
159 const struct ethhdr *eth; in eth_type_trans()
164 eth = (struct ethhdr *)skb->data; in eth_type_trans()
215 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse()
231 struct ethhdr *eth; in eth_header_cache()
234 eth = (struct ethhdr *) in eth_header_cache()
276 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol()
410 struct ethhdr *eh, *eh2; in eth_gro_receive()
430 eh2 = (struct ethhdr *)(p->data + off_eth); in eth_gro_receive()
[all …]
/linux/samples/bpf/
A Dxdp_adjust_tail_kern.c48 static __always_inline void swap_mac(void *data, struct ethhdr *orig_eth) in swap_mac()
50 struct ethhdr *eth; in swap_mac()
84 struct ethhdr *orig_eth; in send_icmp4_too_big()
90 off += sizeof(struct ethhdr); in send_icmp4_too_big()
98 icmp_hdr->un.frag.mtu = htons(max_pcktsz - sizeof(struct ethhdr)); in send_icmp4_too_big()
110 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big()
141 struct ethhdr *eth = data; in _xdp_icmp()
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/
A Dtest_xdp.c68 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
69 const struct ethhdr *old_eth, in set_ethhdr()
83 struct ethhdr *new_eth; in handle_ipv4()
84 struct ethhdr *old_eth; in handle_ipv4()
85 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
156 struct ethhdr *new_eth; in handle_ipv6()
157 struct ethhdr *old_eth; in handle_ipv6()
158 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
216 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
A Dtest_xdp_loop.c64 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr()
65 const struct ethhdr *old_eth, in set_ethhdr()
79 struct ethhdr *new_eth; in handle_ipv4()
80 struct ethhdr *old_eth; in handle_ipv4()
81 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4()
152 struct ethhdr *new_eth; in handle_ipv6()
153 struct ethhdr *old_eth; in handle_ipv6()
154 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6()
212 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
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()
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()
A Dtest_tcp_check_syncookie_kern.c50 struct ethhdr *ethh; in check_syncookie()
66 ipv4h = data + sizeof(struct ethhdr); in check_syncookie()
73 tcph = data + sizeof(struct ethhdr) + sizeof(struct iphdr); in check_syncookie()
98 ipv6h = data + sizeof(struct ethhdr); in check_syncookie()
105 tcph = data + sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in check_syncookie()
/linux/drivers/net/ethernet/mellanox/mlx5/core/accel/
A Daccel.h23 struct ethhdr *old_eth; in remove_metadata_hdr()
24 struct ethhdr *new_eth; in remove_metadata_hdr()
27 old_eth = (struct ethhdr *)skb->data; in remove_metadata_hdr()
28 new_eth = (struct ethhdr *)(skb->data + MLX5E_METADATA_ETHER_LEN); in remove_metadata_hdr()
/linux/drivers/net/wireless/marvell/mwifiex/
A 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()

Completed in 47 milliseconds

1234567891011