Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/netinet6 Pull up revision 1.33 (requested by itojun):



details:   https://anonhg.NetBSD.org/src/rev/0df9cd57d366
branches:  netbsd-1-5
changeset: 490665:0df9cd57d366
user:      he <he%NetBSD.org@localhost>
date:      Mon Feb 26 15:57:18 2001 +0000

description:
Pull up revision 1.33 (requested by itojun):
  Do not remove default route by mistake on interface removal.

diffstat:

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

diffs (19 lines):

diff -r 0cc53986cf81 -r 0df9cd57d366 sys/netinet6/in6_ifattach.c
--- a/sys/netinet6/in6_ifattach.c       Mon Feb 26 15:51:40 2001 +0000
+++ b/sys/netinet6/in6_ifattach.c       Mon Feb 26 15:57:18 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_ifattach.c,v 1.30 2000/05/05 08:03:12 itojun Exp $ */
+/*     $NetBSD: in6_ifattach.c,v 1.30.4.1 2001/02/26 15:57:18 he Exp $ */
 /*     $KAME: in6_ifattach.c,v 1.56 2000/05/05 06:54:33 itojun Exp $   */
 
 /*
@@ -873,7 +873,8 @@
        sin6.sin6_family = AF_INET6;
        sin6.sin6_addr = in6addr_linklocal_allnodes;
        sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
-       if ((rt = rtalloc1((struct sockaddr *)&sin6, 0)) != NULL) {
+       rt = rtalloc1((struct sockaddr *)&sin6, 0);
+       if (rt && rt->rt_ifp == ifp) {
                rtrequest(RTM_DELETE, (struct sockaddr *)rt_key(rt),
                        rt->rt_gateway, rt_mask(rt), rt->rt_flags, 0);
                rtfree(rt);



Home | Main Index | Thread Index | Old Index