diff options
author | 2016-02-06 19:30:52 +0000 | |
---|---|---|
committer | 2016-02-06 19:30:52 +0000 | |
commit | 711cae1e3c63d7830510355cfe2a04ad008fb43e (patch) | |
tree | 83f9b044d463bc4b3a1a1e5e55a63bb5234145af /sbin/dhclient/bpf.c | |
parent | Convert to uiomove. From Martin Natano. (diff) | |
download | wireguard-openbsd-711cae1e3c63d7830510355cfe2a04ad008fb43e.tar.xz wireguard-openbsd-711cae1e3c63d7830510355cfe2a04ad008fb43e.zip |
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/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index a6e956d7f25..c10931ac922 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.37 2014/12/03 18:47:03 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.38 2016/02/06 19:30:52 krw Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -40,13 +40,29 @@ * Enterprises, see ``http://www.vix.com''. */ -#include "dhcpd.h" #include <sys/ioctl.h> -#include <sys/uio.h> +#include <sys/queue.h> +#include <sys/socket.h> +#include <sys/types.h> #include <net/bpf.h> +#include <net/if.h> + +#include <netinet/in.h> #include <netinet/ip.h> #include <netinet/udp.h> +#include <netinet/if_ether.h> + +#include <errno.h> +#include <fcntl.h> +#include <signal.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "dhcp.h" +#include "dhcpd.h" #define BPF_FORMAT "/dev/bpf%d" |