-/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.143 2012/06/20 21:53:51 kettenis Exp $ */
+/* $OpenBSD: src/sbin/dhclient/dhclient.c,v 1.144 2012/06/22 00:08:43 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
#endif
ifi->linkstat = interface_link_status(ifi->name);
if (ifi->linkstat) {
- client->state = S_INIT;
+ client->state = S_REBOOTING;
state_reboot();
}
}
setproctitle("%s", ifi->name);
if (ifi->linkstat) {
- client->state = S_INIT;
+ client->state = S_REBOOTING;
state_reboot();
} else
go_daemon();
/* If we don't remember an active lease, go straight to INIT. */
if (!client->active || client->active->is_bootp) {
+ client->state = S_INIT;
state_init();
return;
}
- /* We are in the rebooting state. */
- client->state = S_REBOOTING;
-
/* make_request doesn't initialize xid because it normally comes
from the DHCPDISCOVER, but we haven't sent a DHCPDISCOVER,
so pick an xid now. */