summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcpd/dispatch.c')
-rw-r--r--usr.sbin/dhcpd/dispatch.c30
1 files changed, 25 insertions, 5 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c
index a54f05220af..08232b313db 100644
--- a/usr.sbin/dhcpd/dispatch.c
+++ b/usr.sbin/dhcpd/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.35 2015/08/20 22:39:29 deraadt Exp $ */
+/* $OpenBSD: dispatch.c,v 1.36 2016/02/06 23:50:10 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -38,13 +38,33 @@
* Enterprises, see ``http://www.vix.com''.
*/
-#include "dhcpd.h"
-#include "sync.h"
-#include <ifaddrs.h>
+#include <sys/types.h>
#include <sys/ioctl.h>
-#include <poll.h>
+#include <sys/socket.h>
+
+#include <arpa/inet.h>
+
+#include <net/if.h>
+#include <net/if_dl.h>
#include <net/if_media.h>
+#include <netinet/in.h>
+
+#include <errno.h>
+#include <ifaddrs.h>
+#include <limits.h>
+#include <poll.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <syslog.h>
+#include <unistd.h>
+
+#include "dhcp.h"
+#include "tree.h"
+#include "dhcpd.h"
+#include "sync.h"
+
extern int syncfd;
struct interface_info *interfaces;