diff options
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r-- | src/libutil/addr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h index 389cd1e97..3aa24bb1c 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -140,6 +140,14 @@ uint16_t rspamd_inet_address_get_port (const rspamd_inet_addr_t *addr); */ gint rspamd_inet_address_get_af (const rspamd_inet_addr_t *addr); +/** + * Returns sockaddr and size for this address + * @param addr + * @param sz + * @return + */ +struct sockaddr* rspamd_inet_address_get_sa (const rspamd_inet_addr_t *addr, + socklen_t *sz); /** * Makes a radix key from inet address |