mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 03:54:56 +08:00
linux: modern kernels can create stable private addresses
Just improve the comment. Closes #301
This commit is contained in:
parent
faa3f54eba
commit
9d2e7e74fd
@ -2154,17 +2154,16 @@ if_setup_inet6(const struct interface *ifp)
|
||||
int ra;
|
||||
char path[256];
|
||||
|
||||
/* The kernel cannot make stable private addresses.
|
||||
/* Modern linux kernels can make a stable private address.
|
||||
* However, a lot of distros ship newer kernel headers than
|
||||
* the kernel itself so sweep that error under the table. */
|
||||
* the kernel itself so we sweep that error under the table
|
||||
* from old kernels and just make them ourself regardless. */
|
||||
if (if_disable_autolinklocal(ctx, ifp->index) == -1 &&
|
||||
errno != ENODEV && errno != ENOTSUP && errno != EINVAL)
|
||||
logdebug("%s: if_disable_autolinklocal", ifp->name);
|
||||
|
||||
/*
|
||||
* If not doing autoconf, don't disable the kernel from doing it.
|
||||
* If we need to, we should have another option actively disable it.
|
||||
*/
|
||||
/* If not doing autoconf, don't disable the kernel from doing it.
|
||||
* If we need to, we should have another option actively disable it. */
|
||||
if (!(ifp->options->options & DHCPCD_IPV6RS))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user