
#include <string.h>#include "vipl_priv.h"Go to the source code of this file.
Functions | |
| VIP_ENTRY_POINT VIP_RETURN | VipNSGetHostByAddr (VIP_NIC_HANDLE NicHandle, VIP_NET_ADDRESS *Address, VIP_CHAR *Name, VIP_ULONG *NameLen) |
Definition in file vipnsgethostbyaddr.c.
|
||||||||||||||||||||
|
VipNSGetHostByAddr() maps the Address to a host name by querying the name service in the context of the specified NicHandle. The name associated with the Address is returned to the caller in the Name parameter. If the size specified by NameLen is not sufficient to hold the entire name, a VIP_INVALID_PARAMETER is returned. VipNSGetHostByAddr() returns the size of the array required to hold the entire string in NameLen so the caller can increase the size of the array and call VipNSGetHostByName() again with the larger array to retrieve the name.
Definition at line 61 of file vipnsgethostbyaddr.c. References VIP_NET_ADDRESS::HostAddress, VIP_NET_ADDRESS::HostAddressLen, VI_GM_MAC_ADDRESS_LEN, VIP_DEBUG, VIP_DEBUG_GM, VIP_DEBUG_LABEL, VIP_ENTER_IOCTL, VIP_ERROR_NAMESERVICE, VIP_EXIT_IOCTL, VIP_FALSE, vip_gm_host_name_lock, VIP_INVALID_NIC_HANDLE, VIP_INVALID_PARAMETER, VIP_MUTEX_LOCK, VIP_MUTEX_UNLOCK, VIP_PROGRESSION, and VIP_SUCCESS. |
1.4.4.