From: Roy Marples Date: Sat, 25 Jan 2014 02:41:42 +0000 (+0000) Subject: Warn about missing auth X-Git-Tag: v6.3.0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fdd9fc3cb4fabdcfef1eaf3cd227d2709c39ea3;p=thirdparty%2Fdhcpcd.git Warn about missing auth --- diff --git a/dhcp6.c b/dhcp6.c index 132951b6..ebd4cabd 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1696,8 +1696,7 @@ dhcp6_readlease(struct interface *ifp) } else if (ifp->options->auth.options & DHCPCD_AUTH_REQUIRE) { syslog(LOG_ERR, "%s: authentication now required", ifp->name); goto ex; - } else - syslog(LOG_ERR, "eg"); + } return fd; @@ -2148,7 +2147,10 @@ dhcp6_handledata(__unused void *arg) syslog(LOG_ERR, "%s: missing authentiation from %s", ifp->name, sfrom); return; - } + } else if (ifo->auth.options & DHCPCD_AUTH_SEND) + syslog(LOG_WARNING, + "%s: missing authentiation from %s", + ifp->name, sfrom); op = dhcp6_get_op(r->type); switch(r->type) {