]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: Remove check for requiring a clientid when hwlen == 0
authorRoy Marples <roy@marples.name>
Tue, 20 Aug 2019 18:11:01 +0000 (19:11 +0100)
committerRoy Marples <roy@marples.name>
Tue, 20 Aug 2019 18:11:01 +0000 (19:11 +0100)
We forced DUID anyway for this, so the check is now invalid
and allows (mostly) default config to work.
This does rely on one interface being found with a valid
hardware address to seed the DUID file initally, which
should always be the case.

src/dhcp.c

index 8e48592f485254ebfd508bf2e77a4ce809106857..b0c5418a0765322b38bcb16272c15dc8a7102a1b 100644 (file)
@@ -3724,12 +3724,6 @@ dhcp_start1(void *arg)
                return;
        }
 
-       if (ifp->hwlen == 0 && ifo->clientid[0] == '\0') {
-               logwarnx("%s: needs a clientid to configure", ifp->name);
-               dhcp_drop(ifp, "FAIL");
-               eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp);
-               return;
-       }
        /* We don't want to read the old lease if we NAK an old test */
        nolease = state->offer && ifp->ctx->options & DHCPCD_TEST;
        if (!nolease && ifo->options & DHCPCD_DHCP) {