From 5d3de3fe9cc452f1bfe3c2dcafecbd7f904da4dc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Jun 2014 12:34:02 +0200 Subject: socket-util: introduce in_addr_union similar to sockaddr_union and make use of it everywhere --- src/shared/socket-util.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/shared/socket-util.h') diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h index f938f8620..d125fca83 100644 --- a/src/shared/socket-util.h +++ b/src/shared/socket-util.h @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -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; -- cgit v1.2.3