summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-30 08:54:21 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-30 08:54:21 +0000
commit72f05f19f83762fb1584770a5045578abf4e38b6 (patch)
tree16c5821a3b97501d3fee6b4ef1fe7b2a3cd11aea /include
parentbc7101c62bc75984bad49655468923107b964b31 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 6e64b9820f7..458cbdf1a09 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -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
@@ -148,10 +148,16 @@ struct protoent {
#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_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_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_NONAME -2 /* name or service is not known */
#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_MEMORY -10 /* memory allocation failure */
#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 {
int ai_flags; /* input flags */