diff options
author | des <des@FreeBSD.org> | 2011-10-13 17:20:45 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-10-13 17:20:45 +0000 |
commit | ad844b42a2ded6583ac9176413a9ef594c5e677b (patch) | |
tree | 572fea409097b2acc4b4642288642b8048c9efca /sbin/dhclient/dhcpd.h | |
parent | c9a3d28e97b357af334a68382823f39076347e40 (diff) | |
download | FreeBSD-src-ad844b42a2ded6583ac9176413a9ef594c5e677b.zip FreeBSD-src-ad844b42a2ded6583ac9176413a9ef594c5e677b.tar.gz |
Make dhclient use a pid file. Modify the rc script accordingly; while
there, clean it up and add some error checks.
Glanced at by: brooks@
MFC after: 3 weeks
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r-- | sbin/dhclient/dhcpd.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index bd4c9c0..1334a7c 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -41,7 +41,7 @@ * $FreeBSD$ */ -#include <sys/types.h> +#include <sys/param.h> #include <sys/socket.h> #include <sys/sockio.h> @@ -60,6 +60,7 @@ #include <ctype.h> #include <errno.h> #include <fcntl.h> +#include <libutil.h> #include <limits.h> #include <netdb.h> #include <paths.h> @@ -353,6 +354,8 @@ extern int log_perror; extern struct client_config top_level_config; +extern struct pidfh *pidfile; + void dhcpoffer(struct packet *); void dhcpack(struct packet *); void dhcpnak(struct packet *); |