From 546d3478737b90f774d566b49b819b3d96bc121b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 10 Dec 2013 16:01:14 +0000 Subject: Rework rspamd DNS resolver. --- src/util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 4edf5cb95..edcfa6122 100644 --- a/src/util.h +++ b/src/util.h @@ -14,6 +14,17 @@ struct workq; struct statfile; struct classifier_config; +/** + * Union that is used for storing sockaddrs + */ +union sa_union { + struct sockaddr_storage ss; + struct sockaddr sa; + struct sockaddr_in s4; + struct sockaddr_in6 s6; + struct sockaddr_un su; +}; + /* * Create socket and bind or connect it to specified address and port */ -- cgit v1.2.3