mirror of https://gitee.com/openkylin/linux.git
Tools: hv: Rename the function kvp_get_ip_address()
Rename the function kvp_get_ip_address() to better reflect the functionality being implemented. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
32061b4d38
commit
4a3b97e579
|
@ -765,7 +765,7 @@ static int kvp_process_ip_address(void *addrp,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
kvp_get_ip_address(int family, char *if_name, int op,
|
kvp_get_ip_info(int family, char *if_name, int op,
|
||||||
void *out_buffer, int length)
|
void *out_buffer, int length)
|
||||||
{
|
{
|
||||||
struct ifaddrs *ifap;
|
struct ifaddrs *ifap;
|
||||||
|
@ -1468,12 +1468,12 @@ int main(void)
|
||||||
strcpy(key_value, lic_version);
|
strcpy(key_value, lic_version);
|
||||||
break;
|
break;
|
||||||
case NetworkAddressIPv4:
|
case NetworkAddressIPv4:
|
||||||
kvp_get_ip_address(AF_INET, NULL, KVP_OP_ENUMERATE,
|
kvp_get_ip_info(AF_INET, NULL, KVP_OP_ENUMERATE,
|
||||||
key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE);
|
key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE);
|
||||||
strcpy(key_name, "NetworkAddressIPv4");
|
strcpy(key_name, "NetworkAddressIPv4");
|
||||||
break;
|
break;
|
||||||
case NetworkAddressIPv6:
|
case NetworkAddressIPv6:
|
||||||
kvp_get_ip_address(AF_INET6, NULL, KVP_OP_ENUMERATE,
|
kvp_get_ip_info(AF_INET6, NULL, KVP_OP_ENUMERATE,
|
||||||
key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE);
|
key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE);
|
||||||
strcpy(key_name, "NetworkAddressIPv6");
|
strcpy(key_name, "NetworkAddressIPv6");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue