Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net sync comment with reality. from kame
details: https://anonhg.NetBSD.org/src/rev/dae49ead91ea
branches: trunk
changeset: 495839:dae49ead91ea
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Aug 07 16:18:45 2000 +0000
description:
sync comment with reality. from kame
diffstat:
lib/libc/net/getnameinfo.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r e14b86ce73a6 -r dae49ead91ea lib/libc/net/getnameinfo.c
--- a/lib/libc/net/getnameinfo.c Mon Aug 07 16:16:23 2000 +0000
+++ b/lib/libc/net/getnameinfo.c Mon Aug 07 16:18:45 2000 +0000
@@ -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_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
Home |
Main Index |
Thread Index |
Old Index