Lines Matching refs:if_name
561 char *if_name = NULL; in kvp_get_if_name() local
591 if_name = strdup(entry->d_name); in kvp_get_if_name()
600 return if_name; in kvp_get_if_name()
607 static char *kvp_if_name_to_mac(char *if_name) in kvp_if_name_to_mac() argument
617 if_name, "/address"); in kvp_if_name_to_mac()
669 static void kvp_get_ipconfig_info(char *if_name, in kvp_get_ipconfig_info() argument
680 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info()
692 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info()
734 sprintf(cmd, KVP_SCRIPTS_PATH "%s %s", "hv_get_dhcp_info", if_name); in kvp_get_ipconfig_info()
803 kvp_get_ip_info(int family, char *if_name, int op, in kvp_get_ip_info() argument
844 if ((if_name != NULL) && in kvp_get_ip_info()
845 (strncmp(curp->ifa_name, if_name, strlen(if_name)))) { in kvp_get_ip_info()
923 kvp_get_ipconfig_info(if_name, ip_buffer); in kvp_get_ip_info()
952 char *if_name = NULL; in kvp_mac_to_ip() local
992 if_name = entry->d_name; in kvp_mac_to_ip()
993 if (!if_name) in kvp_mac_to_ip()
996 error = kvp_get_ip_info(0, if_name, KVP_OP_GET_IP_INFO, in kvp_mac_to_ip()
1174 static int kvp_set_ip_info(char *if_name, struct hv_kvp_ipaddr_value *new_val) in kvp_set_ip_info() argument
1231 "/ifcfg-", if_name); in kvp_set_ip_info()
1245 mac_addr = kvp_if_name_to_mac(if_name); in kvp_set_ip_info()
1256 error = kvp_write_file(file, "DEVICE", "", if_name); in kvp_set_ip_info()
1372 char *if_name; in main() local
1506 if_name = kvp_get_if_name( in main()
1508 if (if_name == NULL) { in main()
1516 error = kvp_set_ip_info(if_name, kvp_ip_val); in main()
1520 free(if_name); in main()