Lines Matching refs:if_name
572 char *if_name = NULL; in kvp_get_if_name() local
602 if_name = strdup(entry->d_name); in kvp_get_if_name()
611 return if_name; in kvp_get_if_name()
618 static char *kvp_if_name_to_mac(char *if_name) in kvp_if_name_to_mac() argument
628 if_name, "/address"); in kvp_if_name_to_mac()
680 static void kvp_get_ipconfig_info(char *if_name, in kvp_get_ipconfig_info() argument
691 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info()
703 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info()
745 sprintf(cmd, KVP_SCRIPTS_PATH "%s %s", "hv_get_dhcp_info", if_name); in kvp_get_ipconfig_info()
814 kvp_get_ip_info(int family, char *if_name, int op, in kvp_get_ip_info() argument
855 if ((if_name != NULL) && in kvp_get_ip_info()
856 (strncmp(curp->ifa_name, if_name, strlen(if_name)))) { in kvp_get_ip_info()
934 kvp_get_ipconfig_info(if_name, ip_buffer); in kvp_get_ip_info()
963 char *if_name = NULL; in kvp_mac_to_ip() local
1003 if_name = entry->d_name; in kvp_mac_to_ip()
1004 if (!if_name) in kvp_mac_to_ip()
1007 error = kvp_get_ip_info(0, if_name, KVP_OP_GET_IP_INFO, in kvp_mac_to_ip()
1329 static int kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val) in kvp_set_ip_info() argument
1416 "/ifcfg-", if_name); in kvp_set_ip_info()
1427 "/", if_name, ".nmconnection"); in kvp_set_ip_info()
1442 mac_addr = kvp_if_name_to_mac(if_name); in kvp_set_ip_info()
1452 error = kvp_write_file(ifcfg_file, "DEVICE", "", if_name); in kvp_set_ip_info()
1460 error = kvp_write_file(nmfile, "interface-name", "", if_name); in kvp_set_ip_info()
1678 char *if_name; in main() local
1812 if_name = kvp_get_if_name( in main()
1814 if (if_name == NULL) { in main()
1822 error = kvp_set_ip_info(if_name, kvp_ip_val); in main()
1826 free(if_name); in main()