summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhcpd.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2017-08-10 17:15:06 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2017-08-10 17:15:06 +0000
commite3b1ad0eabd754347517a87a8c24949568d49af5 (patch)
tree9a3e32614e6bc2465fcc214848689e3a05db86a3 /sbin/dhclient/dhcpd.h
parent203759fd42e6e752fc6d9e9e74d271994d5a7774 (diff)
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.
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r--sbin/dhclient/dhcpd.h7
1 files changed, 4 insertions, 3 deletions
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 <henning@openbsd.org>
@@ -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 *,