Home
last modified time | relevance | path

Searched refs:h_dest (Results 1 - 25 of 403) sorted by relevance

12345678910>>...17

/kernel/linux/linux-5.10/net/dsa/
H A Dtag_sja1105.c10 /* Similar to is_link_local_ether_addr(hdr->h_dest) but also covers PTP */
14 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()
H A 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/
H A 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-6.6/drivers/infiniband/ulp/opa_vnic/
H A 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/
H A Dsta_rx.c131 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_process_rx_packet()
137 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
138 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
167 if (likely(!is_multicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest))) { in mwifiex_process_rx_packet()
245 !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_process_sta_rx_packet()
H A Duap_txrx.c148 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
153 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
154 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
207 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
264 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
309 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
310 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
340 if (mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) in mwifiex_uap_recv_packet()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/net/batman-adv/
H A 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...]
/kernel/linux/linux-6.6/net/batman-adv/
H A Drouting.c190 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()
818 if (batadv_tt_local_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
820 ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn()
825 ethhdr->h_dest); in batadv_check_unicast_ttvn()
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_debugfs.c87 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
H A 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[ in gfar_set_ether()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1003 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
1005 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
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()
1016 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1017 mask->h_dest[4] << 8 | in gfar_set_ether()
1018 mask->h_dest[ in gfar_set_ether()
[all...]
/kernel/linux/linux-5.10/net/atm/
H A Dlec.h19 unsigned char h_dest[ETH_ALEN]; member
28 unsigned char h_dest[ETH_ALEN]; member
/kernel/linux/linux-6.6/net/atm/
H A Dlec.h19 unsigned char h_dest[ETH_ALEN]; member
28 unsigned char h_dest[ETH_ALEN]; member
/kernel/linux/linux-5.10/net/bridge/netfilter/
H A 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-6.6/net/bridge/netfilter/
H A 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/ethernet/
H A 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-6.6/net/ethernet/
H A 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()
242 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache()

Completed in 23 milliseconds

12345678910>>...17