/Linux-v4.19/net/batman-adv/ |
D | routing.c | 196 struct ethhdr *ethhdr; in batadv_check_management_packet() local 202 ethhdr = eth_hdr(skb); in batadv_check_management_packet() 205 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet() 209 if (!is_valid_ether_addr(ethhdr->h_source)) in batadv_check_management_packet() 372 struct ethhdr *ethhdr; in batadv_recv_icmp_packet() local 381 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet() 384 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet() 388 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet() 392 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet() 408 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet() [all …]
|
D | bridge_loop_avoidance.c | 350 struct ethhdr *ethhdr; in batadv_bla_send_claim() local 386 ethhdr = (struct ethhdr *)skb->data; in batadv_bla_send_claim() 387 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr); in batadv_bla_send_claim() 395 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 416 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() 424 ether_addr_copy(ethhdr->h_dest, mac); in batadv_bla_send_claim() 427 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 431 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 434 __func__, ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 894 u8 *backbone_addr, struct ethhdr *ethhdr, in batadv_handle_request() argument [all …]
|
D | network-coding.c | 1065 struct ethhdr *ethhdr, in batadv_nc_code_packets() argument 1124 second_source = ethhdr->h_source; in batadv_nc_code_packets() 1133 first_source = ethhdr->h_source; in batadv_nc_code_packets() 1394 struct ethhdr *ethhdr; in batadv_nc_skb_store_before_coding() local 1402 ethhdr = eth_hdr(skb); in batadv_nc_skb_store_before_coding() 1403 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding() 1404 ether_addr_copy(ethhdr->h_dest, eth_dst_new); in batadv_nc_skb_store_before_coding() 1433 struct ethhdr *ethhdr) in batadv_nc_skb_dst_search() argument 1446 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search() 1464 if (batadv_nc_code_packets(bat_priv, skb, ethhdr, nc_packet, in batadv_nc_skb_dst_search() [all …]
|
D | soft-interface.c | 194 struct ethhdr *ethhdr; in batadv_interface_tx() local 224 ethhdr = eth_hdr(skb); in batadv_interface_tx() 226 switch (ntohs(ethhdr->h_proto)) { in batadv_interface_tx() 247 ethhdr = eth_hdr(skb); in batadv_interface_tx() 250 if (!is_multicast_ether_addr(ethhdr->h_source) && in batadv_interface_tx() 251 !batadv_bla_is_loopdetect_mac(ethhdr->h_source)) { in batadv_interface_tx() 252 client_added = batadv_tt_local_add(soft_iface, ethhdr->h_source, in batadv_interface_tx() 265 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx() 268 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx() 272 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx() [all …]
|
D | bat_v_ogm.c | 506 const struct ethhdr *ethhdr, in batadv_v_ogm_route_update() argument 523 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update() 605 const struct ethhdr *ethhdr, in batadv_v_ogm_process_per_outif() argument 632 forward = batadv_v_ogm_route_update(bat_priv, ethhdr, ogm2, orig_node, in batadv_v_ogm_process_per_outif() 672 struct ethhdr *ethhdr; in batadv_v_ogm_process() local 681 ethhdr = eth_hdr(skb); in batadv_v_ogm_process() 688 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process() 703 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process() 715 ethhdr->h_source); in batadv_v_ogm_process() 730 batadv_v_ogm_process_per_outif(bat_priv, ethhdr, ogm_packet, orig_node, in batadv_v_ogm_process() [all …]
|
D | send.c | 80 struct ethhdr *ethhdr; in batadv_send_skb_packet() local 103 ethhdr = eth_hdr(skb); in batadv_send_skb_packet() 104 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr); in batadv_send_skb_packet() 105 ether_addr_copy(ethhdr->h_dest, dst_addr); in batadv_send_skb_packet() 106 ethhdr->h_proto = htons(ETH_P_BATMAN); in batadv_send_skb_packet() 352 struct ethhdr *ethhdr; in batadv_send_skb_unicast() local 379 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast() 387 if (batadv_tt_global_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) in batadv_send_skb_unicast() 422 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_send_skb_via_tt_generic() local 427 src = ethhdr->h_source; in batadv_send_skb_via_tt_generic() [all …]
|
D | main.c | 373 struct ethhdr ethhdr_tmp, *ethhdr; in batadv_skb_set_priority() local 381 ethhdr = skb_header_pointer(skb, offset, sizeof(*ethhdr), ðhdr_tmp); in batadv_skb_set_priority() 382 if (!ethhdr) in batadv_skb_set_priority() 385 switch (ethhdr->h_proto) { in batadv_skb_set_priority() 395 ip_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 402 ip6_hdr = skb_header_pointer(skb, offset + sizeof(*ethhdr), in batadv_skb_set_priority() 635 struct ethhdr *ethhdr = (struct ethhdr *)(skb->data + header_len); in batadv_get_vid() local 639 if (ethhdr->h_proto != htons(ETH_P_8021Q)) in batadv_get_vid()
|
D | multicast.c | 710 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*iphdr))) in batadv_mcast_forw_mode_check_ipv4() 775 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6() 813 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_mcast_forw_mode_check() local 818 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check() 844 struct ethhdr *ethhdr) in batadv_mcast_forw_want_all_ip_count() argument 846 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count() 867 struct ethhdr *ethhdr) in batadv_mcast_forw_tt_node_get() argument 869 return batadv_transtable_search(bat_priv, NULL, ethhdr->h_dest, in batadv_mcast_forw_tt_node_get() 938 struct ethhdr *ethhdr) in batadv_mcast_forw_ip_node_get() argument 940 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_ip_node_get() [all …]
|
D | bat_iv_ogm.c | 832 const struct ethhdr *ethhdr, in batadv_iv_ogm_forward() argument 863 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward() 1018 const struct ethhdr *ethhdr, in batadv_iv_ogm_orig_update() argument 1043 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update() 1075 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update() 1080 ethhdr->h_source, in batadv_iv_ogm_orig_update() 1324 batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr, in batadv_iv_ogm_update_seqnos() argument 1378 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos() 1445 struct ethhdr *ethhdr; in batadv_iv_ogm_process_per_outif() local 1456 ethhdr = eth_hdr(skb_priv); in batadv_iv_ogm_process_per_outif() [all …]
|
D | gateway_client.c | 636 struct ethhdr *ethhdr; in batadv_gw_dhcp_recipient_get() local 649 ethhdr = eth_hdr(skb); in batadv_gw_dhcp_recipient_get() 650 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get() 760 struct ethhdr *ethhdr = (struct ethhdr *)skb->data; in batadv_gw_out_of_range() local 767 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_gw_out_of_range() 770 orig_dst_node = batadv_transtable_search(bat_priv, ethhdr->h_source, in batadv_gw_out_of_range() 771 ethhdr->h_dest, vid); in batadv_gw_out_of_range()
|
D | bat_v_elp.c | 522 struct ethhdr *ethhdr = (struct ethhdr *)skb_mac_header(skb); in batadv_v_elp_packet_recv() local 530 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_elp_packet_recv() 543 ethhdr->h_source, ntohl(elp_packet->seqno), in batadv_v_elp_packet_recv() 550 batadv_v_elp_neigh_update(bat_priv, ethhdr->h_source, if_incoming, in batadv_v_elp_packet_recv()
|
/Linux-v4.19/drivers/net/usb/ |
D | lg-vl600.c | 114 struct ethhdr *ethhdr; in vl600_rx_fixup() local 189 ethhdr = (struct ethhdr *) skb->data; in vl600_rx_fixup() 190 if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup() 193 memcpy(ethhdr->h_source, in vl600_rx_fixup() 194 &buf->data[sizeof(*ethhdr) + 0x8], in vl600_rx_fixup() 196 memcpy(ethhdr->h_dest, in vl600_rx_fixup() 197 &buf->data[sizeof(*ethhdr) + 0x12], in vl600_rx_fixup() 200 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup() 201 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup() 208 if ((buf->data[sizeof(*ethhdr)] & 0xf0) == 0x60) in vl600_rx_fixup() [all …]
|
/Linux-v4.19/net/hsr/ |
D | hsr_framereg.c | 166 struct ethhdr *ethhdr; in hsr_get_node() local 172 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_get_node() 175 if (ether_addr_equal(node->MacAddressA, ethhdr->h_source)) in hsr_get_node() 177 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() 184 || ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_get_node() 198 return hsr_add_node(node_db, ethhdr->h_source, seq_out); in hsr_get_node() 208 struct ethhdr *ethhdr; in hsr_handle_sup_frame() local 214 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_handle_sup_frame() 217 skb_pull(skb, sizeof(struct ethhdr)); in hsr_handle_sup_frame() [all …]
|
D | hsr_main.h | 98 struct ethhdr ethhdr; member 138 struct ethhdr ethhdr; member 143 struct ethhdr ethhdr; member
|
D | hsr_forward.c | 53 struct ethhdr *ethHdr; in is_supervision_frame() 58 ethHdr = (struct ethhdr *) skb_mac_header(skb); in is_supervision_frame() 152 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 153 hsr_ethhdr->ethhdr.h_proto = htons(protoVersion ? in hsr_fill_tag() 323 struct ethhdr *ethhdr; in hsr_fill_frame_info() local 331 ethhdr = (struct ethhdr *) skb_mac_header(skb); in hsr_fill_frame_info() 333 if (ethhdr->h_proto == htons(ETH_P_8021Q)) { in hsr_fill_frame_info() 338 if (ethhdr->h_proto == htons(ETH_P_PRP) in hsr_fill_frame_info() 339 || ethhdr->h_proto == htons(ETH_P_HSR)) { in hsr_fill_frame_info()
|
/Linux-v4.19/net/ethernet/ |
D | eth.c | 86 struct ethhdr *eth = skb_push(skb, ETH_HLEN); in eth_header() 130 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() 160 const struct ethhdr *eth; in eth_type_trans() 165 eth = (struct ethhdr *)skb->data; in eth_type_trans() 214 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse() 230 struct ethhdr *eth; in eth_header_cache() 233 eth = (struct ethhdr *) in eth_header_cache() 259 memcpy(((u8 *) hh->hh_data) + HH_DATA_OFF(sizeof(struct ethhdr)), in eth_header_cache_update() 435 struct ethhdr *eh, *eh2; in eth_gro_receive() 455 eh2 = (struct ethhdr *)(p->data + off_eth); in eth_gro_receive() [all …]
|
/Linux-v4.19/include/linux/ |
D | if_ether.h | 26 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() 31 static inline struct ethhdr *inner_eth_hdr(const struct sk_buff *skb) in inner_eth_hdr() 33 return (struct ethhdr *)skb_inner_mac_header(skb); in inner_eth_hdr()
|
/Linux-v4.19/samples/bpf/ |
D | xdp_adjust_tail_kern.c | 45 static __always_inline void swap_mac(void *data, struct ethhdr *orig_eth) in swap_mac() 47 struct ethhdr *eth; in swap_mac() 81 struct ethhdr *orig_eth; in send_icmp4_too_big() 87 off += sizeof(struct ethhdr); in send_icmp4_too_big() 95 icmp_hdr->un.frag.mtu = htons(MAX_PCKT_SIZE-sizeof(struct ethhdr)); in send_icmp4_too_big() 107 ICMP_TOOBIG_SIZE + headroom - sizeof(struct ethhdr)); in send_icmp4_too_big() 138 struct ethhdr *eth = data; in _xdp_icmp()
|
D | xdp_tx_iptunnel_kern.c | 67 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-v4.19/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
D | accel.h | 24 struct ethhdr *old_eth; in remove_metadata_hdr() 25 struct ethhdr *new_eth; in remove_metadata_hdr() 28 old_eth = (struct ethhdr *)skb->data; in remove_metadata_hdr() 29 new_eth = (struct ethhdr *)(skb->data + MLX5E_METADATA_ETHER_LEN); in remove_metadata_hdr()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_xdp.c | 70 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() 71 const struct ethhdr *old_eth, in set_ethhdr() 85 struct ethhdr *new_eth; in handle_ipv4() 86 struct ethhdr *old_eth; in handle_ipv4() 87 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4() 158 struct ethhdr *new_eth; in handle_ipv6() 159 struct ethhdr *old_eth; in handle_ipv6() 160 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6() 218 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
|
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/ |
D | sta_rx.c | 39 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()
|
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/ |
D | common.h | 49 sizeof(struct ethhdr) + \ 55 sizeof(struct ethhdr) + \
|
/Linux-v4.19/drivers/net/wireless/ath/ath10k/ |
D | wow.c | 107 struct ethhdr *old_hdr_pattern = (struct ethhdr *)hdr_8023_pattern; in ath10k_wow_convert_8023_to_80211() 108 struct ethhdr *old_hdr_mask = (struct ethhdr *)hdr_8023_bit_mask; in ath10k_wow_convert_8023_to_80211() 142 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 145 offsetof(struct ethhdr, h_source); in ath10k_wow_convert_8023_to_80211() 152 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
|
/Linux-v4.19/drivers/staging/gdm724x/ |
D | gdm_lte.c | 96 struct ethhdr eth; in gdm_lte_emulate_arp() 117 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp() 122 memcpy(ð, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp() 163 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp() 216 struct ethhdr eth; in gdm_lte_emulate_ndp() 238 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp() 245 memcpy(ð, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_ndp() 325 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp() 338 struct ethhdr *eth; in gdm_lte_tx_nic_type() 350 eth = (struct ethhdr *)skb->data; in gdm_lte_tx_nic_type() [all …]
|