diff options
| author | itojun <itojun@NetBSD.org> | 2000-08-07 16:18:45 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-08-07 16:18:45 +0000 |
| commit | 6acd1fa3412944bb2f23de05b90301fdff0a7fd8 (patch) | |
| tree | 8a3a488bdd72b3bc1a01862d085be3d432c96a19 | |
| parent | 5535e3de10a14183d5b8e599219049efc4300116 (diff) | |
sync comment with reality. from kame
| -rw-r--r-- | lib/libc/net/getnameinfo.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c index 2d59df8658b..82a8ed5b67e 100644 --- a/lib/libc/net/getnameinfo.c +++ b/lib/libc/net/getnameinfo.c @@ -1,5 +1,5 @@ -/* $NetBSD: getnameinfo.c,v 1.20 2000/07/06 02:54:12 christos Exp $ */ -/* $KAME: getnameinfo.c,v 1.43 2000/06/12 04:27:03 itojun Exp $ */ +/* $NetBSD: getnameinfo.c,v 1.21 2000/08/07 16:18:45 itojun Exp $ */ +/* $KAME: getnameinfo.c,v 1.44 2000/08/06 16:43:17 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -33,11 +33,9 @@ /* * Issues to be discussed: * - Thread safe-ness must be checked - * - Return values. There seems to be no standard for return value (RFC2553) - * but INRIA implementation returns EAI_xxx defined for getaddrinfo(). * - RFC2553 says that we should raise error on short buffer. X/Open says * we need to truncate the result. We obey RFC2553 (and X/Open should be - * modified). + * modified). ipngwg rough consensus seems to follow RFC2553. * - What is "local" in NI_FQDN? * - NI_NAMEREQD and NI_NUMERICHOST conflict with each other. * - (KAME extension) NI_WITHSCOPEID when called with global address, @@ -46,7 +44,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: getnameinfo.c,v 1.20 2000/07/06 02:54:12 christos Exp $"); +__RCSID("$NetBSD: getnameinfo.c,v 1.21 2000/08/07 16:18:45 itojun Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -97,6 +95,7 @@ static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, static int ip6_sa2str __P((const struct sockaddr_in6 *, char *, size_t, int)); #endif +/* 2553bis: use EAI_xx for getnameinfo */ #define ENI_NOSOCKET EAI_FAIL /*XXX*/ #define ENI_NOSERVNAME EAI_NONAME #define ENI_NOHOSTNAME EAI_NONAME |
