diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2021-08-01 09:07:04 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2021-08-01 09:07:04 +0000 |
commit | b13613aafb51edc78a17a5121b7276fb7a3be23b (patch) | |
tree | 134c54320a3a80020e946954d15f6c703ee81da1 /sbin/dhcpleased/engine.c | |
parent | a3365f3c132274dfaf5540ad64b0d19f4ac6b48b (diff) |
Do not abuse the IMSG_CTL_SEND_REQUEST imsg to transition to
REBOOTING. There will be a few more cases internal to dhcpleased that
have nothing to do with the control socket.
While here move requesting a new lease via a call to dhclient under
ifndef SMALL, nothing on the ramdisk uses this.
Diffstat (limited to 'sbin/dhcpleased/engine.c')
-rw-r--r-- | sbin/dhcpleased/engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhcpleased/engine.c b/sbin/dhcpleased/engine.c index 060d0de5a2c..79ea38c8d22 100644 --- a/sbin/dhcpleased/engine.c +++ b/sbin/dhcpleased/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.22 2021/07/26 09:26:36 florian Exp $ */ +/* $OpenBSD: engine.c,v 1.23 2021/08/01 09:07:03 florian Exp $ */ /* * Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org> @@ -317,7 +317,7 @@ engine_dispatch_frontend(int fd, short event, void *bula) memcpy(&if_index, imsg.data, sizeof(if_index)); engine_showinfo_ctl(&imsg, if_index); break; - case IMSG_CTL_SEND_REQUEST: + case IMSG_REQUEST_REBOOT: if (IMSG_DATA_SIZE(imsg) != sizeof(if_index)) fatalx("%s: IMSG_CTL_SEND_DISCOVER wrong " "length: %lu", __func__, |