From: Roy Marples Date: Fri, 17 Apr 2020 12:22:54 +0000 (+0100) Subject: inet6: Only log RA's when they are from a new server X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=985ee29b5ad3825dfb922f6cf572a72fbe816256;p=thirdparty%2Fdhcpcd.git inet6: Only log RA's when they are from a new server We cannot log them normally as there are implementations which vary the expiry times based on their own times so each message is different. As such, we only log from new servers or coming back from expiration. --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 7ce34001..6f5ce35b 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1169,7 +1169,8 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, * much needless log spam. */ if (rap->willexpire) new_data = true; - loglevel = new_data || !rap->isreachable ? LOG_INFO : LOG_DEBUG, + loglevel = new_rap || rap->willexpire || !rap->isreachable ? + LOG_INFO : LOG_DEBUG, logmessage(loglevel, "%s: Router Advertisement from %s", ifp->name, rap->sfrom);