router: log “Sending a RA on lan” at LOG_DEBUG
authorMark Mentovai <[email protected]>
Fri, 11 Nov 2022 16:24:37 +0000 (11:24 -0500)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 2 Oct 2025 12:52:15 +0000 (14:52 +0200)
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 <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/191
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/router.c

index d8b69902a0f93c2d4917fc4e2e9acad03d8e0c72..c5f030ad8d8a169f05a5ba166dbbcc5d0e1c171b 100644 (file)
@@ -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++;