aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
Commit message (Collapse)AuthorAge
...
* Add some debugging code to try to catch the likely cause of bug 929Nick Mathewson2009-02-23
| | | | svn:r18682
* Revert an erroneous part of the non-fix to bug 326, and add comments to ↵Nick Mathewson2009-02-11
| | | | | | explain why it was erroneous. svn:r18494
* I worry that the CLEAR() macro in eventdns.c is hiding bugs. That is sad, ↵Nick Mathewson2009-02-11
| | | | | | because it was meant to make them more detectable. Change it to change stuff to garbage rather than to 0. If no bugs turn up, we can remove it in 0.2.2.x svn:r18493
* Port some mostly cosmetic eventdns changes from libeventNick Mathewson2009-02-11
| | | | svn:r18492
* Remove some deadcode and use tor_inet_aton uniformly.Nick Mathewson2009-02-09
| | | | svn:r18422
* Fix a remote-crash bug. This will need a patch release.Nick Mathewson2009-02-09
| | | | svn:r18421
* Fix a race condition on nameserver reconfiguration.Nick Mathewson2009-01-28
| | | | | | | | | | | | | | | | | | | | This resolves bug 526, wherein we would crash if the following events occurred in this order: A: We're an OR, and one of our nameservers goes down. B: We launch a probe to it to see if it's up again. (We do this hourly in steady-state.) C: Before the probe finishes, we reconfigure our nameservers, usually because we got a SIGHUP and the resolve.conf file changed. D: The probe reply comes back, or times out. (There is a five-second window for this, after B has happens). IOW, if one of our nameservers is down and our nameserver configuration has changed, there were 5 seconds per hour where HUPing the server was unsafe. Bugfix on 0.1.2.1-alpha. Too obscure to backport. svn:r18306
* Fix a compile warning on win32.Nick Mathewson2009-01-14
| | | | svn:r18099
* Make outgoing DNS requests respect OutboundBindAddress.Nick Mathewson2009-01-06
| | | | | | Fixes the bug part of bug 789. svn:r17983
* Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson2009-01-04
| | | | | | | | The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
* Only set sin_len/sin6_len when they exist.Nick Mathewson2009-01-02
| | | | svn:r17851
* Try harder to make sure we zero-out the extraneous sockaddr fields and that ↵Nick Mathewson2009-01-02
| | | | | | we set sockaddr_len. Conceivably a backport candidate, though nothing has yet been sen to break. svn:r17849
* Indeed, arma was right. There was one ntohl too many in debug_ntop in ↵Nick Mathewson2008-12-30
| | | | | | eventdns.c svn:r17826
* point out the bug location to nick. unless i'm wrong.Roger Dingledine2008-12-30
| | | | svn:r17825
* More compilation tweaks on Android: fix two clear errors in our code that ↵Nick Mathewson2008-12-29
| | | | | | apparently the compiler cares about there. svn:r17808
* 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
* Do not leak the DNS server port structure.Nick Mathewson2008-12-18
| | | | svn:r17680
* Resolve many DOCDOCs.Nick Mathewson2008-12-17
| | | | svn:r17662
* Fix a logic error that would automatically reject all but the first ↵Nick Mathewson2008-12-10
| | | | | | configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for part of 813/868. Spotted by coderman svn:r17569
* Consider GetNetworkParams() nameserver parsing to have suceeded if even one ↵Nick Mathewson2008-11-22
| | | | | | nameserver can be added. Log more useful info about what exactly is failing when we fail to add a nameserver. svn:r17368
* 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
* fix typo in log entryRoger Dingledine2008-10-08
| | | | svn:r17050
* Oops; we need to make sure that DNS request names are matched in the ↵Nick Mathewson2008-09-22
| | | | | | _questions_ section of the replies. Rejecting answers whether the _answers_ section did not match made us reject A records waiting at the end of a CNAME record. Bug 823. svn:r16933
* Fix mingw build with --enable-gcc-warnings set.Nick Mathewson2008-09-04
| | | | svn:r16759
* Oops; set address families on nameservers.Nick Mathewson2008-08-27
| | | | svn:r16674
* Oops. Linux has no sa_len field.Nick Mathewson2008-08-22
| | | | svn:r16627
* 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
* r14410@tombo: nickm | 2008-02-23 16:51:46 -0500Nick Mathewson2008-02-24
| | | | | | | Fix the last of the -Wshorten-64-to-32 warnings. svn:r13696
* r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson2008-02-21
| | | | | | | Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
* r18263@catbus: nickm | 2008-02-20 12:45:15 -0500Nick Mathewson2008-02-20
| | | | | | | Oops. not supposed to use tor_assert() in eventdns.c svn:r13622
* r18259@catbus: nickm | 2008-02-20 12:03:15 -0500Nick Mathewson2008-02-20
| | | | | | | Make the last of the veracode warning issues get fixed. svn:r13620
* r14181@tombo: nickm | 2008-02-15 16:48:17 -0500Nick Mathewson2008-02-15
| | | | | | | Fix all but 2 DOCDOC items; defer many XXX020s (particularly those where fixing them would fix no bugs at the risk of introducing some bugs). svn:r13529
* r17967@catbus: nickm | 2008-02-07 11:44:51 -0500Nick Mathewson2008-02-08
| | | | | | | Fix some warnings identified by building with -D_FORTIFY_SOURCE=2. Remove a redundant (and nuts) definition of _FORTIFY_SOURCE from eventdns.c. svn:r13424
* r17914@catbus: nickm | 2008-02-05 16:12:16 -0500Nick Mathewson2008-02-05
| | | | | | | Remove or downgrade some XXX020 items. svn:r13388
* r17624@catbus: nickm | 2008-01-15 00:42:01 -0500Nick Mathewson2008-01-15
| | | | | | | Fixes to more anonymously-reported typos and logic errors. svn:r13136
* r17611@catbus: nickm | 2008-01-14 13:44:16 -0500Nick Mathewson2008-01-14
| | | | | | | add some missing checks for failing return values. svn:r13130
* 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
* r15022@catbus: nickm | 2007-09-10 10:31:54 -0400Nick Mathewson2007-09-11
| | | | | | | remove yet more pointless differences between our eventdns.c and the evdns.c in libevent. svn:r11425
* r15020@catbus: nickm | 2007-09-10 10:22:31 -0400Nick Mathewson2007-09-10
| | | | | | | remove more pointless differences between our eventdns.c and the evdns.c in libevent. svn:r11416
* r15018@catbus: nickm | 2007-09-10 10:04:16 -0400Nick Mathewson2007-09-10
| | | | | | | Change comments in eventdns.c to C-style, so we can more easily diff it against the version in libevent to reconcile them (again). svn:r11415
* r15001@catbus: nickm | 2007-09-10 09:44:49 -0400Nick Mathewson2007-09-10
| | | | | | | Fix a couple of memory leaks in eventdns.c; found by niels. Not backport candidates, since they only affect DNSPort users. svn:r11413
* r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson2007-08-17
| | | | | | | Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
* r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson2007-08-08
| | | | | | | Include fewer redundant headers; use the compiler search paths better. svn:r11060
* r13903@catbus: nickm | 2007-07-25 18:03:56 -0400Nick Mathewson2007-07-25
| | | | | | | Make buffer large enough to hold ip6.arpa addresses. This code was not actually used yet, so no user-visible bug existed. (Based on patch by croup.) svn:r10928
* r13773@kushana: nickm | 2007-07-23 00:16:44 -0400Nick Mathewson2007-07-23
| | | | | | | Use tor malloc replacements in eventdns.c for now: there might be goblins there...goblins that only dmalloc can find! svn:r10912
* r13840@catbus: nickm | 2007-07-19 16:00:43 -0400Nick Mathewson2007-07-19
| | | | | | | Apparently, this problem can occur on the whole BSD family. "Yay." svn:r10884
* r13473@catbus: nickm | 2007-06-17 13:42:36 -0400Nick Mathewson2007-06-17
| | | | | | | Fix solaris eventdns.c behavior. This time, I think I got it. We were redefining _FILE_OFFSET_BITS, and thereby calling fstat64() on a struct stat, or something like that. svn:r10643
* r13117@catbus: nickm | 2007-05-31 19:40:32 -0400Nick Mathewson2007-05-31
| | | | | | | Patch from Tup: treat RESOLVED_TYPE_ERROR_TRANSIENT as a SERVERFAILED, and RESOLVED_TYPE_ERROR as NOTEXIST. Generate transient/nontransient errors more sensibly. Set flags better on DNS replies. svn:r10427
* r13071@catbus: nickm | 2007-05-29 15:54:46 -0400Nick Mathewson2007-05-29
| | | | | | | Aaargh. Revert accidentally-committed debugging code in last patch. svn:r10400
* r13070@catbus: nickm | 2007-05-29 15:53:21 -0400Nick Mathewson2007-05-29
| | | | | | | Fix handling of resolves with very long or otherwise malformed addresses, and comment dns_resolve better, and stop making what should be a BUG warning into an assert(0). This fixes bug 427, which was introduced around 9900/9931/9932. Not a backport candidate: 0.1.2.x never had this bug. svn:r10399