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.
This commit is contained in:
Jun-ichiro itojun Hagino 2001-01-18 06:07:53 +00:00
parent a3698b8a7f
commit 1723dbbbf6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71207

View file

@ -829,6 +829,14 @@ in6_control(so, cmd, data, ifp, p)
} else
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