Lines Matching refs:ifcfg_file
1334 FILE *ifcfg_file, *nmfile; in kvp_set_ip_info() local
1418 ifcfg_file = fopen(if_filename, "w"); in kvp_set_ip_info()
1420 if (!ifcfg_file) { in kvp_set_ip_info()
1434 fclose(ifcfg_file); in kvp_set_ip_info()
1448 error = kvp_write_file(ifcfg_file, "HWADDR", "", mac_addr); in kvp_set_ip_info()
1452 error = kvp_write_file(ifcfg_file, "DEVICE", "", if_name); in kvp_set_ip_info()
1485 error = kvp_write_file(ifcfg_file, "BOOTPROTO", "", "dhcp"); in kvp_set_ip_info()
1489 error = kvp_write_file(ifcfg_file, "BOOTPROTO", "", "none"); in kvp_set_ip_info()
1494 error = process_ip_string(ifcfg_file, (char *)new_val->ip_addr, in kvp_set_ip_info()
1499 error = process_ip_string(ifcfg_file, (char *)new_val->sub_net, in kvp_set_ip_info()
1504 error = process_ip_string(ifcfg_file, (char *)new_val->gate_way, in kvp_set_ip_info()
1509 error = process_ip_string(ifcfg_file, (char *)new_val->dns_addr, DNS); in kvp_set_ip_info()
1602 fclose(ifcfg_file); in kvp_set_ip_info()
1631 fclose(ifcfg_file); in kvp_set_ip_info()