Lines Matching refs:pos2

40 	char buf[128], *pos, *pos2, *pos3;  in hostapd_config_read_vlan_file()  local
82 pos2 = pos; in hostapd_config_read_vlan_file()
83 while (*pos2 != ' ' && *pos2 != '\t' && *pos2 != '\0') in hostapd_config_read_vlan_file()
84 pos2++; in hostapd_config_read_vlan_file()
86 if (*pos2 != '\0') in hostapd_config_read_vlan_file()
87 *(pos2++) = '\0'; in hostapd_config_read_vlan_file()
96 while (*pos2 == ' ' || *pos2 == '\t') in hostapd_config_read_vlan_file()
97 pos2++; in hostapd_config_read_vlan_file()
98 pos3 = pos2; in hostapd_config_read_vlan_file()
115 os_strlcpy(vlan->bridge, pos2, sizeof(vlan->bridge)); in hostapd_config_read_vlan_file()
253 char *pos2 = *pos; in hostapd_config_eap_user_salted() local
255 while (*pos2 != '\0' && *pos2 != ' ' && *pos2 != '\t' && *pos2 != '#') in hostapd_config_eap_user_salted()
256 pos2++; in hostapd_config_eap_user_salted()
258 if (pos2 - *pos < (int) (2 * (len + 1))) { /* at least 1 byte of salt */ in hostapd_config_eap_user_salted()
282 user->salt_len = (pos2 - *pos) / 2; in hostapd_config_eap_user_salted()
298 *pos = pos2; in hostapd_config_eap_user_salted()
307 char buf[512], *pos, *start, *pos2; in hostapd_config_read_eap_user() local
531 pos2 = pos; in hostapd_config_read_eap_user()
532 while (*pos2 != '\0' && *pos2 != ' ' && in hostapd_config_read_eap_user()
533 *pos2 != '\t' && *pos2 != '#') in hostapd_config_read_eap_user()
534 pos2++; in hostapd_config_read_eap_user()
535 if (pos2 - pos != 32) { in hostapd_config_read_eap_user()
553 pos = pos2; in hostapd_config_read_eap_user()
573 pos2 = pos; in hostapd_config_read_eap_user()
574 while (*pos2 != '\0' && *pos2 != ' ' && in hostapd_config_read_eap_user()
575 *pos2 != '\t' && *pos2 != '#') in hostapd_config_read_eap_user()
576 pos2++; in hostapd_config_read_eap_user()
577 if ((pos2 - pos) & 1) { in hostapd_config_read_eap_user()
582 user->password = os_malloc((pos2 - pos) / 2); in hostapd_config_read_eap_user()
589 (pos2 - pos) / 2) < 0) { in hostapd_config_read_eap_user()
594 user->password_len = (pos2 - pos) / 2; in hostapd_config_read_eap_user()
595 pos = pos2; in hostapd_config_read_eap_user()
2320 const char *pos = val, *pos2, *end = NULL; in parse_sae_password() local
2327 pos2 = os_strstr(pos, "|mac="); in parse_sae_password()
2328 if (pos2) { in parse_sae_password()
2329 end = pos2; in parse_sae_password()
2330 pos2 += 5; in parse_sae_password()
2331 if (hwaddr_aton(pos2, pw->peer_addr) < 0) in parse_sae_password()
2333 pos = pos2 + ETH_ALEN * 3 - 1; in parse_sae_password()
2336 pos2 = os_strstr(pos, "|vlanid="); in parse_sae_password()
2337 if (pos2) { in parse_sae_password()
2339 end = pos2; in parse_sae_password()
2340 pos2 += 8; in parse_sae_password()
2341 pw->vlan_id = atoi(pos2); in parse_sae_password()
2344 pos2 = os_strstr(pos, "|id="); in parse_sae_password()
2345 if (pos2) { in parse_sae_password()
2347 end = pos2; in parse_sae_password()
2348 pos2 += 4; in parse_sae_password()
2349 pw->identifier = os_strdup(pos2); in parse_sae_password()