]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: Sweep errors about disabling autogeneration of LL addrs
authorRoy Marples <roy@marples.name>
Mon, 22 Jun 2020 12:22:16 +0000 (13:22 +0100)
committerRoy Marples <roy@marples.name>
Mon, 22 Jun 2020 12:22:16 +0000 (13:22 +0100)
under the table.
I tire of this report.

src/if-linux.c

index c9e02503d53f1b7e6b7d031c1abbf26b18621ccf..b3ab82804331d1e77d12eb2cbcb81495928bfa39 100644 (file)
@@ -1980,8 +1980,11 @@ if_setup_inet6(const struct interface *ifp)
        int ra;
        char path[256];
 
-       /* The kernel cannot make stable private addresses. */
-       if (if_disable_autolinklocal(ctx, ifp->index) == -1 && errno != ENODEV)
+       /* The kernel cannot make stable private addresses.
+        * However, a lot of distros ship newer kernel headers than
+        * the kernel itself so sweep that error under the table. */
+       if (if_disable_autolinklocal(ctx, ifp->index) == -1 &&
+           errno != ENODEV && errno != ENOTSUP && errno != EINVAL)
                logdebug("%s: if_disable_autolinklocal", ifp->name);
 
        /*