summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-06-08 11:30:38 +0000
committerRoy Marples <roy@marples.name>2016-06-08 11:30:38 +0000
commit4b49c29a9712b6175306d7672d7c6a3e53c08907 (patch)
tree32999db6d7d898b5f28749e7cb002ceee39cce8d
parent283222036267cb4e033241b0ce1424cb82352c7f (diff)
downloaddhcpcd-4b49c29a9712b6175306d7672d7c6a3e53c08907.tar.xz
Always show the prefix we are delegated in debug, aids [c4df3c6b97].
-rw-r--r--dhcp6.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/dhcp6.c b/dhcp6.c
index e1e332cd..ef91c13d 100644
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2484,12 +2484,11 @@ dhcp6_delegate_prefix(struct interface *ifp)
TAILQ_FOREACH(ap, &state->addrs, next) {
if (!(ap->flags & IPV6_AF_DELEGATEDPFX))
continue;
- if (ap->flags & IPV6_AF_NEW) {
- ap->flags &= ~IPV6_AF_NEW;
- logger(ifp->ctx, LOG_DEBUG,
- "%s: delegated prefix %s",
- ifp->name, ap->saddr);
- }
+ logger(ifp->ctx,
+ ap->flags & IPV6_AF_NEW ? LOG_INFO : LOG_DEBUG,
+ "%s: delegated prefix %s",
+ ifp->name, ap->saddr);
+ ap->flags &= ~IPV6_AF_NEW;
for (i = 0; i < ifo->ia_len; i++) {
ia = &ifo->ia[i];
if (memcmp(ia->iaid, ap->iaid,