summaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-04-26 16:16:56 +0000
committerRoy Marples <roy@marples.name>2007-04-26 16:16:56 +0000
commit0731074b52e211799a419ce90462562643b4f658 (patch)
treee5f6e97264bf4a43222ffc20996b89586faba300 /socket.c
parent6e9e8a1d4b24a11ef393a5e51cdb3542b2bece4d (diff)
downloaddhcpcd-0731074b52e211799a419ce90462562643b4f658.tar.xz
Send a FQDN hostname if it contains dots, strip the domain from a looked up hostname if it matches our domain or search and sanitize our fd's a little better.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/socket.c b/socket.c
index 1428e3bd..860a98b4 100644
--- a/socket.c
+++ b/socket.c
@@ -24,6 +24,7 @@
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/uio.h>
+#include <net/if.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#ifndef __OpenBSD__
@@ -32,10 +33,6 @@
#include <net/ethernet.h>
#endif
#include <netinet/udp.h>
-#ifndef __linux__
-#include <net/if_types.h>
-#endif
-#include <net/if.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>