lkml.org 
[lkml]   [2012]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/17] Tools: hv: Rename the function kvp_get_ip_address()
    Date
    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>
    ---
    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 090d6a2..87cfc64 100644
    --- a/tools/hv/hv_kvp_daemon.c
    +++ b/tools/hv/hv_kvp_daemon.c
    @@ -773,7 +773,7 @@ static int kvp_process_ip_address(void *addrp,
    }

    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)
    {
    struct ifaddrs *ifap;
    @@ -1479,12 +1479,12 @@ int main(void)
    strcpy(key_value, lic_version);
    break;
    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);
    strcpy(key_name, "NetworkAddressIPv4");
    break;
    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);
    strcpy(key_name, "NetworkAddressIPv6");
    break;
    --
    1.7.4.1


    \
     
     \ /
      Last update: 2012-07-24 19:21    [W:4.762 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site