/net/bluetooth/bnep/ |
D | netdev.c | 61 size = sizeof(*r) + (BNEP_MAX_MULTICAST_FILTERS + 1) * ETH_ALEN * 2; in bnep_net_set_mc_list() 75 u8 start[ETH_ALEN] = { 0x01 }; in bnep_net_set_mc_list() 78 __skb_put_data(skb, start, ETH_ALEN); in bnep_net_set_mc_list() 79 __skb_put_data(skb, dev->broadcast, ETH_ALEN); in bnep_net_set_mc_list() 80 r->len = htons(ETH_ALEN * 2); in bnep_net_set_mc_list() 86 __skb_put_data(skb, dev->broadcast, ETH_ALEN); in bnep_net_set_mc_list() 87 __skb_put_data(skb, dev->broadcast, ETH_ALEN); in bnep_net_set_mc_list() 96 __skb_put_data(skb, ha->addr, ETH_ALEN); in bnep_net_set_mc_list() 97 __skb_put_data(skb, ha->addr, ETH_ALEN); in bnep_net_set_mc_list() 221 dev->addr_len = ETH_ALEN; in bnep_net_setup()
|
D | core.c | 166 n /= (ETH_ALEN * 2); in bnep_ctrl_set_mcfilter() 180 memcpy(a1, data, ETH_ALEN); in bnep_ctrl_set_mcfilter() 181 data += ETH_ALEN; in bnep_ctrl_set_mcfilter() 183 data += ETH_ALEN; in bnep_ctrl_set_mcfilter() 294 ETH_ALEN + 2, /* BNEP_COMPRESSED_SRC_ONLY */ 295 ETH_ALEN + 2 /* BNEP_COMPRESSED_DST_ONLY */ 381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame() 382 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 387 __skb_put_data(nskb, skb_mac_header(skb), ETH_ALEN); in bnep_rx_frame() 388 __skb_put_data(nskb, s->eh.h_source, ETH_ALEN); in bnep_rx_frame() [all …]
|
/net/hsr/ |
D | hsr_framereg.h | 51 const unsigned char addr_a[ETH_ALEN], 52 const unsigned char addr_b[ETH_ALEN]); 55 unsigned char addr[ETH_ALEN]); 59 unsigned char addr_b[ETH_ALEN], 74 unsigned char macaddress_A[ETH_ALEN]; 75 unsigned char macaddress_B[ETH_ALEN];
|
D | hsr_netlink.c | 23 [IFLA_HSR_SUPERVISION_ADDR] = { .len = ETH_ALEN }, 139 if (nla_put(skb, IFLA_HSR_SUPERVISION_ADDR, ETH_ALEN, in hsr_fill_info() 167 [HSR_A_NODE_ADDR] = { .len = ETH_ALEN }, 168 [HSR_A_NODE_ADDR_B] = { .len = ETH_ALEN }, 186 void hsr_nl_ringerror(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN], in hsr_nl_ringerror() argument 203 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_ringerror() 229 void hsr_nl_nodedown(struct hsr_priv *hsr, unsigned char addr[ETH_ALEN]) in hsr_nl_nodedown() argument 244 res = nla_put(skb, HSR_A_NODE_ADDR, ETH_ALEN, addr); in hsr_nl_nodedown() 282 unsigned char hsr_node_addr_b[ETH_ALEN]; in hsr_get_node_status() 340 res = nla_put(skb_out, HSR_A_NODE_ADDR, ETH_ALEN, in hsr_get_node_status() [all …]
|
/net/batman-adv/ |
D | types.h | 368 u8 orig[ETH_ALEN]; 612 u8 addr[ETH_ALEN]; 617 u8 orig[ETH_ALEN]; 648 u8 addr[ETH_ALEN]; 748 u8 orig[ETH_ALEN]; 1040 u8 loopdetect_addr[ETH_ALEN]; 1388 u8 other_end[ETH_ALEN]; 1759 u8 orig[ETH_ALEN]; 1808 u8 addr[ETH_ALEN]; 1838 u8 addr[ETH_ALEN]; [all …]
|
/net/ethernet/ |
D | eth.c | 96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header() 99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header() 206 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse() 207 return ETH_ALEN; in eth_header_parse() 231 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); in eth_header_cache() 232 memcpy(eth->h_dest, neigh->ha, ETH_ALEN); in eth_header_cache() 256 haddr, ETH_ALEN); in eth_header_cache_update() 356 dev->addr_len = ETH_ALEN; in ether_setup() 518 u8 addr[ETH_ALEN] __aligned(2); in platform_get_ethdev_address() 553 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in nvmem_get_mac_address() [all …]
|
/net/openvswitch/ |
D | flow.h | 89 u8 src[ETH_ALEN]; /* Ethernet source address. */ 90 u8 dst[ETH_ALEN]; /* Ethernet destination address. */ 126 u8 sha[ETH_ALEN]; /* ARP source hardware address. */ 127 u8 tha[ETH_ALEN]; /* ARP target hardware address. */ 145 u8 sll[ETH_ALEN]; /* ND source link layer address. */ 146 u8 tll[ETH_ALEN]; /* ND target link layer address. */ 250 unsigned char ar_sha[ETH_ALEN]; /* sender hardware address */ 252 unsigned char ar_tha[ETH_ALEN]; /* target hardware address */
|
/net/core/ |
D | dev_addr_lists_test.c | 19 if (a[0] < 31 && !memchr_inv(a, a[0], ETH_ALEN)) in dev_addr_test_sync() 29 if (a[0] < 31 && !memchr_inv(a, a[0], ETH_ALEN)) in dev_addr_test_unsync() 68 u8 addr[ETH_ALEN]; in dev_addr_test_basic() 85 u8 addr[ETH_ALEN]; in dev_addr_test_sync_one() 112 u8 addr[ETH_ALEN]; in dev_addr_test_add_del() 151 u8 addr[ETH_ALEN]; in dev_addr_test_del_main() 170 u8 addr[ETH_ALEN]; in dev_addr_test_add_set() 199 u8 addr[ETH_ALEN]; in dev_addr_test_add_excl()
|
D | of_net.c | 54 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) { in of_get_mac_addr() 55 memcpy(addr, pp->value, ETH_ALEN); in of_get_mac_addr() 88 if (len != ETH_ALEN || !is_valid_ether_addr(mac)) { in of_get_mac_address_nvmem() 93 memcpy(addr, mac, ETH_ALEN); in of_get_mac_address_nvmem() 164 u8 addr[ETH_ALEN]; in of_get_ethdev_address()
|
/net/bridge/netfilter/ |
D | ebt_arpreply.c | 28 unsigned char _sha[ETH_ALEN]; in ebt_arpreply_tg() 35 ap->ar_hln != ETH_ALEN || in ebt_arpreply_tg() 40 shp = skb_header_pointer(skb, sizeof(_ah), ETH_ALEN, &_sha); in ebt_arpreply_tg() 44 siptr = skb_header_pointer(skb, sizeof(_ah) + ETH_ALEN, in ebt_arpreply_tg() 50 sizeof(_ah) + 2 * ETH_ALEN + sizeof(_sip), in ebt_arpreply_tg()
|
/net/netfilter/ipset/ |
D | ip_set_hash_ipmac.c | 43 unsigned char ether[ETH_ALEN]; 62 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac4_data_list() 120 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN || in hash_ipmac4_uadt() 136 memcpy(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN); in hash_ipmac4_uadt() 150 unsigned char ether[ETH_ALEN]; 170 nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_ipmac6_data_list() 239 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN || in hash_ipmac6_uadt() 256 memcpy(e.ether, nla_data(tb[IPSET_ATTR_ETHER]), ETH_ALEN); in hash_ipmac6_uadt() 285 .len = ETH_ALEN },
|
D | ip_set_hash_mac.c | 33 unsigned char ether[ETH_ALEN]; 51 if (nla_put(skb, IPSET_ATTR_ETHER, ETH_ALEN, e->ether)) in hash_mac4_data_list() 107 nla_len(tb[IPSET_ATTR_ETHER]) != ETH_ALEN)) in hash_mac4_uadt() 141 .len = ETH_ALEN },
|
/net/mac80211/ |
D | mesh_hwmp.c | 98 static const u8 broadcast_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; 125 memcpy(mgmt->da, da, ETH_ALEN); in mesh_path_sel_frame_tx() 126 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx() 128 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in mesh_path_sel_frame_tx() 161 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx() 162 pos += ETH_ALEN; in mesh_path_sel_frame_tx() 170 memcpy(pos, orig_addr, ETH_ALEN); in mesh_path_sel_frame_tx() 171 pos += ETH_ALEN; in mesh_path_sel_frame_tx() 182 memcpy(pos, target, ETH_ALEN); in mesh_path_sel_frame_tx() 183 pos += ETH_ALEN; in mesh_path_sel_frame_tx() [all …]
|
D | s1g.c | 49 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_setup() 50 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_setup() 51 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_setup() 81 memcpy(mgmt->da, da, ETH_ALEN); in ieee80211_s1g_send_twt_teardown() 82 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_s1g_send_twt_teardown() 83 memcpy(mgmt->bssid, bssid, ETH_ALEN); in ieee80211_s1g_send_twt_teardown()
|
D | mesh.c | 251 memcpy(p->sa, sa, ETH_ALEN); in mesh_rmc_check() 773 u8 sa[ETH_ALEN] __aligned(2); in ieee80211_mesh_xmit_fast() 807 if (!ether_addr_equal(skb->data + ETH_ALEN, sdata->vif.addr)) in ieee80211_mesh_xmit_fast() 838 ether_addr_copy(sa, skb->data + ETH_ALEN); in ieee80211_mesh_xmit_fast() 842 memcpy(skb_push(skb, entry->hdrlen - 2 * ETH_ALEN), entry->hdr, in ieee80211_mesh_xmit_fast() 852 skb_push(skb, 2 * ETH_ALEN); in ieee80211_mesh_xmit_fast() 875 memcpy(hdr->addr1, meshda, ETH_ALEN); in ieee80211_fill_mesh_addresses() 876 memcpy(hdr->addr2, meshsa, ETH_ALEN); in ieee80211_fill_mesh_addresses() 877 memcpy(hdr->addr3, meshsa, ETH_ALEN); in ieee80211_fill_mesh_addresses() 883 memcpy(hdr->addr2, meshsa, ETH_ALEN); in ieee80211_fill_mesh_addresses() [all …]
|
D | tx.c | 2629 memcpy(hdr.addr1, sta->sta.addr, ETH_ALEN); in ieee80211_build_hdr() 2630 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr() 2631 memcpy(hdr.addr3, skb->data, ETH_ALEN); in ieee80211_build_hdr() 2632 memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr() 2653 memcpy(hdr.addr1, skb->data, ETH_ALEN); in ieee80211_build_hdr() 2664 memcpy(hdr.addr2, link->conf->addr, ETH_ALEN); in ieee80211_build_hdr() 2667 memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN); in ieee80211_build_hdr() 2677 memcpy(hdr.addr2, conf->addr, ETH_ALEN); in ieee80211_build_hdr() 2680 memcpy(hdr.addr3, skb->data + ETH_ALEN, ETH_ALEN); in ieee80211_build_hdr() 2715 if (ether_addr_equal(sdata->vif.addr, skb->data + ETH_ALEN) && in ieee80211_build_hdr() [all …]
|
D | mesh_pathtbl.c | 30 .key_len = ETH_ALEN, 125 memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN); in mesh_path_assign_nexthop() 126 memcpy(hdr->addr2, mpath->sdata->vif.addr, ETH_ALEN); in mesh_path_assign_nexthop() 150 skb_push(skb, 2 * ETH_ALEN); in prepare_for_gate() 159 memcpy(mshdr->eaddr1, hdr->addr3, ETH_ALEN); in prepare_for_gate() 160 memcpy(mshdr->eaddr2, hdr->addr4, ETH_ALEN); in prepare_for_gate() 167 memcpy(hdr->addr1, next_hop, ETH_ALEN); in prepare_for_gate() 169 memcpy(hdr->addr2, gate_mpath->sdata->vif.addr, ETH_ALEN); in prepare_for_gate() 170 memcpy(hdr->addr3, dst_addr, ETH_ALEN); in prepare_for_gate() 407 memcpy(new_mpath->dst, dst, ETH_ALEN); in mesh_path_new() [all …]
|
/net/wireless/ |
D | sme.c | 48 u8 bssid[ETH_ALEN], prev_bssid[ETH_ALEN]; 249 u8 bssid_buf[ETH_ALEN], *bssid = NULL; in cfg80211_conn_work() 269 memcpy(bssid_buf, wdev->conn->params.bssid, ETH_ALEN); in cfg80211_conn_work() 291 memcpy(conn->bssid, bss->bssid, ETH_ALEN); in cfg80211_step_auth_next() 596 memcpy(wdev->conn->bssid, connect->bssid, ETH_ALEN); in cfg80211_sme_connect() 629 memcpy(wdev->conn->prev_bssid, prev_bssid, ETH_ALEN); in cfg80211_sme_connect() 807 memcpy(wrqu.ap_addr.sa_data, connected_addr, ETH_ALEN); in __cfg80211_connect_result() 808 memcpy(wdev->wext.prev_bssid, connected_addr, ETH_ALEN); in __cfg80211_connect_result() 883 ETH_ALEN); in __cfg80211_connect_result() 992 link_info_size += params->links[link].bssid ? ETH_ALEN : 0; in cfg80211_connect_done() [all …]
|
D | lib80211_crypt_tkip.c | 515 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr() 516 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr() 519 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr() 520 memcpy(hdr + ETH_ALEN, hdr11->addr3, ETH_ALEN); /* SA */ in michael_mic_hdr() 523 memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */ in michael_mic_hdr() 524 memcpy(hdr + ETH_ALEN, hdr11->addr4, ETH_ALEN); /* SA */ in michael_mic_hdr() 527 memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */ in michael_mic_hdr() 528 memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */ in michael_mic_hdr() 578 memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN); in lib80211_michael_mic_failure()
|
/net/atm/ |
D | lec.h | 19 unsigned char h_dest[ETH_ALEN]; 20 unsigned char h_source[ETH_ALEN]; 28 unsigned char h_dest[ETH_ALEN]; 29 unsigned char h_source[ETH_ALEN];
|
/net/bridge/ |
D | br_stp_if.c | 225 unsigned short oldaddr_aligned[ETH_ALEN >> 1]; in br_stp_change_bridge_id() 234 memcpy(oldaddr, br->bridge_id.addr, ETH_ALEN); in br_stp_change_bridge_id() 235 memcpy(br->bridge_id.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 240 memcpy(p->designated_bridge.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 243 memcpy(p->designated_root.addr, addr, ETH_ALEN); in br_stp_change_bridge_id() 253 static const unsigned short br_mac_zero_aligned[ETH_ALEN >> 1]; 269 memcmp(p->dev->dev_addr, addr, ETH_ALEN) < 0) in br_stp_recalculate_bridge_id()
|
/net/netfilter/ |
D | nft_flow_offload.c | 42 dev->addr_len != ETH_ALEN || !is_valid_ether_addr(dev->dev_addr)) in nft_is_valid_ether_device() 89 u8 h_source[ETH_ALEN]; 90 u8 h_dest[ETH_ALEN]; 101 memcpy(info->h_dest, ha, ETH_ALEN); in nft_dev_path_info() 112 memcpy(info->h_source, path->dev->dev_addr, ETH_ALEN); in nft_dev_path_info() 132 memcpy(info->h_dest, path->encap.h_dest, ETH_ALEN); in nft_dev_path_info() 136 memcpy(info->h_source, path->dev->dev_addr, ETH_ALEN); in nft_dev_path_info() 195 unsigned char ha[ETH_ALEN]; in nft_dev_forward_path() 213 memcpy(route->tuple[dir].out.h_source, info.h_source, ETH_ALEN); in nft_dev_forward_path() 214 memcpy(route->tuple[dir].out.h_dest, info.h_dest, ETH_ALEN); in nft_dev_forward_path()
|
/net/caif/ |
D | caif_usb.c | 84 static struct cflayer *cfusbl_create(int phyid, const u8 ethaddr[ETH_ALEN], in cfusbl_create() argument 85 u8 braddr[ETH_ALEN]) in cfusbl_create() argument 107 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr); in cfusbl_create() 108 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr); in cfusbl_create() 112 this->tx_eth_hdr, this->tx_eth_hdr + ETH_ALEN, in cfusbl_create()
|
/net/llc/ |
D | llc_s_ac.c | 103 u8 mac_da[ETH_ALEN], mac_sa[ETH_ALEN], dsap; in llc_sap_action_send_xid_r() 151 u8 mac_da[ETH_ALEN], mac_sa[ETH_ALEN], dsap; in llc_sap_action_send_test_r()
|
/net/dsa/ |
D | trace.h | 35 __array(unsigned char, addr, ETH_ALEN) 94 __array(unsigned char, addr, ETH_ALEN) 154 __array(unsigned char, addr, ETH_ALEN) 195 __array(unsigned char, addr, ETH_ALEN) 223 __array(unsigned char, addr, ETH_ALEN) 251 __array(unsigned char, addr, ETH_ALEN) 279 __array(unsigned char, addr, ETH_ALEN) 307 __array(unsigned char, addr, ETH_ALEN)
|