summaryrefslogtreecommitdiff
path: root/ares_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares_private.h')
-rw-r--r--ares_private.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ares_private.h b/ares_private.h
index cf67e19..723afb3 100644
--- a/ares_private.h
+++ b/ares_private.h
@@ -124,9 +124,17 @@ struct query {
};
/* An IP address pattern; matches an IP address X if X & mask == addr */
+#define PATTERN_MASK 0x1
+#define PATTERN_CIDR 0x2
+
struct apattern {
struct in_addr addr;
- struct in_addr mask;
+ union
+ {
+ struct in_addr addr;
+ unsigned short bits;
+ } mask;
+ unsigned short type;
};
struct ares_channeldata {