else
logger(ifp->ctx, LOG_DEBUG,
"%s: accepted reconfigure key", ifp->name);
- } else if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) {
- log_dhcp1(LOG_ERR, "no authentication", ifp, dhcp, from, 0);
- return;
- } else if (ifo->auth.options & DHCPCD_AUTH_SEND)
+ } else if (ifo->auth.options & DHCPCD_AUTH_SEND) {
+ if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) {
+ log_dhcp1(LOG_ERR, "no authentication",
+ ifp, dhcp, from, 0);
+ return;
+ }
log_dhcp1(LOG_WARNING, "no authentication",
ifp, dhcp, from, 0);
+ }
/* RFC 3203 */
if (type == DHCP_FORCERENEW) {
if (auth == NULL) {
log_dhcp(LOG_ERR, "unauthenticated Force Renew",
ifp, dhcp, from);
- return;
+ if (ifo->auth.options & DHCPCD_AUTH_REQUIRE)
+ return;
}
if (state->state != DHS_BOUND && state->state != DHS_INFORM) {
log_dhcp(LOG_DEBUG, "not bound, ignoring Force Renew",
else
logger(ifp->ctx, LOG_DEBUG,
"%s: accepted reconfigure key", ifp->name);
- } else if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) {
- logger(ifp->ctx, LOG_ERR,
- "%s: no authentication from %s", ifp->name, ctx->sfrom);
- return;
- } else if (ifo->auth.options & DHCPCD_AUTH_SEND)
+ } else if (ifo->auth.options & DHCPCD_AUTH_SEND) {
+ if (ifo->auth.options & DHCPCD_AUTH_REQUIRE) {
+ logger(ifp->ctx, LOG_ERR,
+ "%s: no authentication from %s",
+ ifp->name, ctx->sfrom);
+ return;
+ }
logger(ifp->ctx, LOG_WARNING,
"%s: no authentication from %s", ifp->name, ctx->sfrom);
+ }
op = dhcp6_get_op(r->type);
switch(r->type) {
logger(ifp->ctx, LOG_ERR,
"%s: unauthenticated %s from %s",
ifp->name, op, ctx->sfrom);
- return;
+ if (ifo->auth.options & DHCPCD_AUTH_REQUIRE)
+ return;
}
logger(ifp->ctx, LOG_INFO, "%s: %s from %s",
ifp->name, op, ctx->sfrom);
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd July 28, 2015
+.Dd August 1, 2015
.Dt DHCPCD.CONF 5
.Os
.Sh NAME
This also disables IPv4LL.
.It Ic noauthrequired
Don't require authentication even though we requested it.
+Also allows FORCERENEW and RECONFIGURE messages without authentication.
.It Ic nodelay
Don't delay for an initial randomised time when starting protocols.
.It Ic nodev