sd-ndisc: generate debug log messages on unexpected errors

We really should make it possible to debug unexpected errors, hence log
something at LOG_DEBUG.
This commit is contained in:
Lennart Poettering 2018-10-02 16:25:51 +02:00
parent fdc2afc102
commit 437524f178
1 changed files with 8 additions and 1 deletions

View File

@ -221,7 +221,14 @@ static int ndisc_recv(sd_event_source *s, int fd, uint32_t revents, void *userda
break;
case -EPFNOSUPPORT:
log_ndisc("Received invalid source address from ICMPv6 socket.");
log_ndisc("Received invalid source address from ICMPv6 socket. Ignoring.");
break;
case -EAGAIN: /* ignore spurious wakeups */
break;
default:
log_ndisc_errno(r, "Unexpected error while reading from ICMPv6, ignoring: %m");
break;
}