Lines Matching refs:pae

585 	ae_t *pae = NULL;  in new_ae()  local
590 pae = safe_calloc(sizeof (*pae), 1); in new_ae()
591 pae->ae_arg = safe_strdup(arg); in new_ae()
592 pae->ae_next = NULL; in new_ae()
595 ael->ael_head = pae; in new_ae()
597 ael->ael_tail->ae_next = pae; in new_ae()
599 ael->ael_tail = pae; in new_ae()
674 ae_t *pae = NULL; in destroy_config() local
683 pae = p_list->ael_head; in destroy_config()
684 while (pae != NULL) { in destroy_config()
685 if (pae->ae_arg != NULL) in destroy_config()
686 free(pae->ae_arg); in destroy_config()
687 pae->ae_arg = NULL; in destroy_config()
688 pae = pae->ae_next; in destroy_config()
690 p_list->ael_head = pae; in destroy_config()
931 ae_t *pae = NULL; in fprint_config_file() local
963 pae = p_list->ael_head; in fprint_config_file()
964 while (pae != NULL) { in fprint_config_file()
965 if (pae->ae_arg != NULL) { in fprint_config_file()
967 pae->ae_arg); in fprint_config_file()
978 pae = pae->ae_next; in fprint_config_file()
1225 ae_t *pae = NULL; in del_prefer() local
1241 pae = plist->ael_head; in del_prefer()
1243 while (pae != NULL) { in del_prefer()
1244 if (strcmp(prefer, pae->ae_arg) == 0) { in del_prefer()
1245 free(pae->ae_arg); in del_prefer()
1246 pae->ae_arg = NULL; /* mark */ in del_prefer()
1248 plist->ael_head = pae->ae_next; in del_prefer()
1249 if (pae->ae_next == NULL) in del_prefer()
1254 prm_ae->ae_next = pae->ae_next; in del_prefer()
1255 if (pae->ae_next == NULL) in del_prefer()
1258 free(pae); in del_prefer()
1259 pae = NULL; in del_prefer()
1264 pae = pae->ae_next; in del_prefer()
1287 ae_t *pae = NULL; in del_section() local
1304 pae = plist->ael_head; in del_section()
1305 while (pae != NULL) { in del_section()
1306 free(pae->ae_arg); in del_section()
1307 pae->ae_arg = NULL; in del_section()
1308 pae = pae->ae_next; in del_section()
1310 plist->ael_head = pae; in del_section()
1354 ae_t *pae = NULL; in set_prefer() local
1382 pae = plist->ael_head; in set_prefer()
1384 while (pae != NULL) { in set_prefer()
1385 if (strcmp(prefer, pae->ae_arg) == 0) { in set_prefer()
1386 free(pae->ae_arg); in set_prefer()
1387 pae->ae_arg = NULL; in set_prefer()
1389 plist->ael_head = pae->ae_next; in set_prefer()
1390 if (pae->ae_next == NULL) in set_prefer()
1395 pae_move->ae_next = pae->ae_next; in set_prefer()
1396 if (pae->ae_next == NULL) in set_prefer()
1399 free(pae); in set_prefer()
1404 pae = pae->ae_next; in set_prefer()
1410 pae = safe_calloc(sizeof (ae_t), 1); in set_prefer()
1411 pae->ae_arg = safe_strdup(prefer); in set_prefer()
1412 pae->ae_next = plist->ael_head; in set_prefer()
1413 plist->ael_head = pae; in set_prefer()
1420 pae = safe_calloc(sizeof (ae_t), 1); in set_prefer()
1421 pae->ae_arg = safe_strdup(prefer); in set_prefer()
1422 pae->ae_next = pae_move->ae_next; in set_prefer()
1423 pae_move->ae_next = pae; in set_prefer()
1431 pae = plist->ael_head; in set_prefer()
1432 while (pae->ae_next != plist->ael_tail) in set_prefer()
1433 pae = pae->ae_next; in set_prefer()
1437 plist->ael_tail = pae; in set_prefer()
1453 ae_t *pae = NULL; in add_to_history() local
1475 pae = plist->ael_head; in add_to_history()
1483 while (pae != NULL) { in add_to_history()
1484 if (strncmp(item, pae->ae_arg, in add_to_history()
1486 free(pae->ae_arg); in add_to_history()
1487 pae->ae_arg = NULL; in add_to_history()
1489 plist->ael_head = pae->ae_next; in add_to_history()
1490 if (pae->ae_next == NULL) in add_to_history()
1495 pae_m->ae_next = pae->ae_next; in add_to_history()
1496 if (pae->ae_next == NULL) in add_to_history()
1499 free(pae); in add_to_history()
1504 pae = pae->ae_next; in add_to_history()
1512 pae = plist->ael_head; in add_to_history()
1513 free(pae->ae_arg); in add_to_history()
1514 plist->ael_head = pae->ae_next; in add_to_history()
1515 free(pae); in add_to_history()
1690 ae_t *pae = NULL; in essid_of_profile() local
1703 pae = plist->ael_head; in essid_of_profile()
1704 while (pae != NULL) { in essid_of_profile()
1705 if (strncmp(pae->ae_arg, "essid=", strlen("essid=")) == 0) { in essid_of_profile()
1707 pae->ae_arg)); in essid_of_profile()
1708 return (get_value(pae->ae_arg)); in essid_of_profile()
1710 pae = pae->ae_next; in essid_of_profile()
1822 ae_t *pae = NULL; in select_profile() local
1888 pae = plist->ael_head; in select_profile()
1889 while ((pae != NULL) && (flag != B_TRUE)) { in select_profile()
1890 parg = essid_of_profile(pae->ae_arg); in select_profile()
1894 selected = pae->ae_arg; in select_profile()
1900 pae = pae->ae_next; in select_profile()
2026 ae_t *pae = NULL; in do_startconf() local
2047 pae = plist->ael_head; in do_startconf()
2048 while (pae != NULL) { in do_startconf()
2049 if (pae->ae_arg != NULL) in do_startconf()
2050 (void) do_set_wepkey(fd, pae->ae_arg); in do_startconf()
2051 pae = pae->ae_next; in do_startconf()
2075 ae_t *pae = NULL; in find_active_profile() local
2108 pae = plist->ael_head; in find_active_profile()
2109 while (pae != NULL) { in find_active_profile()
2110 if (strncmp(pae->ae_arg, "essid=", in find_active_profile()
2112 pessid = get_value(pae->ae_arg); in find_active_profile()
2114 if (strncmp(pae->ae_arg, "bssid=", in find_active_profile()
2116 pbssid = get_value(pae->ae_arg); in find_active_profile()
2118 pae = pae->ae_next; in find_active_profile()
2169 ae_t *pae = NULL; in do_loadpf() local
2229 pae = plist->ael_head; in do_loadpf()
2230 while (pae != NULL) { in do_loadpf()
2231 if (pae->ae_arg != NULL) { in do_loadpf()
2232 (void) do_set_wepkey(fd, pae->ae_arg); in do_loadpf()
2234 pae = pae->ae_next; in do_loadpf()
2329 ae_t *pae = NULL; in print_wepkey_info() local
2334 pae = plist->ael_head; in print_wepkey_info()
2335 while (pae != NULL) { in print_wepkey_info()
2336 if (pae->ae_arg != NULL) { in print_wepkey_info()
2337 param = safe_strdup(pae->ae_arg); in print_wepkey_info()
2353 pae = pae->ae_next; in print_wepkey_info()
2368 ae_t *pae = NULL; in do_printpf() local
2383 pae = plist->ael_head; in do_printpf()
2384 while (pae != NULL) { in do_printpf()
2385 if (pae->ae_arg != NULL) { in do_printpf()
2387 pae->ae_arg); in do_printpf()
2389 pae = pae->ae_next; in do_printpf()
2410 pae = plist->ael_head; in do_printpf()
2411 while (pae != NULL) { in do_printpf()
2412 if (pae->ae_arg != NULL) { in do_printpf()
2414 pae->ae_arg); in do_printpf()
2416 pae = pae->ae_next; in do_printpf()
2442 ae_t *pae = NULL; in find_ae() local
2459 pae = plist->ael_head; in find_ae()
2460 while (pae != NULL) { in find_ae()
2461 if ((pae->ae_arg != NULL) && in find_ae()
2462 (strncmp(pae->ae_arg, param, strlen(param)) == 0)) { in find_ae()
2465 return (pae); in find_ae()
2467 pae = pae->ae_next; in find_ae()
2481 ae_t *pae = NULL; in update_aelist() local
2485 pae = find_ae(plist, arg); in update_aelist()
2486 if (pae == NULL) { in update_aelist()
2489 free(pae->ae_arg); in update_aelist()
2490 pae->ae_arg = safe_strdup(arg); in update_aelist()
2577 ae_t *pae = NULL; in do_history() local
2606 pae = NULL; in do_history()
2607 pae = plist->ael_head; in do_history()
2608 while (pae != NULL) { in do_history()
2609 if (pae->ae_arg != NULL) { in do_history()
2610 param = safe_strdup(pae->ae_arg); in do_history()
2626 pae = pae->ae_next; in do_history()
2646 pae = plist->ael_head; in do_history()
2647 while (pae != NULL) { in do_history()
2648 if (pae->ae_arg != NULL) { in do_history()
2649 param = safe_strdup(pae->ae_arg); in do_history()
2678 pae = pae->ae_next; in do_history()
2694 ae_t *pae = NULL; in do_lsprefer() local
2706 pae = NULL; in do_lsprefer()
2707 pae = plist->ael_head; in do_lsprefer()
2708 while (pae != NULL) { in do_lsprefer()
2709 if (pae->ae_arg != NULL) { in do_lsprefer()
2710 pbuf = append_pa(pae->ae_arg); in do_lsprefer()
2713 pae = pae->ae_next; in do_lsprefer()
2733 ae_t *pae = NULL; in do_rmprefer() local
2752 pae = plist->ael_head; in do_rmprefer()
2753 while (pae != NULL) { in do_rmprefer()
2754 free(pae); in do_rmprefer()
2755 pae = pae->ae_next; in do_rmprefer()
4278 ae_t *pae = NULL; in do_getprofparam() local
4304 pae = plist->ael_head; in do_getprofparam()
4305 while (pae != NULL) { in do_getprofparam()
4306 if (pae->ae_arg != NULL) { in do_getprofparam()
4307 (void) printf("\t%s\n", pae->ae_arg); in do_getprofparam()
4309 pae = pae->ae_next; in do_getprofparam()
4341 pae = plist->ael_head; in do_getprofparam()
4342 while ((pae != NULL) && (!flag)) { in do_getprofparam()
4343 if ((pae->ae_arg != NULL) && in do_getprofparam()
4344 (strncmp(pae->ae_arg, argv[i], in do_getprofparam()
4346 (void) printf("\t%s\n", pae->ae_arg); in do_getprofparam()
4349 pae = pae->ae_next; in do_getprofparam()