diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-30 10:07:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-30 10:07:57 +0000 |
commit | 6dd638eafa3413f1adc77b483c0dc51d2cb86750 (patch) | |
tree | 606ca6919c3e03b792d55b505c7ed73adf7110aa /contrib/librdns/rdns.h | |
parent | 0e725e24bf64bc70a47c73ea8b63231498921a5b (diff) | |
download | rspamd-6dd638eafa3413f1adc77b483c0dc51d2cb86750.tar.gz rspamd-6dd638eafa3413f1adc77b483c0dc51d2cb86750.zip |
[Feature] Allow unconnected DNS servers operations
This allows to stop relying on resolvers initialisation and send
requests when the resolvers are available.
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r-- | contrib/librdns/rdns.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h index 647f0f1b1..b563c7ea3 100644 --- a/contrib/librdns/rdns.h +++ b/contrib/librdns/rdns.h @@ -178,9 +178,12 @@ enum rdns_plugin_type { RDNS_PLUGIN_CURVE = 0 }; -typedef ssize_t (*rdns_network_send_callback) (struct rdns_request *req, void *plugin_data); +typedef ssize_t (*rdns_network_send_callback) (struct rdns_request *req, void *plugin_data, + struct sockaddr *saddr, socklen_t slen); typedef ssize_t (*rdns_network_recv_callback) (struct rdns_io_channel *ioc, void *buf, - size_t len, void *plugin_data, struct rdns_request **req_out); + size_t len, void *plugin_data, + struct rdns_request **req_out, + struct sockaddr *saddr, socklen_t slen); typedef void (*rdns_network_finish_callback) (struct rdns_request *req, void *plugin_data); typedef void (*rdns_plugin_dtor_callback) (struct rdns_resolver *resolver, void *plugin_data); |