Browse Source

implement RFC3493 AI_NUMERICSERV. tedu ok

OPENBSD_3_6
itojun 21 years ago
parent
commit
cbdc6bf7b4
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/include/netdb.h

+ 5
- 3
src/include/netdb.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: netdb.h,v 1.18 2003/06/02 19:34:12 millert Exp $ */
/* $OpenBSD: netdb.h,v 1.19 2004/04/14 07:06:15 itojun Exp $ */
/* /*
* ++Copyright++ 1980, 1983, 1988, 1993 * ++Copyright++ 1980, 1983, 1988, 1993
@ -155,10 +155,12 @@ struct protoent {
/* Values for getaddrinfo() and getnameinfo() */ /* Values for getaddrinfo() and getnameinfo() */
#define AI_PASSIVE 1 /* socket address is intended for bind() */ #define AI_PASSIVE 1 /* socket address is intended for bind() */
#define AI_CANONNAME 2 /* request for canonical name */ #define AI_CANONNAME 2 /* request for canonical name */
#define AI_NUMERICHOST 4 /* don't ever try nameservice */
#define AI_NUMERICHOST 4 /* don't ever try hostname lookup */
#define AI_EXT 8 /* enable non-portable extensions */ #define AI_EXT 8 /* enable non-portable extensions */
#define AI_NUMERICSERV 16 /* don't ever try servname lookup */
/* valid flags for addrinfo */ /* valid flags for addrinfo */
#define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST)
#define AI_MASK \
(AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV)
#define NI_NUMERICHOST 1 /* return the host address, not the name */ #define NI_NUMERICHOST 1 /* return the host address, not the name */
#define NI_NUMERICSERV 2 /* return the service address, not the name */ #define NI_NUMERICSERV 2 /* return the service address, not the name */


Loading…
Cancel
Save