+2001-08-30 Ken Raeburn <raeburn@mit.edu>
+
+ * fake-addrinfo.h (AI_V4MAPPED, AI_ADDRCONFIG, AI_ALL,
+ AI_DEFAULT): Define as bogus values, since they're part of
+ getipnodeby* API, not getaddrinfo API.
+
2001-08-29 Ken Raeburn <raeburn@mit.edu>
* socket-utils.h: New file.
#define AI_CANONNAME 0x02
#undef AI_NUMERICHOST
#define AI_NUMERICHOST 0x04
+/* N.B.: AI_V4MAPPED, AI_ADDRCONFIG, AI_ALL, and AI_DEFAULT are part
+ of the spec for getipnodeby*, and *not* part of the spec for
+ getaddrinfo. Don't use them! */
#undef AI_V4MAPPED
-#define AI_V4MAPPED 0x08 /* ignored */
+#define AI_V4MAPPED eeeevil!
#undef AI_ADDRCONFIG
-#define AI_ADDRCONFIG 0x10 /* ignored */
+#define AI_ADDRCONFIG eeeevil!
#undef AI_ALL
-#define AI_ALL 0x20 /* ignored */
-
-#define AI_DEFAULT (AI_V4MAPPED | AI_ADDRCONFIG)
+#define AI_ALL eeeevil!
+#undef AI_DEFAULT
+#define AI_DEFAULT eeeevil!
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
#endif /* HAVE_GETADDRINFO */
/* Fudge things on older gai implementations. */
-#ifndef AI_DEFAULT
-# define AI_DEFAULT 0 /* (AI_V4MAPPED | AI_ADDRCONFIG) */
-#endif
/* AIX 4.3.3 is based on RFC 2133; no AI_NUMERICHOST. */
#ifndef AI_NUMERICHOST
# define AI_NUMERICHOST 0