summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/socket-util.h')
-rw-r--r--src/shared/socket-util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h
index f938f86200..d125fca83f 100644
--- a/src/shared/socket-util.h
+++ b/src/shared/socket-util.h
@@ -24,7 +24,6 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
-#include <net/if.h>
#include <asm/types.h>
#include <linux/netlink.h>
#include <linux/if_packet.h>
@@ -42,6 +41,11 @@ union sockaddr_union {
struct sockaddr_ll ll;
};
+union in_addr_union {
+ struct in_addr in;
+ struct in6_addr in6;
+};
+
typedef struct SocketAddress {
union sockaddr_union sockaddr;