From: Roy Marples Date: Fri, 15 Nov 2013 16:55:07 +0000 (+0000) Subject: Don't log ClientID if using DUID as that's already logged. X-Git-Tag: v6.2.0~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1141cb7531fe41519a526d76cd6531aa28c57999;p=thirdparty%2Fdhcpcd.git Don't log ClientID if using DUID as that's already logged. --- diff --git a/dhcp.c b/dhcp.c index b237ca98..bd8fdc0c 100644 --- 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]));