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.39 (requested by itojun):



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

description:
Pull up revision 1.39 (requested by itojun):
  Workaround to avoid EMSGSIZE when ND6 table for outgoing interface
  is not initialized (should result in "interface down").

diffstat:

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

diffs (24 lines):

diff -r 0df9cd57d366 -r e209dafd6e38 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Mon Feb 26 15:57:18 2001 +0000
+++ b/sys/netinet6/in6.c        Mon Feb 26 15:58:18 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.32.4.4 2000/10/30 22:36:33 tv Exp $  */
+/*     $NetBSD: in6.c,v 1.32.4.5 2001/02/26 15:58:18 he Exp $  */
 /*     $KAME: in6.c,v 1.107 2000/10/06 04:58:30 itojun Exp $   */
 
 /*
@@ -782,6 +782,14 @@
                        ia->ia6_lifetime.ia6t_preferred = 0;
 
                /*
+                * make sure to initialize ND6 information.  this is to
+                * workaround issues with interfaces with IPv6 addresses,
+                * which have never brought # up.  we are assuming that it is
+                * safe to nd6_ifattach multiple times.
+                */
+               nd6_ifattach(ifp);
+
+               /*
                 * Perform DAD, if needed.
                 * XXX It may be of use, if we can administratively
                 * disable DAD.



Home | Main Index | Thread Index | Old Index