diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:51 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:53:51 +0000 |
commit | 533151d3ff0e22a91d0e2bcfc0fa225e8843c97f (patch) | |
tree | 8dc1efb8c9dab1d481fd7373f0eb07122c7bbd81 /methods/rfc2553emu.h | |
parent | 934b6582b4518630a050c8b84853b8e78ed87905 (diff) |
Final rfc2553 changes
Author: jgg
Date: 1999-05-26 04:08:39 GMT
Final rfc2553 changes
Diffstat (limited to 'methods/rfc2553emu.h')
-rw-r--r-- | methods/rfc2553emu.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/methods/rfc2553emu.h b/methods/rfc2553emu.h index e24e7a3c1..5b9abbd84 100644 --- a/methods/rfc2553emu.h +++ b/methods/rfc2553emu.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: rfc2553emu.h,v 1.1 1999/05/25 05:56:24 jgg Exp $ +// $Id: rfc2553emu.h,v 1.2 1999/05/26 04:08:39 jgg Exp $ /* ###################################################################### RFC 2553 Emulation - Provides emulation for RFC 2553 getaddrinfo, @@ -31,6 +31,11 @@ #define HAVE_GETADDRINFO #endif +// Autosense getnameinfo +#if defined(NI_NUMERICHOST) +#define HAVE_GETNAMEINFO +#endif + // getaddrinfo support? #ifndef HAVE_GETADDRINFO #error Boink @@ -67,7 +72,6 @@ #define EAI_SOCKTYPE -6 #define EAI_SERVICE -7 #define EAI_ADDRFAMILY -8 - #define EAI_ADDRFAMILY -8 #define EAI_SYSTEM -10 #endif @@ -80,6 +84,20 @@ char *host, size_t hostlen, char *serv, size_t servlen, int flags); + + #ifndef NI_MAXHOST + #define NI_MAXHOST 1025 + #define NI_MAXSERV 32 + #endif + + #ifndef NI_NUMERICHOST + #define NI_NUMERICHOST (1<<0) + #define NI_NUMERICSERV (1<<1) +// #define NI_NOFQDN (1<<2) + #define NI_NAMEREQD (1<<3) + #define NI_DATAGRAM (1<<4) + #endif + #endif #endif |