projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2810fe
)
router: log “Sending a RA on lan” at LOG_DEBUG
author
Mark 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
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index d8b69902a0f93c2d4917fc4e2e9acad03d8e0c72..c5f030ad8d8a169f05a5ba166dbbcc5d0e1c171b 100644
(file)
--- 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++;