]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We no longer need these headers.
authorRoy Marples <roy@marples.name>
Wed, 9 Jan 2008 09:38:00 +0000 (09:38 +0000)
committerRoy Marples <roy@marples.name>
Wed, 9 Jan 2008 09:38:00 +0000 (09:38 +0000)
socket.c

index 92c438f5edb670acdc02b6c7e58f3dddcdf90552..d261d9cb434aad7da5135319035d1ed4320bb742 100644 (file)
--- a/socket.c
+++ b/socket.c
@@ -6,7 +6,7 @@
  */
 
 #ifdef __linux__
-#define _BSD_SOURCE
+# define _BSD_SOURCE
 #endif
 
 #include <sys/types.h>
 #include <net/if.h>
 #include <netinet/in_systm.h>
 #include <netinet/in.h>
-#ifndef __OpenBSD__
-#include <netinet/ip.h>
-#include <netinet/if_ether.h>
-#include <net/ethernet.h>
-#endif
 #include <netinet/udp.h>
 #include <arpa/inet.h>
 #include <errno.h>
@@ -40,7 +35,7 @@
 /* A suitably large buffer for all transactions.
    BPF buffer size is set by the kernel, so no define. */
 #ifdef __linux__
-#define BUFFER_LENGTH 4096
+# define BUFFER_LENGTH 4096
 #endif
 
 static uint16_t checksum (unsigned char *addr, uint16_t len)
@@ -559,8 +554,8 @@ int get_packet (const interface_t *iface, unsigned char *data,
 }
 
 #else
-#error "Platform not supported!"
-#error "We currently support BPF and Linux sockets."
-#error "Other platforms may work using BPF. If yours does, please let me know"
-#error "so I can add it to our list."
+# error "Platform not supported!"
+# error "We currently support BPF and Linux sockets."
+# error "Other platforms may work using BPF. If yours does, please let me know"
+# error "so I can add it to our list."
 #endif