1 | /* $Id: evdns.c,v 1.1 2007/11/01 15:46:43 root Exp $ */ |
1 | /* $Id: evdns.c,v 1.7 2007/11/03 20:24:42 root Exp $ */ |
2 | |
2 | |
3 | /* The original version of this module was written by Adam Langley; for |
3 | /* The original version of this module was written by Adam Langley; for |
4 | * a history of modifications, check out the subversion logs. |
4 | * a history of modifications, check out the subversion logs. |
5 | * |
5 | * |
6 | * When editing this module, try to keep it re-mergeable by Adam. Don't |
6 | * When editing this module, try to keep it re-mergeable by Adam. Don't |
… | |
… | |
92 | #include <ctype.h> |
92 | #include <ctype.h> |
93 | #include <stdio.h> |
93 | #include <stdio.h> |
94 | #include <stdarg.h> |
94 | #include <stdarg.h> |
95 | |
95 | |
96 | #include "evdns.h" |
96 | #include "evdns.h" |
97 | /*#include "log.h"*/ |
97 | #include "log.h" |
98 | #ifdef WIN32 |
98 | #ifdef WIN32 |
99 | #include <windows.h> |
99 | #include <windows.h> |
100 | #include <winsock2.h> |
100 | #include <winsock2.h> |
101 | #include <iphlpapi.h> |
101 | #include <iphlpapi.h> |
102 | #else |
102 | #else |
… | |
… | |
2265 | request_submit(req); |
2265 | request_submit(req); |
2266 | return 0; |
2266 | return 0; |
2267 | } |
2267 | } |
2268 | |
2268 | |
2269 | int evdns_resolve_reverse_ipv6(struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) { |
2269 | int evdns_resolve_reverse_ipv6(struct in6_addr *in, int flags, evdns_callback_type callback, void *ptr) { |
2270 | char buf[64]; |
2270 | char buf[96]; |
2271 | char *cp; |
2271 | char *cp; |
2272 | struct request *req; |
2272 | struct request *req; |
2273 | int i; |
2273 | int i; |
2274 | assert(in); |
2274 | assert(in); |
2275 | cp = buf; |
2275 | cp = buf; |