mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 19:10:17 +01:00
platform: if AF_INET6 is not available, don't warn
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
This commit is contained in:
parent
0004404cb1
commit
20d905e590
2 changed files with 5 additions and 1 deletions
|
|
@ -9345,7 +9345,8 @@ set_nm_ipv6ll (NMDevice *self, gboolean enable)
|
|||
_LOGD (LOGD_IP6, "will %s userland IPv6LL", detail);
|
||||
plerr = nm_platform_link_set_user_ipv6ll_enabled (nm_device_get_platform (self), ifindex, enable);
|
||||
if (plerr != NM_PLATFORM_ERROR_SUCCESS) {
|
||||
_NMLOG (plerr == NM_PLATFORM_ERROR_NOT_FOUND ? LOGL_DEBUG : LOGL_WARN,
|
||||
_NMLOG (( plerr == NM_PLATFORM_ERROR_NOT_FOUND
|
||||
|| plerr == NM_PLATFORM_ERROR_OPNOTSUPP) ? LOGL_DEBUG : LOGL_WARN,
|
||||
LOGD_IP6,
|
||||
"failed to %s userspace IPv6LL address handling (%s)",
|
||||
detail,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue