changeset 5150:85569e7510f2 draft

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.
author Roy Marples <roy@marples.name>
date Fri, 17 Apr 2020 13:22:54 +0100
parents 8f2f891cff4c
children 3c6da4e11150
files src/ipv6nd.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ipv6nd.c	Thu Apr 16 23:28:34 2020 +0100
+++ b/src/ipv6nd.c	Fri Apr 17 13:22:54 2020 +0100
@@ -1169,7 +1169,8 @@
 	 * 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);