diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-01-18 06:11:13 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-01-18 06:11:13 +0000 |
commit | 6d8f15d6705a2d2c579093c9f4be3aade870e7c4 (patch) | |
tree | dfc977de7b119a38b938455a003a539a95b34a48 /sys/netinet6/in6.c | |
parent | 6381de5596bf146d054d87702656c41cf6d2145b (diff) |
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/in6.c')
-rw-r--r-- | sys/netinet6/in6.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 75d9be2769f..56d98aed7ef 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.22 2000/11/11 00:11:15 itojun Exp $ */ +/* $OpenBSD: in6.c,v 1.23 2001/01/18 06:11:12 itojun Exp $ */ /* $KAME: in6.c,v 1.109 2000/10/24 07:19:01 jinmei Exp $ */ /* @@ -764,6 +764,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. |