Skip to content

Commit

Permalink
odhcpd: log “Sending a RA on lan” at LOG_DEBUG
Browse files Browse the repository at this point in the history
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.

Patch submitted upstream at openwrt/odhcpd#191.
  • Loading branch information
markmentovai committed Jul 14, 2024
1 parent 79930e1 commit 2806586
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/router.c b/src/router.c
index eca0bf7a2822..504cbed6dee4 100644
--- a/src/router.c
+++ b/src/router.c
@@ -782,7 +782,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++;

0 comments on commit 2806586

Please sign in to comment.