From d4bc9f12d7380c0b5496614f33fc8f4e4df4fb29 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 22 Jun 2020 13:22:16 +0100 Subject: [PATCH] Linux: Sweep errors about disabling autogeneration of LL addrs under the table. I tire of this report. --- src/if-linux.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); /* -- 2.47.2