diff options
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dispatch.c | 14 | ||||
-rw-r--r-- | sbin/dhclient/privsep.c | 6 | ||||
-rw-r--r-- | sbin/dhclient/privsep.h | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c index bb27d9861c8..5fdeaeb7e79 100644 --- a/sbin/dhclient/dispatch.c +++ b/sbin/dhclient/dispatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dispatch.c,v 1.161 2019/01/19 02:45:05 krw Exp $ */ +/* $OpenBSD: dispatch.c,v 1.162 2019/01/19 02:55:10 krw Exp $ */ /* * Copyright 2004 Henning Brauer <henning@openbsd.org> @@ -76,7 +76,7 @@ void bpffd_handler(struct interface_info *); void dhcp_packet_dispatch(struct interface_info *, struct sockaddr_in *, struct ether_addr *); void flush_unpriv_ibuf(void); -void sendhup(void); +void sendrestart(void); /* * Loop waiting for packets, timeouts or routing messages. @@ -102,7 +102,7 @@ dispatch(struct interface_info *ifi, int routefd) } if (ifi->timeout_func != NULL) cancel_timeout(ifi); - sendhup(); + sendrestart(); to_msec = 100; } else if (ifi->timeout_func != NULL) { time(&cur_time); @@ -326,14 +326,14 @@ cancel_timeout(struct interface_info *ifi) } /* - * Inform the [priv] process a HUP was received. + * Inform the [priv] process it needs to restart. */ void -sendhup(void) +sendrestart(void) { int rslt; - rslt = imsg_compose(unpriv_ibuf, IMSG_HUP, 0, 0, -1, NULL, 0); + rslt = imsg_compose(unpriv_ibuf, IMSG_RESTART, 0, 0, -1, NULL, 0); if (rslt == -1) - log_warn("%s: imsg_compose(IMSG_HUP)", log_procname); + log_warn("%s: imsg_compose(IMSG_RESTART)", log_procname); } diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c index 85e7c40ecf8..d94977ddd04 100644 --- a/sbin/dhclient/privsep.c +++ b/sbin/dhclient/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.72 2019/01/19 02:45:05 krw Exp $ */ +/* $OpenBSD: privsep.c,v 1.73 2019/01/19 02:55:10 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -148,9 +148,9 @@ dispatch_imsg(char *name, int rdomain, int ioctlfd, int routefd, } break; - case IMSG_HUP: + case IMSG_RESTART: if (imsg.hdr.len != IMSG_HEADER_SIZE) - log_warnx("%s: bad IMSG_HUP", log_procname); + log_warnx("%s: bad IMSG_RESTART", log_procname); else quit = RESTART; break; diff --git a/sbin/dhclient/privsep.h b/sbin/dhclient/privsep.h index 7e8ec8cd80f..a7e3ececd58 100644 --- a/sbin/dhclient/privsep.h +++ b/sbin/dhclient/privsep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.h,v 1.56 2017/08/31 17:01:48 krw Exp $ */ +/* $OpenBSD: privsep.h,v 1.57 2019/01/19 02:55:10 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -18,7 +18,7 @@ enum imsg_code { IMSG_NONE, - IMSG_HUP, + IMSG_RESTART, IMSG_DELETE_ADDRESS, IMSG_SET_ADDRESS, IMSG_FLUSH_ROUTES, |