Skip to content

Commit 5b0e5c4

Browse files
AlphixNoltari
authored andcommitted
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. Signed-off-by: David Härdeman <david@hardeman.nu> Link: #358 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
1 parent eddd0f8 commit 5b0e5c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/router.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,16 +1017,16 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr
10171017
uint32_t valid_lt;
10181018

10191019
if (addr->dprefix_len >= 64 || addr->dprefix_len == 0 || addr->valid_lt <= (uint32_t)now) {
1020-
info("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s",
1021-
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
1022-
addr->dprefix_len, addr->valid_lt, iface->name);
1020+
debug("Address %s (dprefix %d, valid-lifetime %u) not suitable as RA route on %s",
1021+
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
1022+
addr->dprefix_len, addr->valid_lt, iface->name);
10231023
continue;
10241024
}
10251025

10261026
if (ADDR_MATCH_PIO_FILTER(addr, iface)) {
1027-
info("Address %s filtered out as RA route on %s",
1028-
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
1029-
iface->name);
1027+
debug("Address %s filtered out as RA route on %s",
1028+
inet_ntop(AF_INET6, &addr->addr.in6, buf, sizeof(buf)),
1029+
iface->name);
10301030
continue;
10311031
}
10321032

0 commit comments

Comments
 (0)