Browse Source

replace NRL get{addr,name}info with KAME get{addr,name}info.

removed functionality:
new code will not return AF_LOCAL addrinfo struct.
added funtionality:
SOCK_RAW is permitted as ai_socktype (no servname allowed).
draft-ietf-ipngwg-scopedaddr-format-00.txt
OPENBSD_2_7
itojun 25 years ago
parent
commit
1cbdf97258
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/include/netdb.h

+ 9
- 1
src/include/netdb.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: netdb.h,v 1.7 1999/07/03 18:14:51 deraadt Exp $ */
/* $OpenBSD: netdb.h,v 1.8 1999/12/30 08:54:20 itojun Exp $ */
/* /*
* ++Copyright++ 1980, 1983, 1988, 1993 * ++Copyright++ 1980, 1983, 1988, 1993
@ -148,10 +148,16 @@ struct protoent {
#define NI_NOFQDN 4 /* return a short name if in the local domain */ #define NI_NOFQDN 4 /* return a short name if in the local domain */
#define NI_NAMEREQD 8 /* fail if either host or service name is unknown */ #define NI_NAMEREQD 8 /* fail if either host or service name is unknown */
#define NI_DGRAM 16 /* look up datagram service instead of stream */ #define NI_DGRAM 16 /* look up datagram service instead of stream */
#define NI_WITHSCOPEID 32 /* KAME hack: attach scopeid to host portion */
#define NI_MAXHOST MAXHOSTNAMELEN /* max host name returned by getnameinfo */ #define NI_MAXHOST MAXHOSTNAMELEN /* max host name returned by getnameinfo */
#define NI_MAXSERV 32 /* max serv. name length returned by getnameinfo */ #define NI_MAXSERV 32 /* max serv. name length returned by getnameinfo */
/*
* Scope delimit character (KAME hack)
*/
#define SCOPE_DELIMITER '@'
#define EAI_BADFLAGS -1 /* invalid value for ai_flags */ #define EAI_BADFLAGS -1 /* invalid value for ai_flags */
#define EAI_NONAME -2 /* name or service is not known */ #define EAI_NONAME -2 /* name or service is not known */
#define EAI_AGAIN -3 /* temporary failure in name resolution */ #define EAI_AGAIN -3 /* temporary failure in name resolution */
@ -163,6 +169,8 @@ struct protoent {
#define EAI_ADDRFAMILY -9 /* address family for name not supported */ #define EAI_ADDRFAMILY -9 /* address family for name not supported */
#define EAI_MEMORY -10 /* memory allocation failure */ #define EAI_MEMORY -10 /* memory allocation failure */
#define EAI_SYSTEM -11 /* system error (code indicated in errno) */ #define EAI_SYSTEM -11 /* system error (code indicated in errno) */
#define EAI_BADHINTS -12 /* invalid value for hints */
#define EAI_PROTOCOL -13 /* resolved protocol is unknown */
struct addrinfo { struct addrinfo {
int ai_flags; /* input flags */ int ai_flags; /* input flags */


Loading…
Cancel
Save