aboutsummaryrefslogtreecommitdiff
path: root/src/include/fake-addrinfo.h
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2001-08-30 19:31:21 +0000
committerKen Raeburn <raeburn@mit.edu>2001-08-30 19:31:21 +0000
commit1b4f4e61d8b80cd6d31af588e540ad4c39ebd27d (patch)
tree67d177e59c91a9a052c055eb4201f143b4f884bd /src/include/fake-addrinfo.h
parentda0c04410a6f5c3d9f93bc11a0c96645cd2dc292 (diff)
downloadkrb5-1b4f4e61d8b80cd6d31af588e540ad4c39ebd27d.zip
krb5-1b4f4e61d8b80cd6d31af588e540ad4c39ebd27d.tar.gz
krb5-1b4f4e61d8b80cd6d31af588e540ad4c39ebd27d.tar.bz2
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13699 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/fake-addrinfo.h')
-rw-r--r--src/include/fake-addrinfo.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h
index 8914443..92912ae 100644
--- a/src/include/fake-addrinfo.h
+++ b/src/include/fake-addrinfo.h
@@ -80,14 +80,17 @@ struct addrinfo {
#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
@@ -150,9 +153,6 @@ char *gai_strerror (int code);
#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