/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_rx.c | 120 - sizeof(rx_pkt_hdr->eth803_hdr.h_source) in mwifiex_process_rx_packet() 123 memcpy(eth->h_source, rx_pkt_hdr->eth803_hdr.h_source, in mwifiex_process_rx_packet() 124 sizeof(eth->h_source)); in mwifiex_process_rx_packet() 241 memcpy(ta, rx_pkt_hdr->eth803_hdr.h_source, ETH_ALEN); in mwifiex_process_sta_rx_packet()
|
H A D | uap_txrx.c | 137 - sizeof(rx_pkt_hdr->eth803_hdr.h_source) in mwifiex_uap_queue_bridged_pkt() 139 memcpy(p_ethhdr->h_source, rx_pkt_hdr->eth803_hdr.h_source, in mwifiex_uap_queue_bridged_pkt() 140 sizeof(p_ethhdr->h_source)); in mwifiex_uap_queue_bridged_pkt() 186 src_node = mwifiex_get_sta_entry(priv, rx_pkt_hdr->eth803_hdr.h_source); in mwifiex_uap_queue_bridged_pkt() 290 src_node = mwifiex_get_sta_entry(priv, p_ethhdr->h_source); in mwifiex_uap_recv_packet() 398 ether_addr_copy(ta, rx_pkt_hdr->eth803_hdr.h_source); in mwifiex_process_uap_rx_packet()
|
/linux/net/batman-adv/ |
H A D | bridge_loop_avoidance.c | 389 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 410 ethhdr->h_source, batadv_print_vid(vid)); in batadv_bla_send_claim() 421 ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 425 ether_addr_copy(ethhdr->h_source, mac); in batadv_bla_send_claim() 428 __func__, ethhdr->h_source, ethhdr->h_dest, in batadv_bla_send_claim() 912 __func__, batadv_print_vid(vid), ethhdr->h_source); in batadv_handle_request() 1032 backbone_addr = ethhdr->h_source; in batadv_check_claim_group() 1169 __func__, ethhdr->h_source, batadv_print_vid(vid), in batadv_bla_process_claim() 1182 ethhdr->h_source, vid)) in batadv_bla_process_claim() 1187 ethhdr->h_source, hw_src, vid)) in batadv_bla_process_claim() [all …]
|
H A D | bat_iv_ogm.c | 721 ether_addr_copy(batadv_ogm_packet->prev_sender, ethhdr->h_source); in batadv_iv_ogm_forward() 948 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_orig_update() 980 orig_tmp = batadv_iv_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_iv_ogm_orig_update() 985 ethhdr->h_source, in batadv_iv_ogm_orig_update() 1267 if (batadv_compare_eth(neigh_addr, ethhdr->h_source) && in batadv_iv_ogm_update_seqnos() 1350 if (batadv_compare_eth(ethhdr->h_source, ogm_packet->orig)) in batadv_iv_ogm_process_per_outif() 1356 ethhdr->h_source); in batadv_iv_ogm_process_per_outif() 1368 ethhdr->h_source); in batadv_iv_ogm_process_per_outif() 1381 (batadv_compare_eth(router->addr, ethhdr->h_source))) in batadv_iv_ogm_process_per_outif() 1392 ethhdr->h_source); in batadv_iv_ogm_process_per_outif() [all …]
|
H A D | routing.c | 194 if (!is_valid_ether_addr(ethhdr->h_source)) in batadv_check_management_packet() 360 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_icmp_packet() 457 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_check_unicast_packet() 671 ethhdr->h_source, unicast_packet->dest); in batadv_route_unicast_packet() 978 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet() 1188 if (is_multicast_ether_addr(ethhdr->h_source)) in batadv_recv_bcast_packet() 1192 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_recv_bcast_packet()
|
H A D | mesh-interface.c | 234 if (!is_multicast_ether_addr(ethhdr->h_source) && in batadv_interface_tx() 235 !batadv_bla_is_loopdetect_mac(ethhdr->h_source)) { in batadv_interface_tx() 236 client_added = batadv_tt_local_add(mesh_iface, ethhdr->h_source, in batadv_interface_tx() 462 ethhdr->h_source, vid); in batadv_interface_rx() 469 batadv_tt_global_is_isolated(bat_priv, ethhdr->h_source, in batadv_interface_rx() 477 } else if (batadv_is_ap_isolated(bat_priv, ethhdr->h_source, in batadv_interface_rx()
|
H A D | bat_v_elp.c | 567 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_elp_packet_recv() 580 ethhdr->h_source, ntohl(elp_packet->seqno), in batadv_v_elp_packet_recv() 587 batadv_v_elp_neigh_update(bat_priv, ethhdr->h_source, if_incoming, in batadv_v_elp_packet_recv()
|
H A D | bat_v_ogm.c | 706 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update() 871 ethhdr->h_source, if_incoming->net_dev->name, in batadv_v_ogm_process() 892 hardif_neigh = batadv_hardif_neigh_get(if_incoming, ethhdr->h_source); in batadv_v_ogm_process() 904 ethhdr->h_source); in batadv_v_ogm_process() 1004 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_ogm_packet_recv()
|
H A D | network-coding.c | 1104 second_source = ethhdr->h_source; in batadv_nc_code_packets() 1113 first_source = ethhdr->h_source; in batadv_nc_code_packets() 1379 ether_addr_copy(ethhdr->h_source, ethhdr->h_dest); in batadv_nc_skb_store_before_coding() 1422 ethhdr->h_source, nc_node); in batadv_nc_skb_dst_search() 1523 ethhdr->h_source, in batadv_nc_skb_forward() 1572 ethhdr->h_source, in batadv_nc_skb_store_for_decoding() 1744 dest = ethhdr->h_source; in batadv_nc_find_decoding_packet()
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe_debugfs.c | 87 unsigned char h_source[ETH_ALEN]; in mtk_ppe_debugfs_foe_show() local 154 *((__be32 *)h_source) = htonl(l2->src_mac_hi); in mtk_ppe_debugfs_foe_show() 155 *((__be16 *)&h_source[4]) = htons(l2->src_mac_lo); in mtk_ppe_debugfs_foe_show() 162 h_source, h_dest, ntohs(l2->etype), in mtk_ppe_debugfs_foe_show()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | xdp_features.c | 209 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN); in xdp_do_tx() 210 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_tx() 261 __builtin_memcpy(tmp_mac, eh->h_source, ETH_ALEN); in xdp_do_redirect_cpumap() 262 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_redirect_cpumap()
|
H A D | test_xdp.c | 74 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
|
/linux/net/ipv6/netfilter/ |
H A D | ip6t_eui64.c | 35 memcpy(eui64, eth_hdr(skb)->h_source, 3); in eui64_mt6() 36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); in eui64_mt6()
|
/linux/net/atm/ |
H A D | lec.h | 20 unsigned char h_source[ETH_ALEN]; member 29 unsigned char h_source[ETH_ALEN]; member
|
/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 981 if (!is_broadcast_ether_addr(mask->h_source)) { in gfar_set_ether() 982 if (is_zero_ether_addr(mask->h_source)) { in gfar_set_ether() 986 upper_temp_mask = mask->h_source[0] << 16 | in gfar_set_ether() 987 mask->h_source[1] << 8 | in gfar_set_ether() 988 mask->h_source[2]; in gfar_set_ether() 989 lower_temp_mask = mask->h_source[3] << 16 | in gfar_set_ether() 990 mask->h_source[4] << 8 | in gfar_set_ether() 991 mask->h_source[5]; in gfar_set_ether() 994 gfar_set_attribute(value->h_source[0] << 16 | in gfar_set_ether() 995 value->h_source[1] << 8 | in gfar_set_ether() [all …]
|
/linux/net/bluetooth/bnep/ |
H A D | core.c | 55 if (ether_addr_equal(dst, s->eh.h_source)) in __bnep_get_session() 388 __skb_put_data(nskb, s->eh.h_source, ETH_ALEN); in bnep_rx_frame() 438 if (compress_src && ether_addr_equal(eh->h_dest, s->eh.h_source)) in bnep_tx_frame() 441 if (compress_dst && ether_addr_equal(eh->h_source, s->eh.h_dest)) in bnep_tx_frame() 450 iv[il++] = (struct kvec) { eh->h_source, ETH_ALEN }; in bnep_tx_frame() 597 memcpy(s->eh.h_source, &dst, ETH_ALEN); in bnep_add_connection() 680 memcpy(ci->dst, s->eh.h_source, ETH_ALEN); in __bnep_copy_ci()
|
/linux/net/hsr/ |
H A D | hsr_framereg.c | 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() 279 return hsr_add_node(hsr, node_db, ethhdr->h_source, seq_out, in hsr_get_node() 382 ether_addr_copy(node_real->macaddress_B, ethhdr->h_source); in hsr_handle_sup_frame() 423 memcpy(ð_hdr(skb)->h_source, node->macaddress_A, ETH_ALEN); in hsr_addr_subst_source()
|
/linux/drivers/net/wireless/intel/iwlwifi/mei/ |
H A D | net.c | 398 memcpy(ethhdr.h_source, ieee80211_get_SA(hdr), ETH_ALEN); in iwl_mei_tx_copy_to_csme() 405 eth = skb_push(skb, sizeof(ethhdr.h_dest) + sizeof(ethhdr.h_source)); in iwl_mei_tx_copy_to_csme() 406 memcpy(eth, ðhdr, sizeof(ethhdr.h_dest) + sizeof(ethhdr.h_source)); in iwl_mei_tx_copy_to_csme()
|
/linux/net/sched/ |
H A D | act_skbmod.c | 72 ether_addr_copy(eth_hdr(skb)->h_source, p->eth_src); in tcf_skbmod_act() 80 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act() 81 ether_addr_copy(eth_hdr(skb)->h_source, (u8 *)tmpaddr); in tcf_skbmod_act()
|
/linux/net/bridge/netfilter/ |
H A D | nft_reject_bridge.c | 30 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest); in nft_reject_br_push_etherhdr() 31 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source); in nft_reject_br_push_etherhdr()
|
/linux/drivers/net/wireless/marvell/libertas/ |
H A D | rx.c | 120 memcpy(p_ethhdr->h_source, p_rx_pkt->eth803_hdr.src_addr, in lbs_process_rxed_packet() 121 sizeof(p_ethhdr->h_source)); in lbs_process_rxed_packet()
|
/linux/net/ethernet/ |
H A D | eth.c | 96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header() 204 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse() 229 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); in eth_header_cache()
|
/linux/samples/bpf/ |
H A D | parse_simple.c | 22 unsigned char h_source[ETH_ALEN]; member
|
H A D | xdp_tx_iptunnel_kern.c | 72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
|
/linux/net/netfilter/ |
H A D | xt_mac.c | 36 ret = ether_addr_equal(eth_hdr(skb)->h_source, info->srcaddr); in mac_mt()
|