Mercurial > hg > dhcpcd
changeset 2246:4331ac84793a draft
Warn about missing auth
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 25 Jan 2014 02:41:42 +0000 |
| parents | 22a45fca5cf4 |
| children | a7f4dfca892a |
| files | dhcp6.c |
| diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Sat Jan 25 02:31:45 2014 +0000 +++ b/dhcp6.c Sat Jan 25 02:41:42 2014 +0000 @@ -1696,8 +1696,7 @@ } 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 @@ 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) {
