mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 18:44:10 +08:00
Fail the interface when we need a clientid.
This commit is contained in:
parent
45b51c7f6c
commit
727f6d386c
@ -107,7 +107,7 @@ The cable may have been unplugged or association to the wireless point lost.
|
|||||||
dhcpcd failed to operate on the interface.
|
dhcpcd failed to operate on the interface.
|
||||||
This normally happens when dhcpcd does not support the raw interface, which
|
This normally happens when dhcpcd does not support the raw interface, which
|
||||||
means it cannot work as a DHCP or ZeroConf client.
|
means it cannot work as a DHCP or ZeroConf client.
|
||||||
Static configuration is still allowed.
|
Static configuration and DHCP INFORM is still allowed.
|
||||||
.It Dv STOP
|
.It Dv STOP
|
||||||
dhcpcd stopped running on the interface.
|
dhcpcd stopped running on the interface.
|
||||||
.It Dv TEST
|
.It Dv TEST
|
||||||
|
5
dhcpcd.c
5
dhcpcd.c
@ -979,7 +979,10 @@ start_interface(void *arg)
|
|||||||
}
|
}
|
||||||
if (iface->hwlen == 0 && ifo->clientid[0] == '\0') {
|
if (iface->hwlen == 0 && ifo->clientid[0] == '\0') {
|
||||||
syslog(LOG_WARNING, "%s: needs a clientid to configure",
|
syslog(LOG_WARNING, "%s: needs a clientid to configure",
|
||||||
iface->name);
|
iface->name);
|
||||||
|
drop_config(iface, "FAIL");
|
||||||
|
close_sockets(iface);
|
||||||
|
delete_timeout(NULL, iface);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ifo->req_addr.s_addr) {
|
if (ifo->req_addr.s_addr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user