summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>2001-01-18 06:07:53 +0000
committeritojun <itojun@FreeBSD.org>2001-01-18 06:07:53 +0000
commit32557560ce757249be86798636bfb4e91b3b05c4 (patch)
treedab7fb117d40a44de476b358935fbab6fb4cfb8a /sys/netinet6
parenta3510062b5e04f2026badc2063d0e8824ad783ed (diff)
downloadFreeBSD-src-32557560ce757249be86798636bfb4e91b3b05c4.zip
FreeBSD-src-32557560ce757249be86798636bfb4e91b3b05c4.tar.gz
workaround; be sure to initialize nd6 interface information when IPv6
interface address gets added. this will avoid presenting EMSGSIZE when outgoing interface is down (and never brought up). sync with kame.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 7f06a18..5f51cef 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -830,6 +830,14 @@ in6_control(so, cmd, data, ifp, p)
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.
OpenPOWER on IntegriCloud