]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: modern kernels can create stable private addresses
authorRoy Marples <roy@marples.name>
Mon, 8 Apr 2024 08:30:03 +0000 (09:30 +0100)
committerRoy Marples <roy@marples.name>
Mon, 8 Apr 2024 08:31:08 +0000 (09:31 +0100)
Just improve the comment.
Closes #301

src/if-linux.c

index cb3895360856173bc20dde71337b641fdd526fc6..e18258210c169c22f413b3c9303c7af10443a118 100644 (file)
@@ -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;