/external/iptables/iptables/ |
D | nft-bridge.h | 21 extern unsigned char eb_mac_type_unicast[ETH_ALEN]; 22 extern unsigned char eb_msk_type_unicast[ETH_ALEN]; 23 extern unsigned char eb_mac_type_multicast[ETH_ALEN]; 24 extern unsigned char eb_msk_type_multicast[ETH_ALEN]; 25 extern unsigned char eb_mac_type_broadcast[ETH_ALEN]; 26 extern unsigned char eb_msk_type_broadcast[ETH_ALEN]; 27 extern unsigned char eb_mac_type_bridge_group[ETH_ALEN]; 28 extern unsigned char eb_msk_type_bridge_group[ETH_ALEN]; 87 unsigned char sourcemac[ETH_ALEN]; 88 unsigned char sourcemsk[ETH_ALEN]; [all …]
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmp_redirector.c | 69 unsigned char hd_addr[ETH_ALEN]; 75 unsigned char hd_addr[ETH_ALEN]; 282 unsigned char new_hd_addr[ETH_ALEN]; /* New MAC address */ in return_arp_reply() 298 memset(new_hd_addr, '\0', ETH_ALEN); /* MAC address */ in return_arp_reply() 303 if (memcmp(gateway_p->hd_addr, new_hd_addr, ETH_ALEN)) { in return_arp_reply() 304 memcpy(gateway_p->hd_addr, new_hd_addr, ETH_ALEN); in return_arp_reply() 326 memcpy(sndeth.hdr.h_dest, rcveth_p->hdr.h_source, ETH_ALEN); in return_arp_reply() 327 memcpy(sndeth.hdr.h_source, gateway_p->hd_addr, ETH_ALEN); in return_arp_reply() 333 sndarp_p->hdr.ar_hln = ETH_ALEN; in return_arp_reply() 336 memcpy(sndarp_p->ar_sha, gateway_p->hd_addr, ETH_ALEN); in return_arp_reply() [all …]
|
/external/wpa_supplicant_8/src/pae/ |
D | ieee802_1x_key.c | 23 if (os_memcmp(mac1, mac2, ETH_ALEN) < 0) { in joint_two_mac() 24 os_memcpy(out, mac1, ETH_ALEN); in joint_two_mac() 25 os_memcpy(out + ETH_ALEN, mac2, ETH_ALEN); in joint_two_mac() 27 os_memcpy(out, mac2, ETH_ALEN); in joint_two_mac() 28 os_memcpy(out + ETH_ALEN, mac1, ETH_ALEN); in joint_two_mac() 85 u8 context[2 * ETH_ALEN]; in ieee802_1x_cak_128bits_aes_cmac() 105 size_t ctx_len = sid_bytes + ETH_ALEN * 2; in ieee802_1x_ckn_128bits_aes_cmac()
|
/external/syslinux/gpxe/src/net/ |
D | ethernet.c | 41 static uint8_t eth_broadcast[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}; 59 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push() 60 memcpy ( ethhdr->h_source, ll_source, ETH_ALEN ); in eth_push() 106 memcpy ( ll_addr, hw_addr, ETH_ALEN ); in eth_init_addr() 158 memcpy ( eth_addr, ll_addr, ETH_ALEN ); in eth_eth_addr() 166 .hw_addr_len = ETH_ALEN, 167 .ll_addr_len = ETH_ALEN,
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_supplicant_i.h | 277 u8 p2p_dev_addr[ETH_ALEN]; 385 u8 bssid[ETH_ALEN]; 433 u8 dst_addr[ETH_ALEN]; 443 u8 bssid[ETH_ALEN]; 452 u8 bssid[ETH_ALEN]; 460 u8 bssid[ETH_ALEN]; 473 u8 dst[ETH_ALEN]; 494 unsigned char own_addr[ETH_ALEN]; 495 unsigned char perm_addr[ETH_ALEN]; 521 u8 bssid[ETH_ALEN]; [all …]
|
D | bgscan_learn.c | 24 u8 bssid[ETH_ALEN]; 60 if (os_memcmp(array + i * ETH_ALEN, bssid, ETH_ALEN) == 0) in bssid_in_array() 73 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_add_neighbor() 78 n = os_realloc_array(bss->neigh, bss->num_neigh + 1, ETH_ALEN); in bgscan_learn_add_neighbor() 82 os_memcpy(n + bss->num_neigh * ETH_ALEN, bssid, ETH_ALEN); in bgscan_learn_add_neighbor() 94 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_get_bss() 142 u8 addr[ETH_ALEN]; in bgscan_learn_load() 187 MAC2STR(bss->neigh + i * ETH_ALEN)); in bgscan_learn_save() 487 u8 bssid[MAX_BSS * ETH_ALEN]; in bgscan_learn_notify_scan() 502 os_memcpy(bssid + num_bssid * ETH_ALEN, res->bssid, in bgscan_learn_notify_scan() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_xdp_meta.c | 21 if (data + ETH_ALEN > data_end || in ing_cls() 22 data_meta + round_up(ETH_ALEN, 4) > data) in ing_cls() 37 ret = bpf_xdp_adjust_meta(ctx, -round_up(ETH_ALEN, 4)); in ing_xdp() 45 if (data + ETH_ALEN > data_end || in ing_xdp() 46 data_meta + round_up(ETH_ALEN, 4) > data) in ing_xdp() 49 __builtin_memcpy(data_meta, data, ETH_ALEN); in ing_xdp()
|
/external/syslinux/gpxe/src/core/ |
D | gdbudp.c | 46 static uint8_t dest_eth[ETH_ALEN]; 81 if ( iob_len ( iob ) < sizeof ( *arphdr ) + 2 * ( ETH_ALEN + sizeof ( struct in_addr ) ) || in gdbudp_recv() 84 arphdr->ar_hln != ETH_ALEN || in gdbudp_recv() 94 memcpy ( arp_target_ha ( arphdr ), arp_sender_ha ( arphdr ), ETH_ALEN ); in gdbudp_recv() 95 memcpy ( arp_sender_ha ( arphdr ), netdev->ll_addr, ETH_ALEN ); in gdbudp_recv() 99 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv() 100 memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN ); in gdbudp_recv() 130 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv() 199 memcpy ( ethhdr->h_dest, dest_eth, ETH_ALEN ); in gdbudp_send() 200 memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN ); in gdbudp_send()
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_group.c | 23 u8 addr[ETH_ALEN]; /* P2P Interface Address */ 24 u8 dev_addr[ETH_ALEN]; /* P2P Device Address */ 292 u8 zero_addr[ETH_ALEN]; in wifi_display_add_dev_info_descr() 297 os_memset(zero_addr, 0, ETH_ALEN); in wifi_display_add_dev_info_descr() 317 if (len < ETH_ALEN) in wifi_display_add_dev_info_descr() 322 if (len < 1 + ETH_ALEN) in wifi_display_add_dev_info_descr() 335 wpabuf_put_data(buf, m->dev_addr, ETH_ALEN); in wifi_display_add_dev_info_descr() 337 wpabuf_put_data(buf, assoc_bssid, ETH_ALEN); in wifi_display_add_dev_info_descr() 339 wpabuf_put_data(buf, zero_addr, ETH_ALEN); in wifi_display_add_dev_info_descr() 343 wpabuf_put_data(buf, coupled_sink, 1 + ETH_ALEN); in wifi_display_add_dev_info_descr() [all …]
|
D | p2p_i.h | 60 u8 interface_addr[ETH_ALEN]; 66 u8 member_in_go_dev[ETH_ALEN]; 72 u8 member_in_go_iface[ETH_ALEN]; 78 u8 intended_addr[ETH_ALEN]; 155 u8 peer[ETH_ALEN]; 163 u8 dst[ETH_ALEN]; 164 u8 src[ETH_ALEN]; 165 u8 bssid[ETH_ALEN]; 289 u8 invite_go_dev_addr_buf[ETH_ALEN]; 321 u8 sd_query_no_ack[ETH_ALEN]; [all …]
|
D | p2p_build.c | 198 wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN); in p2p_buf_add_device_info() 249 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_device_id() 250 wpabuf_put_data(buf, dev_addr, ETH_ALEN); in p2p_buf_add_device_id() 272 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_intended_addr() 273 wpabuf_put_data(buf, interface_addr, ETH_ALEN); in p2p_buf_add_intended_addr() 283 wpabuf_put_le16(buf, ETH_ALEN); in p2p_buf_add_group_bssid() 284 wpabuf_put_data(buf, bssid, ETH_ALEN); in p2p_buf_add_group_bssid() 295 wpabuf_put_le16(buf, ETH_ALEN + ssid_len); in p2p_buf_add_group_id() 296 wpabuf_put_data(buf, dev_addr, ETH_ALEN); in p2p_buf_add_group_id() 357 wpabuf_put_le16(buf, ETH_ALEN + 1 + ETH_ALEN); in p2p_buf_add_p2p_interface() [all …]
|
D | p2p_parse.c | 56 if (len < ETH_ALEN) { in p2p_parse_attribute() 137 if (len < ETH_ALEN + 2 + 8 + 1) { in p2p_parse_attribute() 146 pos += ETH_ALEN; in p2p_parse_attribute() 196 if (len < ETH_ALEN) { in p2p_parse_attribute() 207 if (len < ETH_ALEN) { in p2p_parse_attribute() 217 if (len < ETH_ALEN || len > ETH_ALEN + SSID_MAX_LEN) { in p2p_parse_attribute() 227 msg->group_id + ETH_ALEN, in p2p_parse_attribute() 228 msg->group_id_len - ETH_ALEN); in p2p_parse_attribute() 361 if (len < sizeof(u32) + ETH_ALEN) { in p2p_parse_attribute() 385 if (len < ETH_ALEN || len > ETH_ALEN + SSID_MAX_LEN) { in p2p_parse_attribute() [all …]
|
D | p2p_pd.c | 48 u8 intended_addr[ETH_ALEN]; in p2ps_add_new_group_info() 103 u8 go_dev_addr[ETH_ALEN]; in p2ps_add_pd_req_attrs() 104 u8 intended_addr[ETH_ALEN]; in p2ps_add_pd_req_attrs() 324 u8 go_dev_addr[ETH_ALEN]; in p2p_build_prov_disc_resp() 325 u8 intended_addr[ETH_ALEN]; in p2p_build_prov_disc_resp() 423 os_memcpy(tmp->session_mac, session_mac, ETH_ALEN); in p2ps_setup_p2ps_prov() 424 os_memcpy(tmp->adv_mac, adv_mac, ETH_ALEN); in p2ps_setup_p2ps_prov() 535 if (os_memcmp(msg->persistent_dev, addr, ETH_ALEN) == 0) { in p2ps_validate_pd_req() 567 u8 session_mac[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 }; in p2p_process_prov_disc_req() 568 u8 adv_mac[ETH_ALEN] = { 0, 0, 0, 0, 0, 0 }; in p2p_process_prov_disc_req() [all …]
|
/external/wpa_supplicant_8/src/common/ |
D | privsep_commands.h | 45 u8 bssid[ETH_ALEN]; 61 u8 bssid[ETH_ALEN]; 78 u8 addr[ETH_ALEN]; 102 u8 peer[ETH_ALEN]; 103 u8 bssid[ETH_ALEN];
|
D | wpa_common.c | 246 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN]; in wpa_pmk_to_ptk() 255 if (os_memcmp(addr1, addr2, ETH_ALEN) < 0) { in wpa_pmk_to_ptk() 256 os_memcpy(data, addr1, ETH_ALEN); in wpa_pmk_to_ptk() 257 os_memcpy(data + ETH_ALEN, addr2, ETH_ALEN); in wpa_pmk_to_ptk() 259 os_memcpy(data, addr2, ETH_ALEN); in wpa_pmk_to_ptk() 260 os_memcpy(data + ETH_ALEN, addr1, ETH_ALEN); in wpa_pmk_to_ptk() 264 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk() 265 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk() 268 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk() 269 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk() [all …]
|
/external/kernel-headers/original/uapi/linux/netfilter_bridge/ |
D | ebt_arp.h | 30 unsigned char smaddr[ETH_ALEN]; 31 unsigned char smmsk[ETH_ALEN]; 32 unsigned char dmaddr[ETH_ALEN]; 33 unsigned char dmmsk[ETH_ALEN];
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | tdls.c | 71 u8 bssid[ETH_ALEN]; 72 u8 init_sta[ETH_ALEN]; 73 u8 resp_sta[ETH_ALEN]; 99 u8 addr[ETH_ALEN]; /* other end MAC address */ 120 u8 dest[ETH_ALEN]; 278 if (os_memcmp(peer->addr, dest, ETH_ALEN) == 0) in wpa_tdls_tpk_send() 299 os_memcpy(peer->sm_tmr.dest, dest, ETH_ALEN); in wpa_tdls_tpk_send() 413 u8 data[3 * ETH_ALEN]; in wpa_tdls_generate_tpk() 439 if (os_memcmp(own_addr, peer->addr, ETH_ALEN) < 0) { in wpa_tdls_generate_tpk() 440 os_memcpy(data, own_addr, ETH_ALEN); in wpa_tdls_generate_tpk() [all …]
|
/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_privsep.c | 23 u8 own_addr[ETH_ALEN]; 57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 72 io[1].iov_len = ETH_ALEN; in l2_packet_send() 110 if (res < ETH_ALEN) { in l2_packet_receive() 123 l2->rx_callback(l2->rx_callback_ctx, buf, buf + ETH_ALEN, in l2_packet_receive() 124 res - ETH_ALEN); in l2_packet_receive() 143 u8 reply[ETH_ALEN + 1]; in l2_packet_init() 213 if (res != ETH_ALEN) { in l2_packet_init() 217 os_memcpy(l2->own_addr, reply, ETH_ALEN); in l2_packet_init()
|
/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 78 u8 mac_addr[ETH_ALEN]; 85 u8 da[ETH_ALEN]; /* broadcast */ 86 u8 sa[ETH_ALEN]; /* STA addr */ 99 u8 mac_addr[ETH_ALEN]; 110 u8 mac_addr[ETH_ALEN]; 127 u8 mac_addr[ETH_ALEN]; 129 u8 current_ap[ETH_ALEN]; 140 u8 mac_addr[ETH_ALEN]; 191 add->addr_len = ETH_ALEN; in iapp_send_add() 193 os_memcpy(add->mac_addr, mac_addr, ETH_ALEN); in iapp_send_add() [all …]
|
D | wnm_ap.c | 101 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 102 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 103 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 270 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 271 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 272 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request() 353 if (end - pos < ETH_ALEN) { in ieee802_11_rx_bss_trans_mgmt_resp() 364 pos += ETH_ALEN; in ieee802_11_rx_bss_trans_mgmt_resp() 447 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in wnm_send_disassoc_imminent() 448 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent() [all …]
|
/external/syslinux/gpxe/src/drivers/net/ |
D | virtio-net.c | 38 unsigned char dst_addr[ETH_ALEN]; 39 unsigned char src_addr[ETH_ALEN]; 165 memcpy(tx_eth_frame.hdr.dst_addr, destaddr, ETH_ALEN); in virtnet_transmit() 166 memcpy(tx_eth_frame.hdr.src_addr, nic->node_addr, ETH_ALEN); in virtnet_transmit() 266 nic->node_addr, ETH_ALEN); in virtnet_probe() 268 for (i = 0; i < ETH_ALEN; i++) { in virtnet_probe() 270 (i == ETH_ALEN - 1) ? '\n' : ':'); in virtnet_probe()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211.h | 69 u8 addr[ETH_ALEN]; 81 u8 rand_addr[ETH_ALEN]; 90 u8 perm_addr[ETH_ALEN]; 118 u8 auth_bssid[ETH_ALEN]; 119 u8 auth_attempt_bssid[ETH_ALEN]; 120 u8 bssid[ETH_ALEN]; 121 u8 prev_bssid[ETH_ALEN]; 197 u8 auth_bssid_[ETH_ALEN];
|
/external/iw/ |
D | mpath.c | 99 unsigned char dst[ETH_ALEN]; in handle_mpath_get() 114 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst); in handle_mpath_get() 135 unsigned char dst[ETH_ALEN]; in handle_mpath_set() 136 unsigned char next_hop[ETH_ALEN]; in handle_mpath_set() 163 NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, dst); in handle_mpath_set() 164 NLA_PUT(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop); in handle_mpath_set()
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.1/ |
D | p2p_network.cpp | 161 os_memcpy(bssid.data(), wpa_ssid->bssid, ETH_ALEN); in getBssidInternal() 197 (u8 *)os_malloc(ETH_ALEN * 2 * clients.size()); in setClientListInternal() 203 os_memcpy(list, client.data(), ETH_ALEN); in setClientListInternal() 204 list += ETH_ALEN; in setClientListInternal() 205 os_memset(list, 0xFF, ETH_ALEN); in setClientListInternal() 206 list += ETH_ALEN; in setClientListInternal() 223 list += 2 * ETH_ALEN; in getClientListInternal()
|
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/ |
D | p2p_network.cpp | 161 os_memcpy(bssid.data(), wpa_ssid->bssid, ETH_ALEN); in getBssidInternal() 197 (u8 *)os_malloc(ETH_ALEN * 2 * clients.size()); in setClientListInternal() 203 os_memcpy(list, client.data(), ETH_ALEN); in setClientListInternal() 204 list += ETH_ALEN; in setClientListInternal() 205 os_memset(list, 0xFF, ETH_ALEN); in setClientListInternal() 206 list += ETH_ALEN; in setClientListInternal() 223 list += 2 * ETH_ALEN; in getClientListInternal()
|