From 1b4f4e61d8b80cd6d31af588e540ad4c39ebd27d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 30 Aug 2001 19:31:21 +0000 Subject: [PATCH] * 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 --- src/include/ChangeLog | 6 ++++++ src/include/fake-addrinfo.h | 16 ++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 0f969ec31..db83cc52c 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2001-08-30 Ken Raeburn + + * 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 * socket-utils.h: New file. diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h index 8914443d7..92912ae16 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 -- 2.26.2