/openbmc/linux/net/802/ |
H A D | stp.c | 42 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()
|
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_encap.c | 311 key = mac_hdr->h_dest[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_chk_mac_tbl() 319 if (!memcmp(node->entry.mac_addr, mac_hdr->h_dest, in opa_vnic_chk_mac_tbl() 344 if (is_multicast_ether_addr(mac_hdr->h_dest)) { in opa_vnic_get_dlid() 347 if (is_local_ether_addr(mac_hdr->h_dest)) { in opa_vnic_get_dlid() 348 dlid = ((uint32_t)mac_hdr->h_dest[5] << 16) | in opa_vnic_get_dlid() 349 ((uint32_t)mac_hdr->h_dest[4] << 8) | in opa_vnic_get_dlid() 350 mac_hdr->h_dest[3]; in opa_vnic_get_dlid() 373 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc() 378 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc() 396 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_vl() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | e1000x_common.c | 84 if (is_broadcast_ether_addr(ehdr->h_dest)) { in e1000x_rx_group_filter() 88 } else if (is_multicast_ether_addr(ehdr->h_dest)) { in e1000x_rx_group_filter() 104 if (!memcmp(ehdr->h_dest, (uint8_t *)ra, ETH_ALEN)) { in e1000x_rx_group_filter() 106 MAC_ARG(ehdr->h_dest)); in e1000x_rx_group_filter() 110 trace_e1000x_rx_flt_ucast_mismatch(MAC_ARG(ehdr->h_dest)); in e1000x_rx_group_filter() 113 f = (((ehdr->h_dest[5] << 8) | ehdr->h_dest[4]) >> f) & 0xfff; in e1000x_rx_group_filter() 118 trace_e1000x_rx_flt_inexact_mismatch(MAC_ARG(ehdr->h_dest), in e1000x_rx_group_filter()
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_rx.c | 119 - 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 D | uap_txrx.c | 136 - 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()
|
/openbmc/linux/drivers/scsi/qedf/ |
H A D | qedf_fip.c | 37 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()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mei/ |
H A D | net.c | 41 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, ðhdr, sizeof(ethhdr.h_dest) + sizeof(ethhdr.h_source)); in iwl_mei_tx_copy_to_csme()
|
/openbmc/linux/net/batman-adv/ |
H A D | routing.c | 190 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet() 356 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet() 364 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet() 387 ethhdr->h_dest); in batadv_recv_icmp_packet() 453 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_packet() 461 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_check_unicast_packet() 810 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_ttvn() 820 ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn() 825 ethhdr->h_dest); in batadv_check_unicast_ttvn() 866 ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn() [all …]
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe_debugfs.c | 87 unsigned char h_dest[ETH_ALEN]; in mtk_ppe_debugfs_foe_show() local 155 *((__be32 *)h_dest) = htonl(l2->dest_mac_hi); in mtk_ppe_debugfs_foe_show() 156 *((__be16 *)&h_dest[4]) = htons(l2->dest_mac_lo); in mtk_ppe_debugfs_foe_show() 161 h_source, h_dest, ntohs(l2->etype), in mtk_ppe_debugfs_foe_show()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | xdp_features.c | 210 __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 D | test_xdp_loop.c | 69 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 70 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
|
H A D | test_xdp.c | 73 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr() 74 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | ebt_redirect.c | 29 ether_addr_copy(eth_hdr(skb)->h_dest, in ebt_redirect_tg() 32 ether_addr_copy(eth_hdr(skb)->h_dest, xt_in(par)->dev_addr); in ebt_redirect_tg()
|
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() 115 const unsigned char *dest = eth_hdr(pkt->skb)->h_dest; in nft_reject_bridge_eval()
|
/openbmc/linux/net/atm/ |
H A D | lec.h | 19 unsigned char h_dest[ETH_ALEN]; member 28 unsigned char h_dest[ETH_ALEN]; member
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 1006 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether() 1009 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether() 1013 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether() 1014 mask->h_dest[1] << 8 | in gfar_set_ether() 1015 mask->h_dest[2]; in gfar_set_ether() 1017 mask->h_dest[4] << 8 | in gfar_set_ether() 1018 mask->h_dest[5]; in gfar_set_ether() 1023 value->h_dest[1] << 8 | in gfar_set_ether() 1024 value->h_dest[2], in gfar_set_ether() 1028 value->h_dest[4] << 8 | in gfar_set_ether() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_flows.c | 832 if (!is_zero_ether_addr(eth_mask->h_dest)) { in otx2_prepare_flow_request() 833 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request() 834 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request() 928 !is_zero_ether_addr(fsp->m_ext.h_dest)) { in otx2_prepare_flow_request() 929 ether_addr_copy(pkt->dmac, fsp->h_ext.h_dest); in otx2_prepare_flow_request() 958 if (is_zero_ether_addr(eth_mask->h_dest) && in otx2_is_flow_rule_dmacfilter() 959 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter() 1074 otx2_dmacflt_add(pfvf, eth_hdr->h_dest, 0); in otx2_add_flow_with_pfmac() 1238 otx2_dmacflt_remove(pfvf, eth_hdr->h_dest, in otx2_update_rem_pfmac() 1243 ether_addr_copy(eth_hdr->h_dest, in otx2_update_rem_pfmac() [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nft_flow_offload.c | 90 u8 h_dest[ETH_ALEN]; member 101 memcpy(info->h_dest, ha, ETH_ALEN); in nft_dev_path_info() 132 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); in nft_dev_path_info() 214 memcpy(route->tuple[dir].out.h_dest, info.h_dest, ETH_ALEN); in nft_dev_forward_path()
|
/openbmc/linux/net/dsa/ |
H A D | tag_ksz.c | 134 if (is_link_local_ether_addr(hdr->h_dest)) in ksz8795_xmit() 293 if (is_link_local_ether_addr(hdr->h_dest)) in ksz9477_xmit() 356 if (is_link_local_ether_addr(hdr->h_dest)) in ksz9893_xmit() 421 if (is_link_local_ether_addr(hdr->h_dest)) in lan937x_xmit()
|
H A D | tag_sja1105.c | 81 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() 351 hdr->h_dest[3] = meta->dmac_byte_3; in sja1105_transfer_meta() 352 hdr->h_dest[4] = meta->dmac_byte_4; in sja1105_transfer_meta() 516 source_port = hdr->h_dest[3]; in sja1105_rcv() 517 switch_id = hdr->h_dest[4]; in sja1105_rcv()
|
/openbmc/linux/samples/bpf/ |
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() 73 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
|
/openbmc/linux/net/bluetooth/bnep/ |
H A D | core.c | 381 __skb_put_data(nskb, s->eh.h_dest, 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() 455 iv[il++] = (struct kvec) { eh->h_dest, ETH_ALEN }; in bnep_tx_frame() 596 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection() 598 eth_hw_addr_set(dev, s->eh.h_dest); in bnep_add_connection()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 323 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()
|
/openbmc/linux/net/bridge/ |
H A D | br_input.c | 146 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 148 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 198 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish() 329 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
|
/openbmc/linux/include/net/ |
H A D | firewire.h | 23 u8 h_dest[FWNET_ALEN]; /* destination address */ member
|