Lines Matching +defs:start +defs:line
35 int line = 0, vlan_id;
45 line++;
68 "line %d in '%s'", line, fname);
84 wpa_printf(MSG_ERROR, "Invalid VLAN ifname at line %d "
85 "in '%s'", line, fname);
126 int line = 0;
139 line++;
161 "line %d in '%s'", pos, line, fname);
198 char **pos, int line,
208 "Invalid salted %s hash on line %d in '%s'",
209 hash, line, fname);
223 "Invalid salted password on line %d in '%s'",
224 line, fname);
241 "Invalid salt for password on line %d in '%s'",
242 line, fname);
255 char buf[512], *pos, *start, *pos2;
256 int line = 0, ret = 0, num_methods;
279 line++;
320 "start) on line %d in '%s'", line, fname);
335 start = pos;
340 "(no \" in end) on line %d in '%s'",
341 line, fname);
345 user->identity = os_memdup(start, pos - start);
351 user->identity_len = pos - start;
363 wpa_printf(MSG_ERROR, "No EAP method on line %d in "
364 "'%s'", line, fname);
368 start = pos;
378 while (*start) {
379 char *pos3 = os_strchr(start, ',');
385 start,
391 if (os_strcmp(start, "TTLS-PAP") == 0) {
395 if (os_strcmp(start, "TTLS-CHAP") == 0) {
399 if (os_strcmp(start, "TTLS-MSCHAP") == 0) {
404 if (os_strcmp(start, "TTLS-MSCHAPV2") == 0) {
409 if (os_strcmp(start, "MACACL") == 0) {
414 "'%s' on line %d in '%s'",
415 start, line, fname);
425 start = pos3;
429 "line %d in '%s'", line, fname);
458 start = pos;
463 "(no \" in end) on line %d in '%s'",
464 line, fname);
468 user->password = os_memdup(start, pos - start);
474 user->password_len = pos - start;
485 "on line %d in '%s'", line, fname);
496 "on line %d in '%s'", line, fname);
506 line, fname) < 0)
512 line, fname) < 0)
518 line, fname) < 0)
527 "on line %d in '%s'", line, fname);
539 "on line %d in '%s'", line, fname);
636 static int hostapd_config_parse_key_mgmt(int line, const char *value)
639 char *start, *end, *buf;
644 start = buf;
646 while (*start != '\0') {
647 while (*start == ' ' || *start == '\t')
648 start++;
649 if (*start == '\0')
651 end = start;
656 if (os_strcmp(start, "WPA-PSK") == 0)
658 else if (os_strcmp(start, "WPA-EAP") == 0)
661 else if (os_strcmp(start, "FT-PSK") == 0)
663 else if (os_strcmp(start, "FT-EAP") == 0)
666 else if (os_strcmp(start, "FT-EAP-SHA384") == 0)
671 else if (os_strcmp(start, "WPA-EAP-SHA384") == 0)
674 else if (os_strcmp(start, "WPA-PSK-SHA256") == 0)
676 else if (os_strcmp(start, "WPA-EAP-SHA256") == 0)
679 else if (os_strcmp(start, "SAE") == 0)
681 else if (os_strcmp(start, "SAE-EXT-KEY") == 0)
683 else if (os_strcmp(start, "FT-SAE") == 0)
685 else if (os_strcmp(start, "FT-SAE-EXT-KEY") == 0)
689 else if (os_strcmp(start, "WPA-EAP-SUITE-B") == 0)
693 else if (os_strcmp(start, "WPA-EAP-SUITE-B-192") == 0)
697 else if (os_strcmp(start, "FILS-SHA256") == 0)
699 else if (os_strcmp(start, "FILS-SHA384") == 0)
702 else if (os_strcmp(start, "FT-FILS-SHA256") == 0)
704 else if (os_strcmp(start, "FT-FILS-SHA384") == 0)
709 else if (os_strcmp(start, "OWE") == 0)
713 else if (os_strcmp(start, "DPP") == 0)
717 else if (os_strcmp(start, "OSEN") == 0)
721 else if (os_strcmp(start, "PASN") == 0)
726 line, start);
733 start = end + 1;
739 "configured.", line);
747 static int hostapd_config_parse_cipher(int line, const char *value)
752 line, value);
757 line);
1030 int line = 0, errors = 0;
1042 line++;
1059 wpa_printf(MSG_ERROR, "Line %d: Invalid line '%s'",
1060 line, buf);
1071 line, pos);
1078 line, pos);
1289 int line)
1299 "'%s'", line, pos);
1369 int line)
1373 line, pos);
1381 int line)
1413 line, pos);
1419 int line)
1487 line, buf);
1493 static int parse_nai_realm(struct hostapd_bss_config *bss, char *buf, int line)
1629 wpa_printf(MSG_ERROR, "Line %d: invalid nai_realm '%s'", line, buf);
1634 static int parse_anqp_elem(struct hostapd_bss_config *bss, char *buf, int line)
1685 char *buf, int line)
1694 "parameters '%s'", line, buf);
1701 "'%s'", line, buf);
1714 line, buf);
1727 int line)
1761 int line)
1819 line, buf);
1826 char *pos, int line)
1831 "hs20_oper_friendly_name '%s'", line, pos);
1892 char *pos, int line)
1899 wpa_printf(MSG_ERROR, "Line %d: Invalid SSID '%s'", line, pos);
1913 char *pos, int line)
1933 char *pos, int line)
1936 wpa_printf(MSG_ERROR, "Line %d: Unexpected OSU field", line);
1943 line, pos);
1952 char *pos, int line)
1955 wpa_printf(MSG_ERROR, "Line %d: Unexpected OSU field", line);
1969 char *pos, int line)
1972 wpa_printf(MSG_ERROR, "Line %d: Unexpected OSU field", line);
1987 int line)
1990 wpa_printf(MSG_ERROR, "Line %d: Unexpected OSU field", line);
1995 wpa_printf(MSG_ERROR, "Line %d: Invalid osu_method_list", line);
2004 int line)
2010 wpa_printf(MSG_ERROR, "Line %d: Unexpected OSU field", line);
2028 char *pos, int line)
2031 wpa_printf(MSG_ERROR, "Line %d: Unexpected OSU field", line);
2038 line, pos);
2047 int line)
2109 static int parse_wpabuf_hex(int line, const char *name, struct wpabuf **buf,
2123 line, name, val);
2345 unsigned int line = 0;
2358 line++;
2361 "Invalid SAE password at line %d in '%s'",
2362 line, fname);
2405 static int get_hex_config(u8 *buf, size_t max_len, int line,
2413 wpa_printf(MSG_ERROR, "Line %d: Invalid %s", line, field);
2422 static int get_u16(const char *pos, int line, u16 *ret_val)
2429 line, pos);
2441 const char *buf, char *pos, int line)
2467 line, pos);
2476 line);
2487 line);
2494 line, pos);
2506 line, pos);
2524 line, acl);
2532 line, pos);
2539 line, pos);
2557 "Line %d: Invalid bss_max_idle value", line);
2569 line);
2581 line, pos);
2604 line, eapol_version, pos);
2612 wpa_printf(MSG_ERROR, "Line %d: obsolete eap_authenticator used; this has been renamed to eap_server", line);
2642 line, pos);
2687 line);
2691 line);
2698 line);
2706 line);
2730 line);
2778 line);
2802 line, val, val * 8);
2812 line, val, val * 8);
2820 line, bss->wep_rekeying_period);
2828 line, bss->eap_reauth_period);
2841 line, pos);
2852 line, pos);
2866 line, pos);
2875 line, pos);
2887 line);
2903 line, pos);
2931 line, pos);
2940 line, pos);
2952 line);
2968 line, pos);
3004 line);
3020 line);
3038 line);
3053 line);
3061 line, bss->max_num_sta, MAX_STA_COUNT);
3072 line, val);
3091 line, bss->wpa_deny_ptk0_rekey);
3101 line, val);
3112 line, val);
3122 line, len);
3139 line, pos);
3152 line);
3156 bss->wpa_key_mgmt = hostapd_config_parse_key_mgmt(line, pos);
3167 line, bss->wpa_psk_radius);
3171 bss->wpa_pairwise = hostapd_config_parse_cipher(line, pos);
3177 line, pos);
3181 bss->rsn_pairwise = hostapd_config_parse_cipher(line, pos);
3187 line, pos);
3191 bss->group_cipher = hostapd_config_parse_cipher(line, pos);
3201 line, pos);
3213 "Line %d: Obsolete peerkey parameter ignored", line);
3221 line, pos);
3229 line, pos);
3252 line, pos);
3258 line, pos);
3266 line);
3272 line, pos);
3306 line, group);
3340 line, pos);
3358 line, pos);
3369 line);
3386 line);
3392 line);
3406 line, val);
3420 line, val);
3429 line, val);
3436 line);
3445 line, val);
3455 line, val);
3465 line);
3474 line, conf->rts_threshold);
3485 line, conf->fragm_threshold);
3492 line, val);
3499 line);
3505 line);
3516 line, val);
3526 line, val);
3536 line, val);
3546 line, val);
3577 line, buf);
3589 line, pos);
3598 line, bss->ssid.vlan_naming);
3614 line);
3626 line);
3632 line);
3638 line);
3656 line, pos);
3665 line);
3672 line);
3686 line);
3701 line);
3842 line, pos);
3850 line, pos);
3858 line);
3887 line);
3896 line, mbssid, pos);
3912 line);
3921 wpa_printf(MSG_ERROR, "Line %d: invalid UUID", line);
3930 "device_name", line);
3938 line);
3946 line);
3954 line);
3962 line);
3976 line);
3992 line, pos);
4005 line, pos);
4014 line, pos);
4028 line, len);
4049 line, pos);
4090 line);
4143 line);
4167 line);
4186 wpa_printf(MSG_ERROR, "Line %d: invalid hessid", line);
4190 if (parse_roaming_consortium(bss, pos, line) < 0)
4193 if (parse_venue_name(bss, pos, line) < 0)
4196 if (parse_venue_url(bss, pos, line) < 0)
4204 line, pos);
4224 line, pos);
4267 if (parse_3gpp_cell_net(bss, pos, line) < 0)
4270 if (parse_nai_realm(bss, pos, line) < 0)
4273 if (parse_anqp_elem(bss, pos, line) < 0)
4281 line, pos);
4289 if (parse_qos_map_set(bss, pos, line) < 0)
4309 line, pos);
4324 if (hs20_parse_oper_friendly_name(bss, pos, line) < 0)
4327 if (hs20_parse_wan_metrics(bss, pos, line) < 0)
4330 if (hs20_parse_conn_capab(bss, pos, line) < 0) {
4340 line, pos);
4350 line, pos);
4360 line, pos);
4364 if (hs20_parse_osu_ssid(bss, pos, line) < 0)
4367 if (hs20_parse_osu_server_uri(bss, pos, line) < 0)
4370 if (hs20_parse_osu_friendly_name(bss, pos, line) < 0)
4373 if (hs20_parse_osu_nai(bss, pos, line) < 0)
4376 if (hs20_parse_osu_nai2(bss, pos, line) < 0)
4379 if (hs20_parse_osu_method_list(bss, pos, line) < 0)
4382 if (hs20_parse_osu_icon(bss, pos, line) < 0)
4385 if (hs20_parse_osu_service_desc(bss, pos, line) < 0)
4388 if (hs20_parse_operator_icon(bss, pos, line) < 0)
4425 line, pos); \
4440 line);
4448 line);
4476 line, pos);
4536 if (parse_wpabuf_hex(line, buf, &bss->eapol_m1_elements, pos))
4539 if (parse_wpabuf_hex(line, buf, &bss->eapol_m3_elements, pos))
4546 if (parse_wpabuf_hex(line, buf, &bss->presp_elements, pos))
4553 line);
4560 line);
4565 if (parse_wpabuf_hex(line, buf, &bss->vendor_elements, pos))
4568 if (parse_wpabuf_hex(line, buf, &bss->assocresp_elements, pos))
4579 line, pos);
4592 line, val);
4608 line, pos);
4615 line, pos);
4628 line, FST_MAX_PRIO_VALUE);
4636 line, val, pos, FST_MAX_PRIO_VALUE);
4647 line, FST_MAX_LLT_MS);
4655 line, val, pos, FST_MAX_LLT_MS);
4711 line, pos);
4724 line, pos);
4765 if (parse_wpabuf_hex(line, buf, &bss->dpp_netaccesskey, pos))
4770 if (parse_wpabuf_hex(line, buf, &bss->dpp_csign, pos))
4786 line, pos);
4797 line);
4806 line, pos);
4820 line, pos);
4833 line, buf);
4844 line, buf);
4854 line, buf);
4864 line, buf);
4884 line);
4898 line);
4906 line, pos);
4917 line, macsec_policy, pos);
4927 line, macsec_integ_only, pos);
4937 line, macsec_replay_protect, pos);
4949 line, macsec_offload, pos);
4959 line, macsec_port, pos);
4969 line, mka_priority, pos);
4979 line, macsec_csindex, pos);
4990 line, pos);
5002 line, pos);
5008 line, pos);
5032 line, pos);
5042 line, "ext_capa_mask", pos))
5046 line, "ext_capa", pos))
5072 if (get_u16(pos, line, &conf->punct_bitmap))
5080 line);
5089 line);
5096 if (get_u16(pos, line, &bss->eht_oper_puncturing_override))
5105 line, buf);
5123 int line = 0;
5155 line++;
5172 wpa_printf(MSG_ERROR, "Line %d: invalid line '%s'",
5173 line, buf);
5179 errors += hostapd_config_fill(conf, bss, buf, pos, line);