summaryrefslogtreecommitdiff
path: root/src/or/eventdns.h
AgeCommit message (Collapse)Author
2012-01-31Use the standard _WIN32, not the Torism MS_WINDOWS or deprecated WIN32Nick Mathewson
This commit is completely mechanical; I used this perl script to make it: #!/usr/bin/perl -w -i.bak -p if (/^\s*\#/) { s/MS_WINDOWS/_WIN32/g; s/\bWIN32\b/_WIN32/g; }
2011-05-23Use a 64-bit type to hold sockets on win64.Nick Mathewson
On win64, sockets are of type UINT_PTR; on win32 they're u_int; elsewhere they're int. The correct windows way to check a socket for being set is to compare it with INVALID_SOCKET; elsewhere you see if it is negative. On Libevent 2, all callbacks take sockets as evutil_socket_t; we've been passing them int. This patch should fix compilation and correctness when built for 64-bit windows. Fixes bug 3270.
2011-01-10Make eventdns server functions const void* to match libeventNick Mathewson
partial fix for bug 2332
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-02-11Port some mostly cosmetic eventdns changes from libeventNick Mathewson
svn:r18492
2009-01-06Make outgoing DNS requests respect OutboundBindAddress.Nick Mathewson
Fixes the bug part of bug 789. svn:r17983
2008-12-29Use a consistent naming standard for header file guard macros, taking care ↵Nick Mathewson
not to collide with any system headers. This tripped us up on Android. svn:r17805
2008-12-19Move in-addr.arpa parsing and generation into address.c, and simplify the ↵Nick Mathewson
code that does it elsewhere. Incidentally, this lets exit servers answer requests for ip6.arpa addresses. svn:r17707
2008-10-29Implement the 0x20-hack to make DNS poisoning harder against us, especially ↵Nick Mathewson
when resolving large names. Add a cfg option to disable it, since apparently 3/10 of a percent of servers get it wrong. svn:r17171
2008-08-22 r17846@tombo: nickm | 2008-08-22 11:54:00 -0400Nick Mathewson
Make dns resolver code more robust: handle nameservers with IPv6 addresses, make sure names in replies match requested names, make sure origin address of reply matches the address we asked. svn:r16621
2007-09-19 r15170@catbus: nickm | 2007-09-19 11:41:50 -0400Nick Mathewson
Carry a new evdns function over from libevent: do not rely on compile-time code to set the transaction ID correctly. This will be important when we finally drop our internal copy of eventdns.c svn:r11517
2007-05-26 r12988@catbus: nickm | 2007-05-25 20:15:56 -0400Nick Mathewson
socklen_t is a silly type anyway. Just use int as the argument for evdns_server_request_get_requesting_addr. svn:r10347
2007-05-24 r12941@catbus: nickm | 2007-05-24 16:25:00 -0400Nick Mathewson
Fix some eventdns dns server bugs, and add a new eventdns function to get the address of whoever requested this lookup. svn:r10316
2006-12-28 r11726@Kushana: nickm | 2006-12-28 16:24:06 -0500Nick Mathewson
Expose a function from eventdns.c to set options without having to make a fake configuration file. Also, add more settable options svn:r9202
2006-12-19 r11646@Kushana: nickm | 2006-12-19 14:40:38 -0500Nick Mathewson
Resolve bug 363: do not fall back to 127.0.0.1 when no nameservers are configured. Instead, have the admin fix resolv.conf or configure a nameserver. svn:r9157
2006-12-15 r11585@Kushana: nickm | 2006-12-15 01:11:49 -0500Nick Mathewson
Tabify eventdns so that it matches libevent house style. svn:r9118
2006-12-15 r11584@Kushana: nickm | 2006-12-15 01:10:45 -0500Nick Mathewson
Try to reconcile (except for whitespace) eventdns with version in libevent, so it is easier for me to send merges. These changes should be cosmetic. (Ha!) svn:r9117
2006-12-12 r11548@Kushana: nickm | 2006-12-12 00:44:51 -0500Nick Mathewson
Merge whitespace and other changes from libevent svn:r9090
2006-12-12 r11536@Kushana: nickm | 2006-12-11 22:48:21 -0500Nick Mathewson
Add ipv6 functionality to evdns. svn:r9089
2006-12-12 r11498@Kushana: nickm | 2006-12-11 21:40:24 -0500Nick Mathewson
Document all structures and (non-exported) functions. External documentation will probably wind up being a manpage, hopefully written by somebody else. svn:r9087
2006-12-12 r11497@Kushana: nickm | 2006-12-11 21:17:45 -0500Nick Mathewson
Rename nameserver functions: every one should now have "server" in the name. svn:r9086
2006-12-12 r11495@Kushana: nickm | 2006-12-11 19:11:14 -0500Nick Mathewson
More evdns: tab fixes. Dont make users worry about flags. Set truncated flag correctly when generating responses, rather than just bailing out. svn:r9084
2006-12-12 r11494@Kushana: nickm | 2006-12-11 14:50:20 -0500Nick Mathewson
Export DNS types and classes in eventdns.h so that server code can use them. svn:r9083
2006-12-12 r11493@Kushana: nickm | 2006-12-11 14:28:42 -0500Nick Mathewson
Oops; apparently DNS replies are supposed to include the questions. Revise "add_ptr_reply" to accept an inaddr_arpa name instead of just the sockaddr_in. Also, add a "-servertest" function to the test code to see whether the DNS server logic is working. svn:r9082
2006-12-12 r11491@Kushana: nickm | 2006-12-11 12:12:57 -0500Nick Mathewson
More DNS server hacking: everything except testing, and retries, and documentation, and Tor integration. svn:r9080
2006-12-12 r9099@Kushana: nickm | 2006-10-05 17:42:55 -0400Nick Mathewson
start fleshing out some logic to build server support into eventdns. Still needs work and testing. svn:r9068
2006-09-29 r9007@Kushana: nickm | 2006-09-29 13:17:32 -0400Nick Mathewson
Make eventdns give strings for DNS errors, not just error numbers. svn:r8535
2006-09-25Minor fix: add code to eventdns so it can free memory on shutdown. This ↵Nick Mathewson
should help valgrind and dmalloc freak out less. svn:r8503
2006-09-24Marge changes from libevent evdns to our eventdns. Most are cosmetic, but ↵Nick Mathewson
one or two are stability-related. This should make it easier to push our changes back towards libevent. svn:r8482
2006-08-28 r8605@Kushana: nickm | 2006-08-27 14:01:11 -0400Nick Mathewson
divide eventdns log messages into warn and info messages. svn:r8252
2006-08-16 r7405@Kushana: nickm | 2006-08-16 14:38:46 -0400Nick Mathewson
Implement reverse DNS lookup in eventdns: add new entry point; rename old entry point; revise TODO a little; add facility for parsing dns names. svn:r7070
2006-08-04 r7009@Kushana: nickm | 2006-08-03 10:44:58 -0700Nick Mathewson
Add functions to eventdns to allow detecting whether we have any nameservers configured, and to change the list of nameservers after initial configuration. svn:r6976
2006-08-04 r7007@Kushana: nickm | 2006-08-03 09:58:30 -0700Nick Mathewson
Export and use eventdns_config_windows_nameservers(); clean up some comments and log messages. svn:r6974
2006-07-05Spelling fix.Nick Mathewson
svn:r6729
2006-07-05Add plausile logging support to eventdns; stop putting stuff onto stdout.Nick Mathewson
svn:r6728
2006-06-13eventdns: Apply a couple of patches from AGL; start working on windows ↵Nick Mathewson
compat; note some TODOs. svn:r6621
2006-06-03Make eventdns.[ch] into good C90; remove signed/unsigned comparisons.Nick Mathewson
svn:r6528
2006-06-03Add async dns code from Adam Langley, tweaked to build on OSX. Long-term, ↵Nick Mathewson
we may want to switch to libevnet/c-ares, if they ever handle 10k fd situations properly. This one still needs work too, but at least it is small. This code is disabled by default, and not integrated with dns.c. svn:r6524