Mercurial > hg > dhcpcd
changeset 5384:6d1812f4a3ac draft
Linux: Sweep errors about disabling autogeneration of LL addrs
under the table.
I tire of this report.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 22 Jun 2020 13:22:16 +0100 |
| parents | 5f88487cbf65 |
| children | 0397759ce185 |
| files | src/if-linux.c |
| diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if-linux.c Mon Jun 22 13:18:26 2020 +0100 +++ b/src/if-linux.c Mon Jun 22 13:22:16 2020 +0100 @@ -1980,8 +1980,11 @@ 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); /*
