diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-07 00:49:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-02-07 00:49:29 +0000 |
commit | 3f165897ac301bbf946a15ff82ff3260ae36cb20 (patch) | |
tree | e5b6a83ccce4ca98fe3b41ee26b8583746e85ce4 /usr.sbin/dhcrelay/packet.c | |
parent | b6249db2d7089ab71bae1b8aea3a0399482e4c41 (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/packet.c')
-rw-r--r-- | usr.sbin/dhcrelay/packet.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/packet.c b/usr.sbin/dhcrelay/packet.c index 15c32c4612a..bdca40a8e45 100644 --- a/usr.sbin/dhcrelay/packet.c +++ b/usr.sbin/dhcrelay/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.10 2016/02/03 14:48:36 krw Exp $ */ +/* $OpenBSD: packet.c,v 1.11 2016/02/07 00:49:28 krw Exp $ */ /* Packet assembly code, originally contributed by Archie Cobbs. */ @@ -40,13 +40,25 @@ * Enterprises, see ``http://www.vix.com''. */ -#include "dhcpd.h" +#include <sys/types.h> +#include <sys/socket.h> + +#include <arpa/inet.h> +#include <net/if.h> #include <net/if_enc.h> + +#include <netinet/in.h> #include <netinet/ip.h> #include <netinet/udp.h> #include <netinet/if_ether.h> +#include <string.h> + +#include "dhcp.h" +#include "dhcpd.h" + + u_int32_t checksum(unsigned char *, unsigned, u_int32_t); u_int32_t wrapsum(u_int32_t); |