diff options
author | 2001-01-18 06:11:12 +0000 | |
---|---|---|
committer | 2001-01-18 06:11:12 +0000 | |
commit | ef8b4074ea935044c511f357821b0f88a85b1cc5 (patch) | |
tree | 3fc07d47d141bdfff256fb5c55cc862c230cdb22 | |
parent | wrap too noisy warnings into #ifdef ND6_DEBUG (diff) | |
download | wireguard-openbsd-ef8b4074ea935044c511f357821b0f88a85b1cc5.tar.xz wireguard-openbsd-ef8b4074ea935044c511f357821b0f88a85b1cc5.zip |
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.
-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. |