router: disambiguate and clarify 'no route' messages
authorPaul Donald <newtwen@gmail.com>
Tue, 9 Apr 2024 03:04:09 +0000 (05:04 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 May 2024 22:07:16 +0000 (00:07 +0200)
Better describe "no route" messages.

Signed-off-by: Paul Donald <newtwen@gmail.com>
[ improve commit title ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
src/router.c

index 8721c37706ed884049077688d4b882a27e1d00b3..7f5658b276e16b3256de9ac129080e214b4cdd0c 100644 (file)
@@ -663,9 +663,9 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
 
                if (default_route) {
                        syslog(LOG_WARNING, "A default route is present but there is no public prefix "
-                                               "on %s thus we don't announce a default route by overriding ra_lifetime!", iface->name);
+                                               "on %s thus we announce no default route by overriding ra_lifetime to 0!", iface->name);
                } else {
-                       syslog(LOG_WARNING, "No default route present, overriding ra_lifetime!");
+                       syslog(LOG_WARNING, "No default route present, overriding ra_lifetime to 0!");
                }
        }