From 4b49c29a9712b6175306d7672d7c6a3e53c08907 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 8 Jun 2016 11:30:38 +0000 Subject: [PATCH] Always show the prefix we are delegated in debug, aids [c4df3c6b97]. --- dhcp6.c | 11 +++++------ 1 file 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, -- 2.47.3