Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 correct SIOCAIFADDR_IN6 failure recovery in poi...



details:   https://anonhg.NetBSD.org/src/rev/2d86e7ca5180
branches:  trunk
changeset: 481820:2d86e7ca5180
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Feb 07 05:42:59 2000 +0000

description:
correct SIOCAIFADDR_IN6 failure recovery in point-to-point case.

diffstat:

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

diffs (17 lines):

diff -r ac2d771332ed -r 2d86e7ca5180 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Mon Feb 07 05:42:28 2000 +0000
+++ b/sys/netinet6/in6.c        Mon Feb 07 05:42:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.16 2000/02/06 12:49:43 itojun Exp $  */
+/*     $NetBSD: in6.c,v 1.17 2000/02/07 05:42:59 itojun Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -754,6 +754,7 @@
                if ((ifp->if_flags & IFF_POINTOPOINT) &&
                    (ifra->ifra_dstaddr.sin6_family == AF_INET6)) {
                        in6_ifscrub(ifp, ia);
+                       oldaddr = ia->ia_dstaddr;
                        ia->ia_dstaddr = ifra->ifra_dstaddr;
                        /* link-local index check: should be a separate function? */
                        if (IN6_IS_ADDR_LINKLOCAL(&ia->ia_dstaddr.sin6_addr)) {



Home | Main Index | Thread Index | Old Index