Home
last modified time | relevance | path

Searched refs:ETH_ALEN (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/external/iptables/iptables/
Dnft-bridge.h21 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/
Dns-icmp_redirector.c69 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/
Dieee802_1x_key.c23 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/wpa_supplicant_8/src/ap/
Dpeerkey_auth.c31 if (os_memcmp(search->addr, sm->addr, ETH_ALEN) == 0) { in wpa_stsl_select_sta()
43 u8 kde[2 + RSN_SELECTOR_LEN + ETH_ALEN + in wpa_smk_send_error()
54 pos = wpa_add_kde(pos, RSN_KEY_DATA_MAC_ADDR, peer, ETH_ALEN, in wpa_smk_send_error()
85 kde.mac_addr_len < ETH_ALEN) { in wpa_smk_m1()
105 buf_len = kde.rsn_ie_len + 2 + RSN_SELECTOR_LEN + ETH_ALEN; in wpa_smk_m1()
113 pos = wpa_add_kde(pos, RSN_KEY_DATA_MAC_ADDR, sm->addr, ETH_ALEN, in wpa_smk_m1()
149 buf_len = 2 + RSN_SELECTOR_LEN + ETH_ALEN + in wpa_send_smk_m4()
158 pos = wpa_add_kde(pos, RSN_KEY_DATA_MAC_ADDR, kde->mac_addr, ETH_ALEN, in wpa_send_smk_m4()
203 2 + RSN_SELECTOR_LEN + ETH_ALEN + in wpa_send_smk_m5()
216 pos = wpa_add_kde(pos, RSN_KEY_DATA_MAC_ADDR, peer, ETH_ALEN, NULL, 0); in wpa_send_smk_m5()
[all …]
Diapp.c78 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 …]
Dwpa_auth.h29 u8 ap_address[ETH_ALEN];
48 ETH_ALEN)
55 u8 ap_address[ETH_ALEN];
60 u8 s1kh_id[ETH_ALEN];
66 FT_R1KH_ID_LEN + ETH_ALEN + PMK_LEN + \
73 u8 ap_address[ETH_ALEN];
77 u8 s1kh_id[ETH_ALEN]; /* copied from pull */
85 #define FT_R0KH_R1KH_PUSH_DATA_LEN (4 + FT_R1KH_ID_LEN + ETH_ALEN + \
93 u8 ap_address[ETH_ALEN];
99 u8 s1kh_id[ETH_ALEN];
[all …]
Dwnm_ap.c101 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()
263 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
264 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
265 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
346 if (end - pos < ETH_ALEN) { in ieee802_11_rx_bss_trans_mgmt_resp()
357 pos += ETH_ALEN; in ieee802_11_rx_bss_trans_mgmt_resp()
440 os_memcpy(mgmt->da, sta->addr, ETH_ALEN); in wnm_send_disassoc_imminent()
441 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
[all …]
Dctrl_iface_ap.c193 u8 addr[ETH_ALEN]; in hostapd_ctrl_iface_sta()
235 u8 addr[ETH_ALEN]; in hostapd_ctrl_iface_sta_next()
275 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect()
276 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect()
277 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect()
310 u8 addr[ETH_ALEN]; in hostapd_ctrl_iface_deauthenticate()
336 os_memcpy(mgmt.da, addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate()
337 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate()
338 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in hostapd_ctrl_iface_deauthenticate()
373 u8 addr[ETH_ALEN]; in hostapd_ctrl_iface_disassociate()
[all …]
/external/syslinux/gpxe/src/net/
Dethernet.c41 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/syslinux/gpxe/src/core/
Dgdbudp.c46 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/wpa_supplicant/
Dwpa_supplicant_i.h277 u8 p2p_dev_addr[ETH_ALEN];
385 u8 bssid[ETH_ALEN];
440 u8 bssid[ETH_ALEN];
449 u8 bssid[ETH_ALEN];
458 u8 bssid[ETH_ALEN];
471 u8 dst[ETH_ALEN];
492 unsigned char own_addr[ETH_ALEN];
493 unsigned char perm_addr[ETH_ALEN];
519 u8 bssid[ETH_ALEN];
520 u8 pending_bssid[ETH_ALEN]; /* If wpa_state == WPA_ASSOCIATING, this
[all …]
Dbgscan_learn.c24 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/wpa_supplicant_8/src/p2p/
Dp2p_group.c23 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 …]
Dp2p_i.h60 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 …]
Dp2p_build.c198 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 …]
Dp2p_parse.c56 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 …]
/external/wpa_supplicant_8/src/common/
Dprivsep_commands.h45 u8 bssid[ETH_ALEN];
61 u8 bssid[ETH_ALEN];
78 u8 addr[ETH_ALEN];
103 u8 peer[ETH_ALEN];
104 u8 bssid[ETH_ALEN];
Dwpa_common.c170 u8 data[2 * ETH_ALEN + 2 * WPA_NONCE_LEN]; in wpa_pmk_to_ptk()
174 if (os_memcmp(addr1, addr2, ETH_ALEN) < 0) { in wpa_pmk_to_ptk()
175 os_memcpy(data, addr1, ETH_ALEN); in wpa_pmk_to_ptk()
176 os_memcpy(data + ETH_ALEN, addr2, ETH_ALEN); in wpa_pmk_to_ptk()
178 os_memcpy(data, addr2, ETH_ALEN); in wpa_pmk_to_ptk()
179 os_memcpy(data + ETH_ALEN, addr1, ETH_ALEN); in wpa_pmk_to_ptk()
183 os_memcpy(data + 2 * ETH_ALEN, nonce1, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
184 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce2, in wpa_pmk_to_ptk()
187 os_memcpy(data + 2 * ETH_ALEN, nonce2, WPA_NONCE_LEN); in wpa_pmk_to_ptk()
188 os_memcpy(data + 2 * ETH_ALEN + WPA_NONCE_LEN, nonce1, in wpa_pmk_to_ptk()
[all …]
/external/kernel-headers/original/uapi/linux/netfilter_bridge/
Debt_arp.h29 unsigned char smaddr[ETH_ALEN];
30 unsigned char smmsk[ETH_ALEN];
31 unsigned char dmaddr[ETH_ALEN];
32 unsigned char dmmsk[ETH_ALEN];
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_privsep.c23 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/rsn_supp/
Dtdls.c71 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 */
119 u8 dest[ETH_ALEN];
260 if (os_memcmp(peer->addr, dest, ETH_ALEN) == 0) in wpa_tdls_tpk_send()
281 os_memcpy(peer->sm_tmr.dest, dest, ETH_ALEN); in wpa_tdls_tpk_send()
396 u8 data[3 * ETH_ALEN]; in wpa_tdls_generate_tpk()
424 if (os_memcmp(own_addr, peer->addr, ETH_ALEN) < 0) { in wpa_tdls_generate_tpk()
425 os_memcpy(data, own_addr, ETH_ALEN); in wpa_tdls_generate_tpk()
[all …]
/external/syslinux/gpxe/src/drivers/net/
Dvirtio-net.c38 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/iw/
Dmpath.c99 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/src/drivers/
Ddriver_nl80211.h69 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];
195 u8 auth_bssid_[ETH_ALEN];
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/
Dp2p_network.cpp161 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()

12345678910>>...13