mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 20:14:15 +08:00
Improve IPv4LL debug messages.
This commit is contained in:
parent
483f793b56
commit
46d7f0d194
9
ipv4ll.c
9
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;
|
||||
|
Loading…
Reference in New Issue
Block a user