Browse Source

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).
OPENBSD_2_7
itojun 25 years ago
parent
commit
e0d756a4f5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/include/netdb.h

+ 4
- 2
src/include/netdb.h View File

@ -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 * ++Copyright++ 1980, 1983, 1988, 1993
@ -142,6 +142,8 @@ struct protoent {
#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 nameservice */
#define AI_EXT 8 /* enable non-portable extensions */ #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_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 */
@ -156,7 +158,7 @@ struct protoent {
/* /*
* Scope delimit character (KAME hack) * Scope delimit character (KAME hack)
*/ */
#define SCOPE_DELIMITER '@'
#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 */


Loading…
Cancel
Save