aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-04-20 20:02:28 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-04-20 20:02:28 +0400
commit4d4668a0d4022583208d20bac9b8a0bede6f073d (patch)
tree14fbacb9511c738b40919aecbf168151605d28cb /src/dns.h
parent6cc47586dbcbf21fb67be92f6736fd76ca8baffb (diff)
downloadrspamd-4d4668a0d4022583208d20bac9b8a0bede6f073d.tar.gz
rspamd-4d4668a0d4022583208d20bac9b8a0bede6f073d.zip
* Fix spf plugin that was broken in 0.4.7
* Add partial ipv6 support for some rspamd modules.
Diffstat (limited to 'src/dns.h')
-rw-r--r--src/dns.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dns.h b/src/dns.h
index f174f5026..8914ae5b1 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -68,7 +68,8 @@ enum rspamd_request_type {
DNS_REQUEST_MX,
DNS_REQUEST_TXT,
DNS_REQUEST_SRV,
- DNS_REQUEST_SPF
+ DNS_REQUEST_SPF,
+ DNS_REQUEST_AAA
};
struct rspamd_dns_request {
@@ -100,6 +101,11 @@ union rspamd_reply_element {
struct in_addr addr[MAX_ADDRS];
guint16 addrcount;
} a;
+#ifdef HAVE_INET_PTON
+ struct {
+ struct in6_addr addr;
+ } aaa;
+#endif
struct {
gchar *name;
} ptr;