From 1f798ec6650acfa47314adb27d9b706977fe81b3 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 24 Jun 2017 23:32:58 +0000 Subject: Tweak handling of HUP and new LLADDR. Just use expose and use sighup() function. Don't exit dispatch() loop on SIGHUP, wait for privileged child to execvp() dhclient. Eliminate struct imsg_hup since its contents were not being used except in priv_cleanup(). And 'active_addr' works just as well there. Cleaner and eliminates some extraneous log entries. --- sbin/dhclient/dhcpd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/dhclient/dhcpd.h') diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 7c8170959d7..0c20a0ea824 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.194 2017/06/24 10:09:26 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.195 2017/06/24 23:32:57 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -212,6 +212,7 @@ void interface_link_forceup(char *); int interface_status(struct interface_info *); int get_rdomain(char *); void get_hw_address(struct interface_info *); +void sendhup(void); /* tables.c */ extern const struct option dhcp_options[256]; -- cgit v1.2.3