summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcrelay/dhcrelay.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-02-07 00:49:29 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-02-07 00:49:29 +0000
commit3f165897ac301bbf946a15ff82ff3260ae36cb20 (patch)
treee5b6a83ccce4ca98fe3b41ee26b8583746e85ce4 /usr.sbin/dhcrelay/dhcrelay.c
parentb6249db2d7089ab71bae1b8aea3a0399482e4c41 (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 'usr.sbin/dhcrelay/dhcrelay.c')
-rw-r--r--usr.sbin/dhcrelay/dhcrelay.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/dhcrelay.c b/usr.sbin/dhcrelay/dhcrelay.c
index 2e2e071164d..b44f3835561 100644
--- a/usr.sbin/dhcrelay/dhcrelay.c
+++ b/usr.sbin/dhcrelay/dhcrelay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcrelay.c,v 1.38 2013/03/04 00:29:56 benno Exp $ */
+/* $OpenBSD: dhcrelay.c,v 1.39 2016/02/07 00:49:28 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org>
@@ -39,8 +39,26 @@
* Enterprises, see ``http://www.vix.com''.
*/
-#include "dhcpd.h"
+#include <sys/types.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
+
+#include <arpa/inet.h>
+
+#include <net/if.h>
+
+#include <errno.h>
+#include <netdb.h>
+#include <paths.h>
+#include <pwd.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <syslog.h>
+#include <unistd.h>
+
+#include "dhcp.h"
+#include "dhcpd.h"
void usage(void);
void relay(struct interface_info *, struct dhcp_packet *, int,