]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Warn on missing auth if we request it but do not require it.
authorRoy Marples <roy@marples.name>
Thu, 30 Jan 2014 13:27:49 +0000 (13:27 +0000)
committerRoy Marples <roy@marples.name>
Thu, 30 Jan 2014 13:27:49 +0000 (13:27 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 1641f44cc6d3be9ff77b30607be3ef90c3d60c93..0d2d23d2e30512d5adb412bb5e86822a52065c70 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2147,7 +2147,9 @@ dhcp_handledhcp(struct interface *iface, struct dhcp_message **dhcpp,
        } else if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) {
                log_dhcp(LOG_ERR, "missing authentiation", iface, dhcp, from);
                return;
-       }
+       } else if (ifo->auth.options & DHCPCD_AUTH_SEND)
+               log_dhcp(LOG_WARNING, "missing authentiation",
+                   iface, dhcp, from);
 
        /* reset the message counter */
        state->interval = 0;