Lines Matching refs:ifcfg_file
1244 FILE *ifcfg_file, *nmfile; in kvp_set_ip_info() local
1329 ifcfg_file = fopen(if_filename, "w"); in kvp_set_ip_info()
1331 if (!ifcfg_file) { in kvp_set_ip_info()
1345 fclose(ifcfg_file); in kvp_set_ip_info()
1359 error = kvp_write_file(ifcfg_file, "HWADDR", "", mac_addr); in kvp_set_ip_info()
1363 error = kvp_write_file(ifcfg_file, "DEVICE", "", if_name); in kvp_set_ip_info()
1396 error = kvp_write_file(ifcfg_file, "BOOTPROTO", "", "dhcp"); in kvp_set_ip_info()
1400 error = kvp_write_file(ifcfg_file, "BOOTPROTO", "", "none"); in kvp_set_ip_info()
1405 error = process_ip_string(ifcfg_file, (char *)new_val->ip_addr, in kvp_set_ip_info()
1410 error = process_ip_string(ifcfg_file, (char *)new_val->sub_net, in kvp_set_ip_info()
1415 error = process_ip_string(ifcfg_file, (char *)new_val->gate_way, in kvp_set_ip_info()
1420 error = process_ip_string(ifcfg_file, (char *)new_val->dns_addr, DNS); in kvp_set_ip_info()
1467 fclose(ifcfg_file); in kvp_set_ip_info()
1496 fclose(ifcfg_file); in kvp_set_ip_info()