From e3b1ad0eabd754347517a87a8c24949568d49af5 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 10 Aug 2017 17:15:06 +0000 Subject: Add IMSG_SET_RESOLV_CONF and keep the cached contents in the priv process, so that they do not have to be continually retransmitted. IMSG_WRITE_RESOLV_CONF now just triggers a write of the cached info. Simplifies a bunch of logic. --- sbin/dhclient/dhcpd.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sbin/dhclient/dhcpd.h') diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 856a258dccc..47a1e63bc59 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.221 2017/08/09 19:57:54 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.222 2017/08/10 17:15:05 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -61,7 +61,6 @@ struct client_lease { struct in_addr next_server; char *server_name; char *filename; - char *resolv_conf; char ssid[32]; uint8_t ssid_len; unsigned int is_static; @@ -234,7 +233,9 @@ void read_client_leases(char *, struct client_lease_tq *); /* kroute.c */ void delete_address(struct in_addr); -void write_resolv_conf(uint8_t *, size_t); +void set_resolv_conf(char *, uint8_t *, unsigned int, + uint8_t *, unsigned int); +void write_resolv_conf(void); void set_mtu(int, uint16_t); void set_address(char *, struct in_addr, struct in_addr); void set_routes(struct in_addr, struct in_addr, uint8_t *, -- cgit v1.2.3