diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-10 16:01:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-12-10 16:01:14 +0000 |
commit | 546d3478737b90f774d566b49b819b3d96bc121b (patch) | |
tree | f5e1685cd459f5ec73fb87fbee907b72bd46f55b /src/util.h | |
parent | 3e35fe3a949f1d79a262e9df7ffbcb5232f99365 (diff) | |
download | rspamd-546d3478737b90f774d566b49b819b3d96bc121b.tar.gz rspamd-546d3478737b90f774d566b49b819b3d96bc121b.zip |
Rework rspamd DNS resolver.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 */ |