]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Always show the prefix we are delegated in debug, aids [c4df3c6b97].
authorRoy Marples <roy@marples.name>
Wed, 8 Jun 2016 11:30:38 +0000 (11:30 +0000)
committerRoy Marples <roy@marples.name>
Wed, 8 Jun 2016 11:30:38 +0000 (11:30 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index e1e332cd5c96cd5e157d0975428dd4054084bdcc..ef91c13d2e58ca9fb64b012f76b508cbb8b9bf81 100644 (file)
--- 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,