]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Warn about missing auth
authorRoy Marples <roy@marples.name>
Sat, 25 Jan 2014 02:41:42 +0000 (02:41 +0000)
committerRoy Marples <roy@marples.name>
Sat, 25 Jan 2014 02:41:42 +0000 (02:41 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 132951b672ca961542e0c1a2b9b8e70bf15964ca..ebd4cabd9258a7e28bec9c791f8f04b93b288510 100644 (file)
--- 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) {