/hostap-3.6.0/hs20/server/ |
D | sql.txt | 26 mac_addr TEXT, 61 mac_addr TEXT, 81 mac_addr TEXT PRIMARY KEY, 86 mac_addr TEXT PRIMARY KEY, 96 mac_addr TEXT PRIMARY KEY, 105 mac_addr TEXT,
|
/hostap-3.6.0/src/wps/ |
D | wps_attr_process.c | 196 const u8 *mac_addr) in wps_process_cred_mac_addr() argument 198 if (mac_addr == NULL) { in wps_process_cred_mac_addr() 204 wpa_printf(MSG_DEBUG, "WPS: MAC Address " MACSTR, MAC2STR(mac_addr)); in wps_process_cred_mac_addr() 205 os_memcpy(cred->mac_addr, mac_addr, ETH_ALEN); in wps_process_cred_mac_addr() 260 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_cred() 279 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
|
D | wps_enrollee.c | 324 wps->peer_dev.mac_addr, in wps_build_cred_network_key() 344 wpabuf_put_data(msg, wps->wps->dev.mac_addr, ETH_ALEN); in wps_build_cred_mac_addr() 445 wps_success_event(wps->wps, wps->peer_dev.mac_addr); in wps_build_wsc_done() 653 wps_pwd_auth_fail_event(wps->wps, 1, 1, wps->peer_dev.mac_addr); in wps_process_r_snonce1() 693 wps_pwd_auth_fail_event(wps->wps, 1, 2, wps->peer_dev.mac_addr); in wps_process_r_snonce2() 718 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 722 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e() 723 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e() 818 if (os_memcmp(cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e() 822 ")", MAC2STR(cred.mac_addr), in wps_process_ap_settings_e() [all …]
|
D | wps.h | 55 u8 mac_addr[ETH_ALEN]; member 86 u8 mac_addr[ETH_ALEN]; member 268 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr, 309 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 353 int (*lookup_pskfile_cb)(void *ctx, const u8 *mac_addr, const u8 **psk); 570 const u8 *mac_addr; member 586 const u8 *mac_addr; member 927 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
|
D | wps_i.h | 142 u16 config_error, u16 error_indication, const u8 *mac_addr); 143 void wps_success_event(struct wps_context *wps, const u8 *mac_addr); 145 const u8 *mac_addr); 218 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr,
|
D | wps_common.c | 273 u16 config_error, u16 error_indication, const u8 *mac_addr) in wps_fail_event() argument 284 os_memcpy(data.fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_fail_event() 289 void wps_success_event(struct wps_context *wps, const u8 *mac_addr) in wps_success_event() argument 297 os_memcpy(data.success.peer_macaddr, mac_addr, ETH_ALEN); in wps_success_event() 303 const u8 *mac_addr) in wps_pwd_auth_fail_event() argument 313 os_memcpy(data.pwd_auth_fail.peer_macaddr, mac_addr, ETH_ALEN); in wps_pwd_auth_fail_event() 376 wps_build_mac_addr(plain, wps->dev.mac_addr) || in wps_get_oob_cred() 500 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument 515 addr[1] = mac_addr; in uuid_gen_mac_addr()
|
D | wps_er.h | 45 u8 mac_addr[ETH_ALEN]; member 80 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
|
D | wps_registrar.c | 148 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *p2p_dev_addr, 154 void (*reg_success_cb)(void *ctx, const u8 *mac_addr, 163 int (*lookup_pskfile_cb)(void *ctx, const u8 *mac_addr, const u8 **psk); 299 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get() 309 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data() 330 d = wps_device_get(reg, dev->mac_addr); in wps_device_store() 1230 int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_new_psk() argument 1236 return reg->new_psk_cb(reg->cb_ctx, mac_addr, p2p_dev_addr, psk, in wps_cb_new_psk() 1251 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_reg_success() argument 1258 reg->reg_success_cb(reg->cb_ctx, mac_addr, uuid_e, dev_pw, dev_pw_len); in wps_cb_reg_success() [all …]
|
D | wps_validate.c | 564 static int wps_validate_mac_addr(const u8 *mac_addr, int mandatory) in wps_validate_mac_addr() argument 566 if (mac_addr == NULL) { in wps_validate_mac_addr() 574 if (mac_addr[0] & 0x01) { in wps_validate_mac_addr() 576 "attribute value " MACSTR, MAC2STR(mac_addr)); in wps_validate_mac_addr() 1048 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_cred() 1304 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_m1() 1741 wps_validate_mac_addr(attr.mac_addr, !ap) || in wps_validate_m7_encr() 1817 wps_validate_mac_addr(attr.mac_addr, ap) || in wps_validate_m8_encr()
|
D | wps_er.c | 45 ev->mac_addr = sta->addr; in wps_er_sta_event() 101 const u8 *mac_addr) in wps_er_ap_get() argument 108 (mac_addr == NULL || in wps_er_ap_get() 109 os_memcmp(mac_addr, ap->mac_addr, ETH_ALEN) == 0)) in wps_er_ap_get() 149 evap->mac_addr = ap->mac_addr; in wps_er_ap_event() 486 if (attr.mac_addr) in wps_er_ap_get_m1() 487 os_memcpy(ap->mac_addr, attr.mac_addr, ETH_ALEN); in wps_er_ap_get_m1() 1059 os_memcpy(sta->cred->mac_addr, sta->addr, ETH_ALEN); in wps_er_sta_start() 1301 NULL, er->mac_addr)) { in wps_er_init()
|
D | wps_upnp.h | 33 const u8 *mac_addr, const struct wpabuf *msg,
|
D | wps_attr_parse.h | 49 const u8 *mac_addr; /* ETH_ALEN (6) octets */ member
|
D | wps_upnp_i.h | 128 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */ member
|
D | wps.c | 49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); in wps_init() 135 os_memcpy(data->peer_dev.mac_addr, cfg->peer_addr, ETH_ALEN); in wps_init()
|
/hostap-3.6.0/tests/hwsim/ |
D | test_ap_wps.py | 6597 def wsc_dh_kdf(peer_pk, own_private, mac_addr, e_nonce, r_nonce): argument 6611 m = hmac.new(dhkey, e_nonce + mac_addr + r_nonce, hashlib.sha256) 6638 def build_m1(eap_id, uuid_e, mac_addr, e_nonce, e_pk, argument 6643 attrs += build_wsc_attr(ATTR_MAC_ADDR, mac_addr) 6758 mac_addr = binascii.unhexlify(dev[0].own_addr().replace(':', '')) 6764 m1, raw_m1_attrs = build_m1(msg['eap_identifier'], uuid_e, mac_addr, 6772 mac_addr, e_nonce, 6848 mac_addr, m1_attrs[ATTR_ENROLLEE_NONCE], 6936 mac_addr = binascii.unhexlify(dev[0].own_addr().replace(':', '')) 6946 mac_addr, m1_attrs[ATTR_ENROLLEE_NONCE], [all …]
|
D | test_sta_dynamic.py | 228 id = wpas.connect("sta-dynamic", psk="12345678", mac_addr="1", 249 id = wpas.connect("sta-dynamic", psk="12345678", mac_addr="1", 266 id = wpas.connect("sta-dynamic", psk="12345678", mac_addr="2", 289 id = wpas.connect("sta-dynamic", psk="12345678", mac_addr="2",
|
/hostap-3.6.0/hostapd/ |
D | hostapd.eap_user_sqlite | 30 mac_addr TEXT PRIMARY KEY, 35 mac_addr TEXT PRIMARY KEY,
|
/hostap-3.6.0/src/ap/ |
D | wps_hostapd.c | 95 static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_new_psk_cb() argument 106 MAC2STR(mac_addr)); in hostapd_wps_new_psk_cb() 111 MAC2STR(mac_addr), MAC2STR(p2p_dev_addr)); in hostapd_wps_new_psk_cb() 125 os_memcpy(p->addr, mac_addr, ETH_ALEN); in hostapd_wps_new_psk_cb() 131 hapd->new_psk_cb(hapd->new_psk_cb_ctx, mac_addr, p2p_dev_addr, in hostapd_wps_new_psk_cb() 151 fprintf(f, "wps=1 " MACSTR " %s\n", MAC2STR(mac_addr), hex); in hostapd_wps_new_psk_cb() 185 uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 202 t.sec, uuid, MAC2STR(dev->mac_addr), dev->device_name, in hostapd_wps_pin_needed_cb() 229 static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr, in hostapd_wps_reg_success_cb() argument 239 MAC2STR(mac_addr), uuid); in hostapd_wps_reg_success_cb() [all …]
|
D | hostapd.h | 268 void (*wps_reg_success_cb)(void *ctx, const u8 *mac_addr, 276 void (*sta_authorized_cb)(void *ctx, const u8 *mac_addr, 283 void (*new_psk_cb)(void *ctx, const u8 *mac_addr,
|
/hostap-3.6.0/hs20/server/www/ |
D | spp.php | 106 $mac_addr = $row['mac_addr']; variable 119 putenv("HS20MACADDR=$mac_addr");
|
/hostap-3.6.0/src/drivers/ |
D | driver_nl80211_scan.c | 258 if (params->mac_addr) { in nl80211_scan_common() 260 MAC2STR(params->mac_addr)); in nl80211_scan_common() 262 params->mac_addr)) in nl80211_scan_common() 1170 if (params->mac_addr) { in wpa_driver_nl80211_vendor_scan() 1172 MAC2STR(params->mac_addr)); in wpa_driver_nl80211_vendor_scan() 1174 ETH_ALEN, params->mac_addr)) in wpa_driver_nl80211_vendor_scan()
|
/hostap-3.6.0/wpa_supplicant/ |
D | wps_supplicant.c | 206 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 405 MAC2STR(cred->mac_addr)); in wpa_supplicant_wps_cred() 755 uuid_str, MAC2STR(ap->mac_addr), dev_type, ap->wps_state, in wpa_supplicant_wps_event_er_ap_add() 790 uuid_str, MAC2STR(enrollee->mac_addr), enrollee->m1_received, in wpa_supplicant_wps_event_er_enrollee_add() 806 uuid_str, MAC2STR(enrollee->mac_addr)); in wpa_supplicant_wps_event_er_enrollee_remove() 1432 static int wpas_wps_new_psk_cb(void *ctx, const u8 *mac_addr, in wpas_wps_new_psk_cb() argument 1439 MAC2STR(mac_addr)); in wpas_wps_new_psk_cb() 1444 MAC2STR(mac_addr), MAC2STR(p2p_dev_addr)); in wpas_wps_new_psk_cb() 1465 uuid, MAC2STR(dev->mac_addr), dev->device_name, in wpas_wps_pin_needed_cb() 1625 os_memcpy(wps->dev.mac_addr, wpa_s->own_addr, ETH_ALEN); in wpas_wps_init() [all …]
|
D | scan.c | 83 const u8 *mac_addr) in wpa_setup_mac_addr_rand_params() argument 87 if (params->mac_addr) { in wpa_setup_mac_addr_rand_params() 89 os_free(params->mac_addr); in wpa_setup_mac_addr_rand_params() 90 params->mac_addr = NULL; in wpa_setup_mac_addr_rand_params() 95 if (!mac_addr) in wpa_setup_mac_addr_rand_params() 102 os_memcpy(tmp, mac_addr, 2 * ETH_ALEN); in wpa_setup_mac_addr_rand_params() 103 params->mac_addr = tmp; in wpa_setup_mac_addr_rand_params() 1405 os_free(params.mac_addr); in wpa_supplicant_scan() 1794 os_free(params.mac_addr); in wpa_supplicant_req_sched_scan() 2890 wpa_setup_mac_addr_rand_params(params, src->mac_addr)) in wpa_scan_clone_params() [all …]
|
D | notify.c | 796 const u8 *mac_addr, int authorized, in wpas_notify_sta_authorized() argument 800 wpas_notify_ap_sta_authorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized() 802 wpas_notify_ap_sta_deauthorized(wpa_s, mac_addr, p2p_dev_addr); in wpas_notify_sta_authorized()
|
/hostap-3.6.0/src/radius/ |
D | radius_server.c | 78 u8 mac_addr[ETH_ALEN]; /* from Calling-Station-Id attribute */ member 635 if (hwaddr_aton2(buf, sess->mac_addr) < 0) in radius_server_get_new_session() 636 os_memset(sess->mac_addr, 0, ETH_ALEN); in radius_server_get_new_session() 639 MAC2STR(sess->mac_addr)); in radius_server_get_new_session() 674 is_zero_ether_addr(sess->mac_addr)) in radius_srv_hs20_t_c_pending() 677 os_snprintf(addr, sizeof(addr), MACSTR, MAC2STR(sess->mac_addr)); in radius_srv_hs20_t_c_pending() 717 MAC2STR(sess->mac_addr)); in radius_server_add_session() 867 MAC2STR(sess->mac_addr)); in radius_server_sim_provisioning_session() 1097 os_snprintf(pos2, end2 - pos2, MACSTR, MAC2STR(sess->mac_addr)); in radius_server_encapsulate_eap()
|