aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.h
Commit message (Collapse)AuthorAge
* Use a 64-bit type to hold sockets on win64.Nick Mathewson2011-05-23
| | | | | | | | | | | | | 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.
* Make eventdns server functions const void* to match libeventNick Mathewson2011-01-10
| | | | partial fix for bug 2332
* Fix compile warnings on Snow LeopardSebastian Hahn2009-09-01
| | | | Big thanks to nickm and arma for helping me with this!
* Port some mostly cosmetic eventdns changes from libeventNick Mathewson2009-02-11
| | | | svn:r18492
* Make outgoing DNS requests respect OutboundBindAddress.Nick Mathewson2009-01-06
| | | | | | Fixes the bug part of bug 789. svn:r17983
* Use a consistent naming standard for header file guard macros, taking care ↵Nick Mathewson2008-12-29
| | | | | | not to collide with any system headers. This tripped us up on Android. svn:r17805
* Move in-addr.arpa parsing and generation into address.c, and simplify the ↵Nick Mathewson2008-12-19
| | | | | | code that does it elsewhere. Incidentally, this lets exit servers answer requests for ip6.arpa addresses. svn:r17707
* Implement the 0x20-hack to make DNS poisoning harder against us, especially ↵Nick Mathewson2008-10-29
| | | | | | 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
* r17846@tombo: nickm | 2008-08-22 11:54:00 -0400Nick Mathewson2008-08-22
| | | | | | | 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
* r15170@catbus: nickm | 2007-09-19 11:41:50 -0400Nick Mathewson2007-09-19
| | | | | | | 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
* r12988@catbus: nickm | 2007-05-25 20:15:56 -0400Nick Mathewson2007-05-26
| | | | | | | socklen_t is a silly type anyway. Just use int as the argument for evdns_server_request_get_requesting_addr. svn:r10347
* r12941@catbus: nickm | 2007-05-24 16:25:00 -0400Nick Mathewson2007-05-24
| | | | | | | Fix some eventdns dns server bugs, and add a new eventdns function to get the address of whoever requested this lookup. svn:r10316
* r11726@Kushana: nickm | 2006-12-28 16:24:06 -0500Nick Mathewson2006-12-28
| | | | | | | Expose a function from eventdns.c to set options without having to make a fake configuration file. Also, add more settable options svn:r9202
* r11646@Kushana: nickm | 2006-12-19 14:40:38 -0500Nick Mathewson2006-12-19
| | | | | | | 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
* r11585@Kushana: nickm | 2006-12-15 01:11:49 -0500Nick Mathewson2006-12-15
| | | | | | | Tabify eventdns so that it matches libevent house style. svn:r9118
* r11584@Kushana: nickm | 2006-12-15 01:10:45 -0500Nick Mathewson2006-12-15
| | | | | | | 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
* r11548@Kushana: nickm | 2006-12-12 00:44:51 -0500Nick Mathewson2006-12-12
| | | | | | | Merge whitespace and other changes from libevent svn:r9090
* r11536@Kushana: nickm | 2006-12-11 22:48:21 -0500Nick Mathewson2006-12-12
| | | | | | | Add ipv6 functionality to evdns. svn:r9089
* r11498@Kushana: nickm | 2006-12-11 21:40:24 -0500Nick Mathewson2006-12-12
| | | | | | | Document all structures and (non-exported) functions. External documentation will probably wind up being a manpage, hopefully written by somebody else. svn:r9087
* r11497@Kushana: nickm | 2006-12-11 21:17:45 -0500Nick Mathewson2006-12-12
| | | | | | | Rename nameserver functions: every one should now have "server" in the name. svn:r9086
* r11495@Kushana: nickm | 2006-12-11 19:11:14 -0500Nick Mathewson2006-12-12
| | | | | | | More evdns: tab fixes. Dont make users worry about flags. Set truncated flag correctly when generating responses, rather than just bailing out. svn:r9084
* r11494@Kushana: nickm | 2006-12-11 14:50:20 -0500Nick Mathewson2006-12-12
| | | | | | | Export DNS types and classes in eventdns.h so that server code can use them. svn:r9083
* r11493@Kushana: nickm | 2006-12-11 14:28:42 -0500Nick Mathewson2006-12-12
| | | | | | | 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
* r11491@Kushana: nickm | 2006-12-11 12:12:57 -0500Nick Mathewson2006-12-12
| | | | | | | More DNS server hacking: everything except testing, and retries, and documentation, and Tor integration. svn:r9080
* r9099@Kushana: nickm | 2006-10-05 17:42:55 -0400Nick Mathewson2006-12-12
| | | | | | | start fleshing out some logic to build server support into eventdns. Still needs work and testing. svn:r9068
* r9007@Kushana: nickm | 2006-09-29 13:17:32 -0400Nick Mathewson2006-09-29
| | | | | | | Make eventdns give strings for DNS errors, not just error numbers. svn:r8535
* Minor fix: add code to eventdns so it can free memory on shutdown. This ↵Nick Mathewson2006-09-25
| | | | | | should help valgrind and dmalloc freak out less. svn:r8503
* Marge changes from libevent evdns to our eventdns. Most are cosmetic, but ↵Nick Mathewson2006-09-24
| | | | | | one or two are stability-related. This should make it easier to push our changes back towards libevent. svn:r8482
* r8605@Kushana: nickm | 2006-08-27 14:01:11 -0400Nick Mathewson2006-08-28
| | | | | | | divide eventdns log messages into warn and info messages. svn:r8252
* r7405@Kushana: nickm | 2006-08-16 14:38:46 -0400Nick Mathewson2006-08-16
| | | | | | | 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
* r7009@Kushana: nickm | 2006-08-03 10:44:58 -0700Nick Mathewson2006-08-04
| | | | | | | 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
* r7007@Kushana: nickm | 2006-08-03 09:58:30 -0700Nick Mathewson2006-08-04
| | | | | | | Export and use eventdns_config_windows_nameservers(); clean up some comments and log messages. svn:r6974
* Spelling fix.Nick Mathewson2006-07-05
| | | | svn:r6729
* Add plausile logging support to eventdns; stop putting stuff onto stdout.Nick Mathewson2006-07-05
| | | | svn:r6728
* eventdns: Apply a couple of patches from AGL; start working on windows ↵Nick Mathewson2006-06-13
| | | | | | compat; note some TODOs. svn:r6621
* Make eventdns.[ch] into good C90; remove signed/unsigned comparisons.Nick Mathewson2006-06-03
| | | | svn:r6528
* Add async dns code from Adam Langley, tweaked to build on OSX. Long-term, ↵Nick Mathewson2006-06-03
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