summaryrefslogtreecommitdiff
path: root/src/platform/nm-linux-platform.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-08-15 18:27:06 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-08-15 18:29:53 +0200
commitdad52e623a54cedc711fe057d6ec76980d62285a (patch)
tree7308a5b2a5ce3479a3470c5f9a3a3d1c8f9368ce /src/platform/nm-linux-platform.c
parente96851673bf23098f004b26f390a6a2dbcdddebc (diff)
downloadNetworkManager-lr/no-inet6-log.tar.gz
platform: if AF_INET6 is not available, don't warnlr/no-inet6-log
These should be logged on DEBUG level: <warn> platform-linux: do-change-link[2]: failure changing link: failure 97 (Address family not supported by protocol) <warn> device (wlo1): failed to enable userspace IPv6LL address handling (unspecified) https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/10
Diffstat (limited to 'src/platform/nm-linux-platform.c')
-rw-r--r--src/platform/nm-linux-platform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index fd0210bb0d..a960f41ef1 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -5195,6 +5195,9 @@ retry:
} else if (NM_IN_SET (-((int) seq_result), ENODEV)) {
log_level = LOGL_DEBUG;
result = NM_PLATFORM_ERROR_NOT_FOUND;
+ } else if (-((int) seq_result) == EAFNOSUPPORT) {
+ log_level = LOGL_DEBUG;
+ result = NM_PLATFORM_ERROR_OPNOTSUPP;
} else {
log_level = LOGL_WARN;
result = NM_PLATFORM_ERROR_UNSPECIFIED;