Source-Changes-HG archive

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

[src/netbsd-1-6]: src/lib/libc/net Pull up revision 1.62 (requested by itojun...



details:   https://anonhg.NetBSD.org/src/rev/04e1f5c2bd8b
branches:  netbsd-1-6
changeset: 529030:04e1f5c2bd8b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Aug 24 02:57:09 2002 +0000

description:
Pull up revision 1.62 (requested by itojun in ticket #718):
drop AAAA reply with IPv4 mapped address.  sync w/kame
draft-itojun-v6ops-v4mapped-harmful-00.txt

diffstat:

 lib/libc/net/getaddrinfo.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 9637c165cdfd -r 04e1f5c2bd8b lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c        Fri Aug 23 03:08:27 2002 +0000
+++ b/lib/libc/net/getaddrinfo.c        Sat Aug 24 02:57:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getaddrinfo.c,v 1.55.2.4 2002/08/17 15:44:41 lukem Exp $       */
+/*     $NetBSD: getaddrinfo.c,v 1.55.2.5 2002/08/24 02:57:09 lukem Exp $       */
 /*     $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $    */
 
 /*
@@ -79,7 +79,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getaddrinfo.c,v 1.55.2.4 2002/08/17 15:44:41 lukem Exp $");
+__RCSID("$NetBSD: getaddrinfo.c,v 1.55.2.5 2002/08/24 02:57:09 lukem Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -1262,6 +1262,14 @@
                                cp += n;
                                continue;
                        }
+                       if (type == T_AAAA) {
+                               struct in6_addr in6;
+                               memcpy(&in6, cp, IN6ADDRSZ);
+                               if (IN6_IS_ADDR_V4MAPPED(&in6)) {
+                                       cp += n;
+                                       continue;
+                               }
+                       }
                        if (!haveanswer) {
                                int nn;
 



Home | Main Index | Thread Index | Old Index