summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhcpd.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-01-18 05:50:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-01-18 05:50:33 +0000
commit1cd11f773b73f012e9d2d74a88f8acc2c8a6c19a (patch)
treefb19bb50871781b872f591413df3766ed31121ae /sbin/dhclient/dhcpd.h
parentd96e88c0b28a4169d7ddfb7cede4d95910e6f03e (diff)
Add command line option '-L' that specifies an optional file into which
the most recent offer and effective leases will be written. Intended to allow access to dhcp option information that was formerly passed to dhclient-script.
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r--sbin/dhclient/dhcpd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 65be050d33e..05f70cdbfda 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcpd.h,v 1.103 2013/01/17 23:41:07 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.104 2013/01/18 05:50:32 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -267,6 +267,7 @@ void putShort(unsigned char *, int);
/* dhclient.c */
extern char *path_dhclient_conf;
extern char *path_dhclient_db;
+extern char path_option_db[MAXPATHLEN];
extern int log_perror;
extern int routefd;
@@ -292,7 +293,8 @@ void make_decline(struct client_lease *);
void free_client_lease(struct client_lease *);
void rewrite_client_leases(void);
-char *lease_as_string(struct client_lease *);
+void rewrite_option_db(struct client_lease *, struct client_lease *);
+char *lease_as_string(char *, struct client_lease *);
struct client_lease *packet_to_lease(struct in_addr, struct option_data *);
void go_daemon(void);