]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't log ClientID if using DUID as that's already logged.
authorRoy Marples <roy@marples.name>
Fri, 15 Nov 2013 16:55:07 +0000 (16:55 +0000)
committerRoy Marples <roy@marples.name>
Fri, 15 Nov 2013 16:55:07 +0000 (16:55 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index b237ca98c17092251f233ff814c9dd598f19c906..bd8fdc0c8979f87bee2ec654758cda4340808d41 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2564,6 +2564,12 @@ dhcp_init(struct interface *ifp)
                            ifp->hwlen);
                }
        }
+
+       if (ifo->options & DHCPCD_DUID)
+               /* Don't bother logging as DUID and IAID are reported
+                * at device start. */
+               return 0;
+
        if (ifo->options & DHCPCD_CLIENTID)
                syslog(LOG_DEBUG, "%s: using ClientID %s", ifp->name,
                    hwaddr_ntoa(state->clientid + 1, state->clientid[0]));