Home
last modified time | relevance | path

Searched refs:h_dest (Results 1 – 25 of 188) sorted by relevance

12345678

/linux/net/802/
H A Dstp.c42 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) { in stp_pdu_rcv()
43 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv()
46 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
/linux/drivers/net/wireless/nxp/nxpwifi/
H A Dsta_rx.c106 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in nxpwifi_process_rx_packet()
112 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in nxpwifi_process_rx_packet()
113 sizeof(eth->h_dest)); in nxpwifi_process_rx_packet()
139 if (likely(!is_multicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest))) { in nxpwifi_process_rx_packet()
216 rx_pkt_hdr->eth803_hdr.h_dest)) { in nxpwifi_process_sta_rx_packet()
H A Duap_txrx.c129 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in nxpwifi_uap_queue_bridged_pkt()
134 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in nxpwifi_uap_queue_bridged_pkt()
135 sizeof(p_ethhdr->h_dest)); in nxpwifi_uap_queue_bridged_pkt()
192 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in nxpwifi_uap_queue_bridged_pkt()
240 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in nxpwifi_handle_uap_rx_forward()
286 dst_node = nxpwifi_get_sta_entry(priv, p_ethhdr->h_dest); in nxpwifi_uap_recv_packet()
289 if (is_multicast_ether_addr(p_ethhdr->h_dest) || dst_node) { in nxpwifi_uap_recv_packet()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_rx.c119 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_process_rx_packet()
125 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
126 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
155 if (likely(!is_multicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest))) { in mwifiex_process_rx_packet()
233 !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_process_sta_rx_packet()
H A Duap_txrx.c136 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
141 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
142 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
195 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
252 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
297 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
298 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
328 if (mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) in mwifiex_uap_recv_packet()
/linux/drivers/scsi/qedf/
H A Dqedf_fip.c37 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv()
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv()
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv()
201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/linux/drivers/net/wireless/intel/iwlwifi/mei/
H A Dnet.c41 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()
397 memcpy(ethhdr.h_dest, ieee80211_get_DA(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/hsr/
H A Dhsr_forward.c47 if (!ether_addr_equal(eth_hdr->h_dest, in is_supervision_frame()
492 is_unicast_ether_addr(eth_hdr(skb)->h_dest) && in hsr_drop_frame()
494 eth_hdr(skb)->h_dest)) { in hsr_drop_frame()
505 if (skb && is_unicast_ether_addr(eth_hdr(skb)->h_dest) && in hsr_drop_frame()
507 eth_hdr(skb)->h_dest)) { in hsr_drop_frame()
519 if (skb && is_unicast_ether_addr(eth_hdr(skb)->h_dest) && in hsr_drop_frame()
521 eth_hdr(skb)->h_dest)) { in hsr_drop_frame()
614 if (hsr_addr_is_self(hsr, eth_hdr(skb)->h_dest)) { in check_local_dest()
736 is_unicast_ether_addr(ethhdr->h_dest)) { in fill_frame_info()
738 hsr_is_node_in_db(&hsr->node_db, ethhdr->h_dest); in fill_frame_info()
[all …]
/linux/net/batman-adv/
H A Drouting.c195 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
426 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
434 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
457 ethhdr->h_dest); in batadv_recv_icmp_packet()
523 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_packet()
531 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_check_unicast_packet()
911 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_ttvn()
919 if (batadv_tt_local_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
921 ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn()
926 ethhdr->h_dest); in batadv_check_unicast_ttvn()
[all …]
H A Dmesh-interface.c302 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx()
305 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx()
311 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
342 if (do_bcast && !is_broadcast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
518 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_rx()
532 ethhdr->h_dest, vid)) { in batadv_interface_rx()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c88 unsigned char h_dest[ETH_ALEN]; in mtk_ppe_debugfs_foe_show() local
156 *((__be32 *)h_dest) = htonl(l2->dest_mac_hi); in mtk_ppe_debugfs_foe_show()
157 *((__be16 *)&h_dest[4]) = htons(l2->dest_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.c210 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_tx()
211 __builtin_memcpy(eh->h_dest, tmp_mac, ETH_ALEN); in xdp_do_tx()
262 __builtin_memcpy(eh->h_source, eh->h_dest, ETH_ALEN); in xdp_do_redirect_cpumap()
263 __builtin_memcpy(eh->h_dest, tmp_mac, 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()
75 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); 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()
71 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); 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()
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
/linux/net/netfilter/
H A Dnf_flow_table_path.c96 u8 h_dest[ETH_ALEN]; member
111 memcpy(info->h_dest, ha, ETH_ALEN); in nft_dev_path_info()
150 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); in nft_dev_path_info()
259 memcpy(route->tuple[dir].out.h_dest, info.h_dest, ETH_ALEN); in nft_dev_forward_path()
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1017 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
1019 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
1020 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
1023 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1027 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1028 mask->h_dest[1] << 8 | in gfar_set_ether()
1029 mask->h_dest[2]; in gfar_set_ether()
1030 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1031 mask->h_dest[4] << 8 | in gfar_set_ether()
1032 mask->h_dest[5]; in gfar_set_ether()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c1002 if (!is_zero_ether_addr(eth_mask->h_dest)) { in otx2_prepare_flow_request()
1003 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request()
1004 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request()
1098 !is_zero_ether_addr(fsp->m_ext.h_dest)) { in otx2_prepare_flow_request()
1099 ether_addr_copy(pkt->dmac, fsp->h_ext.h_dest); in otx2_prepare_flow_request()
1100 ether_addr_copy(pmask->dmac, fsp->m_ext.h_dest); in otx2_prepare_flow_request()
1180 if (is_zero_ether_addr(eth_mask->h_dest) && in otx2_is_flow_rule_dmacfilter()
1181 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter()
1337 ether_addr_copy(eth_hdr->h_dest, pfvf->netdev->dev_addr); in otx2_add_flow_with_pfmac()
1340 otx2_dmacflt_add(pfvf, eth_hdr->h_dest, 0); in otx2_add_flow_with_pfmac()
[all …]
/linux/net/bridge/
H A Dbr_input.c149 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
151 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
204 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
207 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, 0); in br_handle_frame_finish()
344 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
/linux/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c72 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
/linux/net/dsa/
H A Dtag_sja1105.c81 u64 dmac = ether_addr_to_u64(hdr->h_dest); in sja1105_is_link_local()
128 u64 dmac = ether_addr_to_u64(hdr->h_dest); in sja1105_is_meta_frame()
352 hdr->h_dest[3] = meta->dmac_byte_3; in sja1105_transfer_meta()
353 hdr->h_dest[4] = meta->dmac_byte_4; in sja1105_transfer_meta()
493 source_port = hdr->h_dest[3]; in sja1105_rcv()
494 switch_id = hdr->h_dest[4]; in sja1105_rcv()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c323 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
324 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
386 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs()
387 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
388 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs()
389 fs->h_ext.h_dest); in set_flow_attrs()
563 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
717 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
/linux/net/bluetooth/bnep/
H A Dcore.c400 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
457 if (compress_src && ether_addr_equal(eh->h_dest, s->eh.h_source)) in bnep_tx_frame()
460 if (compress_dst && ether_addr_equal(eh->h_source, s->eh.h_dest)) in bnep_tx_frame()
474 iv[il++] = (struct kvec) { eh->h_dest, ETH_ALEN }; in bnep_tx_frame()
620 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection()
622 eth_hw_addr_set(dev, s->eh.h_dest); in bnep_add_connection()
/linux/include/net/
H A Dfirewire.h23 u8 h_dest[FWNET_ALEN]; /* destination address */ member
/linux/net/sched/
H A Dact_skbmod.c73 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act()
82 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act()
83 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act()

12345678