Home
last modified time | relevance | path

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

123456

/Linux-v4.19/net/802/
Dstp.c45 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) { in stp_pdu_rcv()
46 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv()
49 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
/Linux-v4.19/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()
372 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc()
377 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc()
395 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_vl()
[all …]
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Duap_txrx.c139 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
144 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
145 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
198 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
255 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
292 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
293 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
323 if (mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) in mwifiex_uap_recv_packet()
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()
230 !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_process_sta_rx_packet()
/Linux-v4.19/net/batman-adv/
Drouting.c205 if (!is_broadcast_ether_addr(ethhdr->h_dest)) in batadv_check_management_packet()
384 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_recv_icmp_packet()
392 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_recv_icmp_packet()
415 ethhdr->h_dest); in batadv_recv_icmp_packet()
482 if (!is_valid_ether_addr(ethhdr->h_dest)) in batadv_check_unicast_packet()
490 if (!batadv_is_my_mac(bat_priv, ethhdr->h_dest)) in batadv_check_unicast_packet()
846 if (batadv_tt_local_client_is_roaming(bat_priv, ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
848 ethhdr->h_dest, vid)) in batadv_check_unicast_ttvn()
853 ethhdr->h_dest); in batadv_check_unicast_ttvn()
894 ethhdr->h_dest, vid)) { in batadv_check_unicast_ttvn()
[all …]
Dsoft-interface.c265 if (batadv_compare_eth(ethhdr->h_dest, stp_addr)) in batadv_interface_tx()
268 if (batadv_compare_eth(ethhdr->h_dest, ectp_addr)) in batadv_interface_tx()
272 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
303 if (do_bcast && !is_broadcast_ether_addr(ethhdr->h_dest)) { in batadv_interface_tx()
478 if (is_multicast_ether_addr(ethhdr->h_dest)) { in batadv_interface_rx()
492 ethhdr->h_dest, vid)) { in batadv_interface_rx()
/Linux-v4.19/net/ethernet/
Deth.c102 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header()
111 eth_zero_addr(eth->h_dest); in eth_header()
168 if (unlikely(is_multicast_ether_addr_64bits(eth->h_dest))) { in eth_type_trans()
169 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in eth_type_trans()
174 else if (unlikely(!ether_addr_equal_64bits(eth->h_dest, in eth_type_trans()
241 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache()
/Linux-v4.19/net/atm/
Dlec.h19 unsigned char h_dest[ETH_ALEN]; member
28 unsigned char h_dest[ETH_ALEN]; member
/Linux-v4.19/net/bridge/netfilter/
Debt_redirect.c28 ether_addr_copy(eth_hdr(skb)->h_dest, in ebt_redirect_tg()
31 ether_addr_copy(eth_hdr(skb)->h_dest, xt_in(par)->dev_addr); in ebt_redirect_tg()
Dnft_reject_bridge.c33 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest); in nft_reject_br_push_etherhdr()
34 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source); in nft_reject_br_push_etherhdr()
298 const unsigned char *dest = eth_hdr(pkt->skb)->h_dest; in nft_reject_bridge_eval()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1063 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
1065 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
1066 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
1069 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1073 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1074 mask->h_dest[1] << 8 | in gfar_set_ether()
1075 mask->h_dest[2]; in gfar_set_ether()
1076 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1077 mask->h_dest[4] << 8 | in gfar_set_ether()
1078 mask->h_dest[5]; in gfar_set_ether()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c297 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
298 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
360 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs()
361 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
362 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs()
363 fs->h_ext.h_dest); in set_flow_attrs()
494 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
672 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
/Linux-v4.19/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.c50 memcpy(eth->h_source, orig_eth->h_dest, ETH_ALEN); in swap_mac()
51 memcpy(eth->h_dest, orig_eth->h_source, ETH_ALEN); in swap_mac()
Dparse_simple.c21 unsigned char h_dest[ETH_ALEN]; member
/Linux-v4.19/tools/testing/selftests/bpf/
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()
/Linux-v4.19/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()
594 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection()
596 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()
/Linux-v4.19/net/bridge/
Dbr_input.c100 dest = eth_hdr(skb)->h_dest; in br_handle_frame_finish()
215 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
296 dest = eth_hdr(skb)->h_dest; in br_handle_frame()
/Linux-v4.19/include/net/
Dfirewire.h22 u8 h_dest[FWNET_ALEN]; /* destination address */ member
/Linux-v4.19/net/sched/
Dact_skbmod.c54 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act()
63 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act()
64 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act()
/Linux-v4.19/drivers/net/ipvlan/
Dipvlan_core.c255 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast()
257 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast()
508 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
602 ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
625 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
710 if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_handle_mode_l2()
/Linux-v4.19/drivers/net/wireless/marvell/libertas/
Drx.c124 memcpy(p_ethhdr->h_dest, p_rx_pkt->eth803_hdr.dest_addr, in lbs_process_rxed_packet()
125 sizeof(p_ethhdr->h_dest)); in lbs_process_rxed_packet()
/Linux-v4.19/drivers/staging/ks7010/
Deap_packet.h10 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ member
/Linux-v4.19/net/hsr/
Dhsr_framereg.c296 if (!is_unicast_ether_addr(eth_hdr(skb)->h_dest)) in hsr_addr_subst_dest()
299 node_dst = find_node_by_AddrA(&port->hsr->node_db, eth_hdr(skb)->h_dest); in hsr_addr_subst_dest()
307 ether_addr_copy(eth_hdr(skb)->h_dest, node_dst->MacAddressB); in hsr_addr_subst_dest()

123456