From: Roy Marples Date: Mon, 8 Apr 2024 08:30:03 +0000 (+0100) Subject: linux: modern kernels can create stable private addresses X-Git-Tag: v10.0.7~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d2e7e74fdfec893d9a7e5bce60ec3c2a27d09ad;p=thirdparty%2Fdhcpcd.git linux: modern kernels can create stable private addresses Just improve the comment. Closes #301 --- diff --git a/src/if-linux.c b/src/if-linux.c index cb389536..e1825821 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -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;