From: Roy Marples Date: Fri, 12 Jun 2015 21:05:21 +0000 (+0000) Subject: Improve IPv4LL debug messages. X-Git-Tag: v6.9.1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d7f0d1944954f664c4cc7b44ca6e1a96a75fa1;p=thirdparty%2Fdhcpcd.git Improve IPv4LL debug messages. --- diff --git a/ipv4ll.c b/ipv4ll.c index ea9d3222..3a7c697b 100644 --- a/ipv4ll.c +++ b/ipv4ll.c @@ -138,9 +138,12 @@ ipv4ll_probed(struct arp_state *astate) state = IPV4LL_STATE(ifp); assert(state != NULL); - logger(ifp->ctx, LOG_INFO, "%s: using IPv4LL address %s", - ifp->name, inet_ntoa(astate->addr)); ia = ipv4_iffindaddr(ifp, &astate->addr, &inaddr_llmask); +#ifdef IN_IFF_NOTREADY + if (ia == NULL || ia->addr_flags & IN_IFF_NOTREADY) +#endif + logger(ifp->ctx, LOG_INFO, "%s: using IPv4LL address %s", + ifp->name, inet_ntoa(astate->addr)); if (ia == NULL) ia = ipv4_addaddr(ifp, &astate->addr, &inaddr_llmask, &inaddr_llbcast); @@ -302,6 +305,8 @@ ipv4ll_start(void *arg) ifp->name, inet_ntoa(ia->addr)); return; } + logger(ifp->ctx, LOG_INFO, "%s: using IPv4LL address %s", + ifp->name, inet_ntoa(astate->addr)); #endif ipv4ll_probed(astate); return;