aboutsummaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
Diffstat (limited to 'resolv')
-rw-r--r--resolv/netdb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/resolv/netdb.h b/resolv/netdb.h
index f8ae4f2..e0331db 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -149,9 +149,9 @@ extern struct hostent *getipnodebyaddr (__const void *__addr, socklen_t __len,
extern struct hostent *getipnodebyname (__const char *__name, int __type,
int __flags, int *__error_num) __THROW;
-# define AI_V4MAPPED 1 /* IPv4-mapped addresses are acceptable. */
-# define AI_ALL 2 /* Return both IPv4 and IPv6 addresses. */
-# define AI_ADDRCONFIG 4 /* Use configuration of this host to choose
+# define AI_V4MAPPED 0x0008 /* IPv4-mapped addresses are acceptable. */
+# define AI_ALL 0x0010 /* Return both IPv4 and IPv6 addresses. */
+# define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose
returned address type. */
# define AI_DEFAULT (AI_V4MAPPED | AI_ADDRCONFIG)
@@ -437,9 +437,9 @@ struct addrinfo
};
/* Possible values for `ai_flags' field in `addrinfo' structure. */
-# define AI_PASSIVE 1 /* Socket address is intended for `bind'. */
-# define AI_CANONNAME 2 /* Request for canonical name. */
-# define AI_NUMERICHOST 4 /* Don't use name resolution. */
+# 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. */
/* Error values for `getaddrinfo' function. */
# define EAI_BADFLAGS -1 /* Invalid value for `ai_flags' field. */