diff options
author | Dominick Meglio <dcm5151@esu.edu> | 2005-04-09 19:59:59 +0000 |
---|---|---|
committer | Dominick Meglio <dcm5151@esu.edu> | 2005-04-09 19:59:59 +0000 |
commit | 7012fc65d952f20aeef2dd0727cc958ef70ca136 (patch) | |
tree | 06c10a7e95844d980313bb47c928e512f2d228a5 /ares_private.h | |
parent | 61f1399c2faedb8f81695da6d65c2bf1448fdef8 (diff) | |
download | c-ares-7012fc65d952f20aeef2dd0727cc958ef70ca136.tar.gz c-ares-7012fc65d952f20aeef2dd0727cc958ef70ca136.tar.bz2 c-ares-7012fc65d952f20aeef2dd0727cc958ef70ca136.zip |
Made sortlist support IPv6 (this can probably use some testing)
Diffstat (limited to 'ares_private.h')
-rw-r--r-- | ares_private.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ares_private.h b/ares_private.h index 723afb3..bcf2e8e 100644 --- a/ares_private.h +++ b/ares_private.h @@ -127,13 +127,19 @@ struct query { #define PATTERN_MASK 0x1 #define PATTERN_CIDR 0x2 +union ares_addr { + struct in_addr addr4; + struct in6_addr addr6; +}; + struct apattern { - struct in_addr addr; + union ares_addr addr; union { - struct in_addr addr; + union ares_addr addr; unsigned short bits; } mask; + int family; unsigned short type; }; |