Lines Matching refs:nmfile
1244 FILE *ifcfg_file, *nmfile; in kvp_set_ip_info() local
1340 nmfile = fopen(nm_filename, "w"); in kvp_set_ip_info()
1342 if (!nmfile) { in kvp_set_ip_info()
1367 error = fprintf(nmfile, "\n[connection]\n"); in kvp_set_ip_info()
1371 error = kvp_write_file(nmfile, "interface-name", "", if_name); in kvp_set_ip_info()
1375 error = fprintf(nmfile, "\n[ethernet]\n"); in kvp_set_ip_info()
1379 error = kvp_write_file(nmfile, "mac-address", "", mac_addr); in kvp_set_ip_info()
1425 error = fprintf(nmfile, "\n[ipv6]\n"); in kvp_set_ip_info()
1430 error = fprintf(nmfile, "\n[ipv4]\n"); in kvp_set_ip_info()
1440 error = kvp_write_file(nmfile, "method", "", "auto"); in kvp_set_ip_info()
1444 error = kvp_write_file(nmfile, "method", "", "manual"); in kvp_set_ip_info()
1453 error = process_ip_string_nm(nmfile, (char *)new_val->ip_addr, in kvp_set_ip_info()
1458 error = fprintf(nmfile, "gateway=%s\n", (char *)new_val->gate_way); in kvp_set_ip_info()
1462 error = fprintf(nmfile, "dns=%s\n", (char *)new_val->dns_addr); in kvp_set_ip_info()
1466 fclose(nmfile); in kvp_set_ip_info()
1497 fclose(nmfile); in kvp_set_ip_info()