diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2012-09-05 16:50:14 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-10 19:42:33 -0400 |
commit | 4a3b97e5799571397ade963c760b7406d8e9a8a6 (patch) | |
tree | 3f644f70ae0461b67e244f3e6d851e3bca6201a8 /tools | |
parent | 32061b4d3830e61975ede409df389804507fd220 (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_kvp_daemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index ac144b9da0db..849c43817a2d 100644 --- a/tools/hv/hv_kvp_daemon.c +++ b/tools/hv/hv_kvp_daemon.c | |||
@@ -765,7 +765,7 @@ static int kvp_process_ip_address(void *addrp, | |||
765 | } | 765 | } |
766 | 766 | ||
767 | static int | 767 | static int |
768 | kvp_get_ip_address(int family, char *if_name, int op, | 768 | kvp_get_ip_info(int family, char *if_name, int op, |
769 | void *out_buffer, int length) | 769 | void *out_buffer, int length) |
770 | { | 770 | { |
771 | struct ifaddrs *ifap; | 771 | struct ifaddrs *ifap; |
@@ -1468,12 +1468,12 @@ int main(void) | |||
1468 | strcpy(key_value, lic_version); | 1468 | strcpy(key_value, lic_version); |
1469 | break; | 1469 | break; |
1470 | case NetworkAddressIPv4: | 1470 | case NetworkAddressIPv4: |
1471 | kvp_get_ip_address(AF_INET, NULL, KVP_OP_ENUMERATE, | 1471 | kvp_get_ip_info(AF_INET, NULL, KVP_OP_ENUMERATE, |
1472 | key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE); | 1472 | key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE); |
1473 | strcpy(key_name, "NetworkAddressIPv4"); | 1473 | strcpy(key_name, "NetworkAddressIPv4"); |
1474 | break; | 1474 | break; |
1475 | case NetworkAddressIPv6: | 1475 | case NetworkAddressIPv6: |
1476 | kvp_get_ip_address(AF_INET6, NULL, KVP_OP_ENUMERATE, | 1476 | kvp_get_ip_info(AF_INET6, NULL, KVP_OP_ENUMERATE, |
1477 | key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE); | 1477 | key_value, HV_KVP_EXCHANGE_MAX_VALUE_SIZE); |
1478 | strcpy(key_name, "NetworkAddressIPv6"); | 1478 | strcpy(key_name, "NetworkAddressIPv6"); |
1479 | break; | 1479 | break; |