]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
AsyncSocket: Update AsyncSocket_GetRemoteIPAddress for IPv6 support.
authorVMware, Inc <>
Wed, 18 Sep 2013 03:43:28 +0000 (20:43 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:30:01 +0000 (22:30 -0700)
commit112e1dfdd1884f189363ce5692c991170b0791fb
treef5d9e5ae425541fc3367fe91e7d0248a9480169f
parent76713ae5c4d5f7a4616d3005137c276535d654fa
AsyncSocket: Update AsyncSocket_GetRemoteIPAddress for IPv6 support.

AsyncSocket_GetRemoteIPAddress offered the return of the IP in integer and
string formats, none of the callers cared for the integer return so remove it.
Update name appropriately
AsyncSocket_GetRemoteIPAddress->AsyncSocket_GetRemoteIPStr.
AsyncSocket_GetRemoteIPAddress only supported the returning of a IPv4 string,
utilize Posix_GetNameInfo that uses getnameinfo which is IPv6 compliant.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/asyncsocket/asyncsocket.c
open-vm-tools/lib/include/asyncsocket.h