diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-09 12:22:10 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-02-09 12:22:10 +0000 |
commit | f1dd7c2f67784cc38698446bb1dfbf5018879596 (patch) | |
tree | fc8f5835a1dda89568432ac6b143afa4646fea20 /include/netdb.h | |
parent | d3591852121f70dd41edd8defab790c140791be0 (diff) |
revise extended scoped address format support. delimiter and the order
is changed, based on discussion in ipngwg scoped address cabal.
past code: fe80::1@de0
now: de0%fe80::1
this will be in sync with next extended address format proposal
(which should be final - I don't want to make this kind of change again).
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h index 458cbdf1a09..911d0cf7dbe 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.h,v 1.8 1999/12/30 08:54:20 itojun Exp $ */ +/* $OpenBSD: netdb.h,v 1.9 2000/02/09 12:22:08 itojun Exp $ */ /* * ++Copyright++ 1980, 1983, 1988, 1993 @@ -142,6 +142,8 @@ struct protoent { #define AI_CANONNAME 2 /* request for canonical name */ #define AI_NUMERICHOST 4 /* don't ever try nameservice */ #define AI_EXT 8 /* enable non-portable extensions */ +/* valid flags for addrinfo */ +#define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST) #define NI_NUMERICHOST 1 /* return the host address, not the name */ #define NI_NUMERICSERV 2 /* return the service address, not the name */ @@ -156,7 +158,7 @@ struct protoent { /* * Scope delimit character (KAME hack) */ -#define SCOPE_DELIMITER '@' +#define SCOPE_DELIMITER '%' #define EAI_BADFLAGS -1 /* invalid value for ai_flags */ #define EAI_NONAME -2 /* name or service is not known */ |