summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-18 12:34:02 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-18 18:28:29 +0200
commit5d3de3fe9cc452f1bfe3c2dcafecbd7f904da4dc (patch)
tree624cc09d6594add462d1323b9c95f16252c4b9ce /src/shared
parent03966da2ca04ca96dd0a1852d7fa423aaf18eba6 (diff)
socket-util: introduce in_addr_union similar to sockaddr_union and make use of it everywhere
Diffstat (limited to 'src/shared')
-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;