Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-5.10/net/802/
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()
/kernel/linux/linux-5.10/net/dsa/
Dtag_sja1105.c14 u64 dmac = ether_addr_to_u64(hdr->h_dest); in sja1105_is_link_local()
61 u64 dmac = ether_addr_to_u64(hdr->h_dest); in sja1105_is_meta_frame()
148 hdr->h_dest[3] = meta->dmac_byte_3; in sja1105_transfer_meta()
149 hdr->h_dest[4] = meta->dmac_byte_4; in sja1105_transfer_meta()
323 source_port = hdr->h_dest[3]; in sja1105_rcv()
324 switch_id = hdr->h_dest[4]; in sja1105_rcv()
326 hdr->h_dest[3] = 0; in sja1105_rcv()
327 hdr->h_dest[4] = 0; in sja1105_rcv()
Dtag_mtk.c27 unsigned char *dest = eth_hdr(skb)->h_dest; in mtk_tag_xmit()
77 unsigned char *dest = eth_hdr(skb)->h_dest; in mtk_tag_rcv()
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_encap.c311 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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dsta_rx.c120 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_process_rx_packet()
126 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
127 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
156 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()
Duap_txrx.c138 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
143 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
144 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
197 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
254 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
291 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
292 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
322 if (mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) in mwifiex_uap_recv_packet()
/kernel/linux/linux-5.10/drivers/scsi/qedf/
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()
/kernel/linux/linux-5.10/net/batman-adv/
Drouting.c193 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
372 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
380 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
403 ethhdr->h_dest); in batadv_recv_icmp_packet()
470 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_packet()
478 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_check_unicast_packet()
830 if (is_multicast_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_ttvn()
838 if (batadv_tt_local_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
840 ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn()
845 ethhdr->h_dest); in batadv_check_unicast_ttvn()
[all …]
Dsoft-interface.c266 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx()
269 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx()
273 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
304 if (do_bcast && !is_broadcast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
483 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_rx()
497 ethhdr->h_dest, vid)) { in batadv_interface_rx()
/kernel/linux/linux-5.10/net/ethernet/
Deth.c99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header()
108 eth_zero_addr(eth->h_dest); in eth_header()
167 if (unlikely(!ether_addr_equal_64bits(eth->h_dest, in eth_type_trans()
169 if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) { in eth_type_trans()
170 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in eth_type_trans()
246 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache()
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_redirect.c29 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()
/kernel/linux/linux-5.10/net/atm/
Dlec.h19 unsigned char h_dest[ETH_ALEN]; member
28 unsigned char h_dest[ETH_ALEN]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c993 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
995 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
996 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
999 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1003 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1004 mask->h_dest[1] << 8 | in gfar_set_ether()
1005 mask->h_dest[2]; in gfar_set_ether()
1006 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1007 mask->h_dest[4] << 8 | in gfar_set_ether()
1008 mask->h_dest[5]; in gfar_set_ether()
[all …]
/kernel/linux/linux-5.10/net/bridge/
Dbr_input.c98 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
100 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
150 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
265 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_xdp_loop.c71 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
72 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
Dtest_xdp.c75 memcpy(new_eth->h_source, old_eth->h_dest, sizeof(new_eth->h_source)); in set_ethhdr()
76 memcpy(new_eth->h_dest, tnl->dmac, sizeof(new_eth->h_dest)); in set_ethhdr()
/kernel/linux/linux-5.10/samples/bpf/
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()
Dxdp_adjust_tail_kern.c53 memcpy(eth->h_source, orig_eth->h_dest, ETH_ALEN); in swap_mac()
54 memcpy(eth->h_dest, orig_eth->h_source, ETH_ALEN); in swap_mac()
/kernel/linux/linux-5.10/net/bluetooth/bnep/
Dcore.c381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
437 if (compress_src && ether_addr_equal(eh->h_dest, s->eh.h_source)) in bnep_tx_frame()
440 if (compress_dst && ether_addr_equal(eh->h_source, s->eh.h_dest)) in bnep_tx_frame()
454 iv[il++] = (struct kvec) { eh->h_dest, ETH_ALEN }; in bnep_tx_frame()
595 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection()
597 memcpy(dev->dev_addr, s->eh.h_dest, ETH_ALEN); in bnep_add_connection()
Dnetdev.c126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c302 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
303 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
365 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs()
366 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
367 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs()
368 fs->h_ext.h_dest); in set_flow_attrs()
507 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
662 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
/kernel/linux/linux-5.10/drivers/net/ipvlan/
Dipvlan_core.c250 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast()
252 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast()
509 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
599 ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
622 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
709 if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_handle_mode_l2()
/kernel/linux/linux-5.10/include/net/
Dfirewire.h22 u8 h_dest[FWNET_ALEN]; /* destination address */ member
/kernel/linux/linux-5.10/net/sched/
Dact_skbmod.c55 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act()
64 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act()
65 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c339 if (!is_zero_ether_addr(eth_mask->h_dest)) { in dpaa2_eth_prep_eth_rule()
341 ether_addr_copy(key + off, eth_value->h_dest); in dpaa2_eth_prep_eth_rule()
342 ether_addr_copy(mask + off, eth_mask->h_dest); in dpaa2_eth_prep_eth_rule()
480 if (!is_zero_ether_addr(ext_mask->h_dest)) { in dpaa2_eth_prep_mac_ext_rule()
482 ether_addr_copy(key + off, ext_value->h_dest); in dpaa2_eth_prep_mac_ext_rule()
483 ether_addr_copy(mask + off, ext_mask->h_dest); in dpaa2_eth_prep_mac_ext_rule()

12345678