Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net allow reverse query for v4 loopbacknet (127.0.0...



details:   https://anonhg.NetBSD.org/src/rev/2d5eea0f8702
branches:  trunk
changeset: 480137:2d5eea0f8702
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jan 05 04:54:54 2000 +0000

description:
allow reverse query for v4 loopbacknet (127.0.0.0/8).

diffstat:

 lib/libc/net/getnameinfo.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6ba67122afce -r 2d5eea0f8702 lib/libc/net/getnameinfo.c
--- a/lib/libc/net/getnameinfo.c        Wed Jan 05 04:15:30 2000 +0000
+++ b/lib/libc/net/getnameinfo.c        Wed Jan 05 04:54:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getnameinfo.c,v 1.6 1999/12/13 16:22:56 itojun Exp $   */
+/*     $NetBSD: getnameinfo.c,v 1.7 2000/01/05 04:54:54 itojun Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -179,7 +179,11 @@
                if (IN_MULTICAST(v4a) || IN_EXPERIMENTAL(v4a))
                        flags |= NI_NUMERICHOST;
                v4a >>= IN_CLASSA_NSHIFT;
+#if 0
                if (v4a == 0 || v4a == IN_LOOPBACKNET)
+#else
+               if (v4a == 0)
+#endif
                        flags |= NI_NUMERICHOST;                        
                break;
 #ifdef INET6



Home | Main Index | Thread Index | Old Index