Home
last modified time | relevance | path

Searched refs:h_source (Results 1 – 25 of 136) sorted by relevance

123456

/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c120 - 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 Duap_txrx.c137 - 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/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c87 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 Dxdp_features.c209 __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 Dtest_xdp.c74 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
H A Dtest_xdp_loop.c70 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
H A Dtest_xdp_dynptr.c72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
H A Dxdp_redirect_multi_kern.c106 __builtin_memcpy(eth->h_source, mac, ETH_ALEN);
/linux/net/bridge/
H A Dbr_input.c116 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid); in br_handle_frame_finish()
123 br_fdb_update(br, p, eth_hdr(skb)->h_source, in br_handle_frame_finish()
134 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, in br_handle_frame_finish()
144 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish()
255 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish()
349 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) { in br_handle_frame()
/linux/net/ipv6/netfilter/
H A Dip6t_eui64.c35 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 Dlec.h20 unsigned char h_source[ETH_ALEN]; member
29 unsigned char h_source[ETH_ALEN]; member
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c993 if (!is_broadcast_ether_addr(mask->h_source)) { in gfar_set_ether()
994 if (is_zero_ether_addr(mask->h_source)) { in gfar_set_ether()
998 upper_temp_mask = mask->h_source[0] << 16 | in gfar_set_ether()
999 mask->h_source[1] << 8 | in gfar_set_ether()
1000 mask->h_source[2]; in gfar_set_ether()
1001 lower_temp_mask = mask->h_source[3] << 16 | in gfar_set_ether()
1002 mask->h_source[4] << 8 | in gfar_set_ether()
1003 mask->h_source[5]; in gfar_set_ether()
1006 gfar_set_attribute(value->h_source[0] << 16 | in gfar_set_ether()
1007 value->h_source[1] << 8 | in gfar_set_ether()
[all …]
/linux/net/bluetooth/bnep/
H A Dcore.c55 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 Dhsr_framereg.c234 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(&eth_hdr(skb)->h_source, node->macaddress_A, ETH_ALEN); in hsr_addr_subst_source()
/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c398 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, &ethhdr, sizeof(ethhdr.h_dest) + sizeof(ethhdr.h_source)); in iwl_mei_tx_copy_to_csme()
/linux/net/bridge/netfilter/
H A Dnft_reject_bridge.c30 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()
H A Debt_snat.c28 ether_addr_copy(eth_hdr(skb)->h_source, info->mac); in ebt_snat_tg()
/linux/drivers/net/wireless/marvell/libertas/
H A Drx.c120 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/batman-adv/
H A Dbat_v_elp.c563 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()
H A Dbat_v_ogm.c702 orig_neigh_node = batadv_v_ogm_orig_get(bat_priv, ethhdr->h_source); in batadv_v_ogm_route_update()
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()
998 if (batadv_is_my_mac(bat_priv, ethhdr->h_source)) in batadv_v_ogm_packet_recv()
/linux/samples/bpf/
H A Dparse_simple.c22 unsigned char h_source[ETH_ALEN]; member
H A Dxdp_tx_iptunnel_kern.c72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
/linux/net/netfilter/
H A Dxt_mac.c36 ret = ether_addr_equal(eth_hdr(skb)->h_source, info->srcaddr); in mac_mt()
/linux/drivers/net/usb/
H A Dlg-vl600.c179 memcpy(ethhdr->h_source, in vl600_rx_fixup()
186 eth_zero_addr(ethhdr->h_source); in vl600_rx_fixup()
/linux/include/uapi/linux/
H A Dif_ether.h175 unsigned char h_source[ETH_ALEN]; /* source ether addr */ member

123456