diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-06 19:30:53 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-06 19:30:53 +0000 |
commit | 8ef2fa9bbd914f2f092dc28bb985d3ac8b159b2f (patch) | |
tree | d2daead8d38572189c984432fa38cf831f65bb61 /sbin/dhclient/kroute.c | |
parent | 25796b12bea3a4fb5215b57ba66ef7a99ea06e39 (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/kroute.c')
-rw-r--r-- | sbin/dhclient/kroute.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index 97f69657c1f..c0eea23aeb5 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.78 2015/12/19 14:56:22 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.79 2016/02/06 19:30:52 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -16,17 +16,32 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include "dhcpd.h" -#include "privsep.h" - #include <sys/ioctl.h> +#include <sys/socket.h> #include <sys/sysctl.h> -#include <sys/uio.h> +#include <arpa/inet.h> + +#include <net/if.h> #include <net/if_types.h> +#include <net/route.h> +#include <netinet/in.h> +#include <netinet/if_ether.h> + +#include <errno.h> #include <ifaddrs.h> +#include <imsg.h> +#include <limits.h> #include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "dhcp.h" +#include "dhcpd.h" +#include "privsep.h" struct in_addr active_addr; |