summaryrefslogtreecommitdiff
path: root/sbin/dhclient/options.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-02-06 19:30:53 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-02-06 19:30:53 +0000
commit8ef2fa9bbd914f2f092dc28bb985d3ac8b159b2f (patch)
treed2daead8d38572189c984432fa38cf831f65bb61 /sbin/dhclient/options.c
parent25796b12bea3a4fb5215b57ba66ef7a99ea06e39 (diff)
Eliminate #include inside *.h files and include only needed headers in
each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
Diffstat (limited to 'sbin/dhclient/options.c')
-rw-r--r--sbin/dhclient/options.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/sbin/dhclient/options.c b/sbin/dhclient/options.c
index 389d99feaa7..06b01561b67 100644
--- a/sbin/dhclient/options.c
+++ b/sbin/dhclient/options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: options.c,v 1.74 2015/10/26 16:32:33 krw Exp $ */
+/* $OpenBSD: options.c,v 1.75 2016/02/06 19:30:52 krw Exp $ */
/* DHCP options parsing and reassembly. */
@@ -40,10 +40,26 @@
* Enterprises, see ``http://www.vix.com''.
*/
-#include "dhcpd.h"
+#include <sys/queue.h>
+#include <sys/socket.h>
+
+#include <arpa/inet.h>
+
+#include <net/if.h>
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
+
+#include <ctype.h>
+#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <vis.h>
+#include "dhcp.h"
+#include "dhcpd.h"
+
int parse_option_buffer(struct option_data *, unsigned char *, int);
int expand_search_domain_name(unsigned char *, size_t, int *, unsigned char *);