summaryrefslogtreecommitdiffstats
path: root/contrib/librdns/rdns.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-12-01 17:00:37 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-12-01 17:00:37 +0000
commit78ac4a61f7385eb05bafdbd465918be0b8c727d0 (patch)
tree92132781150f85561d30d49b24c4dae8fbb9d0a3 /contrib/librdns/rdns.h
parentb805127041e641e3c5e4f8cd2eecc50f0df1f1ad (diff)
downloadrspamd-78ac4a61f7385eb05bafdbd465918be0b8c727d0.tar.gz
rspamd-78ac4a61f7385eb05bafdbd465918be0b8c727d0.zip
[Minor] Process DNS reply flags
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r--contrib/librdns/rdns.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h
index 4df1991fd..266ccabc2 100644
--- a/contrib/librdns/rdns.h
+++ b/contrib/librdns/rdns.h
@@ -129,13 +129,18 @@ enum dns_rcode {
RDNS_RC_NOREC = 13
};
+enum dns_reply_flags {
+ RDNS_AUTH = (1u << 0u),
+ RDNS_TRUNCATED = (1u << 1u)
+};
+
struct rdns_reply {
struct rdns_request *request;
struct rdns_resolver *resolver;
struct rdns_reply_entry *entries;
const char *requested_name;
enum dns_rcode code;
- bool authenticated;
+ uint8_t flags; /* see enum dns_reply_flags */
};
typedef void (*rdns_periodic_callback)(void *user_data);