router: remove some log spam in send_router_advert()

Both these messages would otherwise be printed on each RA.

Especially the second one merely means that we're follwing the cfg
explicitly set by the user, so they're not very likely to be interested
to know that we're doing what we've been told to do.

(cherry picked from commit 5b0e5c412f)
Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/odhcpd/pull/358
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
David Härdeman
2025-12-13 13:34:54 +01:00
committed by Álvaro Fernández Rojas
parent c1cc541e10
commit ff3f72fdd0

View File

@@ -1017,16 +1017,16 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
uint32_t valid_lt;
if (addr->dprefix_len >= 64 || addr->dprefix_len == 0 || addr->valid_lt <= (uint32_t)now) {
info("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s",
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
addr->dprefix_len, addr->valid_lt, iface->name);
debug("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s",
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
addr->dprefix_len, addr->valid_lt, iface->name);
continue;
}
if (ADDR_MATCH_PIO_FILTER(addr, iface)) {
info("Address %s filtered out as RA route on %s",
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
iface->name);
debug("Address %s filtered out as RA route on %s",
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
iface->name);
continue;
}