Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Revert part of the prior patch so loopback llad...



details:   https://anonhg.NetBSD.org/src/rev/a1f17eddee14
branches:  trunk
changeset: 817355:a1f17eddee14
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Aug 18 09:34:43 2016 +0000

description:
Revert part of the prior patch so loopback lladdr gets a working prefix route.

diffstat:

 sys/netinet6/in6.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r 3e71e6f14d6f -r a1f17eddee14 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Thu Aug 18 09:34:02 2016 +0000
+++ b/sys/netinet6/in6.c        Thu Aug 18 09:34:43 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.216 2016/08/16 10:31:57 roy Exp $    */
+/*     $NetBSD: in6.c,v 1.217 2016/08/18 09:34:43 roy Exp $    */
 /*     $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $   */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.216 2016/08/16 10:31:57 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.217 2016/08/18 09:34:43 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -257,9 +257,6 @@
                        /* We don't need to install a host route. */
                        return 0;
                flags |= RTF_HOST;
-       } else if (ia->ia_ifp->if_flags & IFF_LOOPBACK) {
-               /* Loopback prefix routes are always host routes. */
-               flags |= RTF_HOST;
        }
 
        /* Is this a connected route for neighbour discovery? */
@@ -1741,8 +1738,6 @@
        }
 
        /* Add the network prefix route. */
-       if (ia->ia_ifp->if_flags & IFF_LOOPBACK)
-               ia->ia_ifa.ifa_dstaddr = ia->ia_ifa.ifa_addr;
        if ((error = in6_ifaddprefix(ia)) != 0) {
                if (newhost)
                        in6_ifremlocal(&ia->ia_ifa);



Home | Main Index | Thread Index | Old Index