From b14cf98c914d8582f18c7b263814797366fa185d Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Fri, 11 Nov 2022 11:24:37 -0500 Subject: [PATCH] =?utf8?q?router:=20log=20=E2=80=9CSending=20a=20RA=20on?= =?utf8?q?=20lan=E2=80=9D=20at=20LOG=5FDEBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reduces log spam when dhcp.odhcpd.loglevel ≥ 5, as neighbor discovery router advertisements are routinely generated by timer and in response to router solicitations. Signed-off-by: Mark Mentovai Link: https://github.com/openwrt/odhcpd/pull/191 Signed-off-by: Álvaro Fernández Rojas --- src/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.c b/src/router.c index d8b6990..c5f030a 100644 --- a/src/router.c +++ b/src/router.c @@ -1018,7 +1018,7 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr else inet_pton(AF_INET6, ALL_IPV6_NODES, &dest.sin6_addr); - syslog(LOG_NOTICE, "Sending a RA on %s", iface->name); + syslog(LOG_DEBUG, "Sending a RA on %s", iface->name); if (odhcpd_send(iface->router_event.uloop.fd, &dest, iov, ARRAY_SIZE(iov), iface) > 0) { iface->ra_sent++; -- 2.30.2