From: Roy Marples Date: Mon, 22 Jun 2020 12:22:16 +0000 (+0100) Subject: Linux: Sweep errors about disabling autogeneration of LL addrs X-Git-Tag: v9.1.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4bc9f12d7380c0b5496614f33fc8f4e4df4fb29;p=thirdparty%2Fdhcpcd.git Linux: Sweep errors about disabling autogeneration of LL addrs under the table. I tire of this report. --- diff --git a/src/if-linux.c b/src/if-linux.c index c9e02503..b3ab8280 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -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); /*