diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 643c8ef38..972730d04 100644 --- a/src/util.h +++ b/src/util.h @@ -26,6 +26,13 @@ union sa_union { struct sockaddr_un su; }; +typedef struct _rspamd_inet_addr_s { + union sa_union addr; + socklen_t slen; + int af; +} rspamd_inet_addr_t; + + /* * Create socket and bind or connect it to specified address and port */ @@ -454,4 +461,5 @@ gboolean rspamd_ip_is_valid (void *ptr, int af); */ void rspamd_ucl_emit_gstring (ucl_object_t *obj, enum ucl_emitter emit_type, GString *target); + #endif |