aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns/dns_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-03 11:31:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-01-03 11:31:30 +0000
commit578f51a5114e5835fb545d7231ae3618aa015d11 (patch)
tree4f6daad28b2fd090190c7931ef8cbcf6e6bf1d4d /contrib/librdns/dns_private.h
parente9ef523d5ee730c7d93a0bcc97ebfe04c98d3a60 (diff)
downloadrspamd-578f51a5114e5835fb545d7231ae3618aa015d11.tar.gz
rspamd-578f51a5114e5835fb545d7231ae3618aa015d11.zip
[Project] Rdns: Implement TCP writing logic
Diffstat (limited to 'contrib/librdns/dns_private.h')
-rw-r--r--contrib/librdns/dns_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/librdns/dns_private.h b/contrib/librdns/dns_private.h
index 38b6c8cc1..cc2d48683 100644
--- a/contrib/librdns/dns_private.h
+++ b/contrib/librdns/dns_private.h
@@ -152,8 +152,8 @@ enum rdns_io_channel_flags {
*/
struct rdns_tcp_output_chain {
uint16_t next_write_size;
- struct rdns_request *req;
uint16_t cur_write;
+ struct rdns_request *req;
struct rdns_tcp_output_chain *prev, *next;
};
@@ -162,8 +162,8 @@ struct rdns_tcp_output_chain {
*/
struct rdns_tcp_channel {
uint16_t next_read_size;
- unsigned char *cur_read_buf;
uint16_t cur_read;
+ unsigned char *cur_read_buf;
/* Chained set of the planned writes */
struct rdns_tcp_output_chain *output_chain;