/* ****************************************************************************** * HEADER FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: netdb.h,v $ $Revision: 1.4.42.1 $ * $Source: /home/interpeak/CVSRoot/ipxinc/include/netdb.h,v $ * $Author: svc-cmnet $ $Date: 2013-03-13 07:45:47 $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Lennart Bang ****************************************************************************** */ #ifndef IP_NETDB_H #define IP_NETDB_H /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 3 INCLUDE **************************************************************************** */ #include #include #ifdef __cplusplus extern "C" { #endif /* **************************************************************************** * 4 DEFINES **************************************************************************** */ /* **************************************************************************** * 5 TYPES **************************************************************************** */ #define servent Ip_servent #define hostent Ip_hostent #define protoent Ip_protoent #define addrinfo Ip_addrinfo #define AI_PASSIVE 0x0001 /* Socket address is intended for `bind'. */ #define AI_CANONNAME 0x0002 /* Request for canonical name. */ #define AI_NUMERICHOST 0x0004 /* Don't use name resolution. */ #define AI_V4MAPPED 0x0008 /* IPv4 mapped addresses are acceptable. */ #define AI_ALL 0x0010 /* Return IPv4 mapped and IPv6 addresses. */ #define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose returned address type.. */ #define NI_MAXHOST 1025 #define NI_MAXSERV 32 #define NI_NUMERICHOST 1 /* Don't try to look up hostname. */ #define NI_NUMERICSERV 2 /* Don't convert port number to name. */ /* Error values for `getaddrinfo' function. */ #define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */ #define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ #define EAI_AGAIN -3 /* Temporary failure in name resolution. */ #define EAI_FAIL -4 /* Non-recoverable failure in name res. */ #define EAI_NODATA -5 /* No address associated with NAME. */ #define EAI_FAMILY -6 /* `ai_family' not supported. */ #define EAI_SOCKTYPE -7 /* `ai_socktype' not supported. */ #define EAI_SERVICE -8 /* SERVICE not supported for `ai_socktype'. */ #define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */ #define EAI_MEMORY -10 /* Memory allocation failure. */ #define EAI_SYSTEM -11 /* System error returned in `errno'. */ #define EAI_OVERFLOW -12 /* Argument buffer overflow. */ /* **************************************************************************** * 6 FUNCTIONS **************************************************************************** */ #define getprotobyname(a1) ipcom_getprotobyname(a1) #define getprotobynumber(a1) ipcom_getprotobynumber(a1) #define getservbyname ipcom_getservbyname #define gethostbyname(name) ipcom_gethostbyname(name) #define gethostbyaddr(a1,a2,a3) ipcom_gethostbyaddr(a1,a2,a3) #define getaddrinfo(a1,a2,a3,a4) ipcom_getaddrinfo(a1,a2,a3,a4) #define freeaddrinfo(a1) ipcom_freeaddrinfo(a1) #ifdef __cplusplus } #endif #endif /* **************************************************************************** * END OF FILE **************************************************************************** */