summaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
AgeCommit message (Collapse)Author
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-12-18Do not leak the DNS server port structure.Nick Mathewson
svn:r17680
2008-12-17Resolve many DOCDOCs.Nick Mathewson
svn:r17662
2008-12-10Fix a logic error that would automatically reject all but the first ↵Nick Mathewson
configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for part of 813/868. Spotted by coderman svn:r17569
2008-11-22Consider GetNetworkParams() nameserver parsing to have suceeded if even one ↵Nick Mathewson
nameserver can be added. Log more useful info about what exactly is failing when we fail to add a nameserver. svn:r17368
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-10-08fix typo in log entryRoger Dingledine
svn:r17050
2008-09-22Oops; we need to make sure that DNS request names are matched in the ↵Nick Mathewson
_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
2008-09-04Fix mingw build with --enable-gcc-warnings set.Nick Mathewson
svn:r16759
2008-08-27Oops; set address families on nameservers.Nick Mathewson
svn:r16674
2008-08-22Oops. Linux has no sa_len field.Nick Mathewson
svn:r16627
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
2008-02-24 r14410@tombo: nickm | 2008-02-23 16:51:46 -0500Nick Mathewson
Fix the last of the -Wshorten-64-to-32 warnings. svn:r13696
2008-02-21 r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson
Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
2008-02-20 r18263@catbus: nickm | 2008-02-20 12:45:15 -0500Nick Mathewson
Oops. not supposed to use tor_assert() in eventdns.c svn:r13622
2008-02-20 r18259@catbus: nickm | 2008-02-20 12:03:15 -0500Nick Mathewson
Make the last of the veracode warning issues get fixed. svn:r13620
2008-02-15 r14181@tombo: nickm | 2008-02-15 16:48:17 -0500Nick Mathewson
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
2008-02-08 r17967@catbus: nickm | 2008-02-07 11:44:51 -0500Nick Mathewson
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
2008-02-05 r17914@catbus: nickm | 2008-02-05 16:12:16 -0500Nick Mathewson
Remove or downgrade some XXX020 items. svn:r13388
2008-01-15 r17624@catbus: nickm | 2008-01-15 00:42:01 -0500Nick Mathewson
Fixes to more anonymously-reported typos and logic errors. svn:r13136
2008-01-14 r17611@catbus: nickm | 2008-01-14 13:44:16 -0500Nick Mathewson
add some missing checks for failing return values. svn:r13130
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-09-11 r15022@catbus: nickm | 2007-09-10 10:31:54 -0400Nick Mathewson
remove yet more pointless differences between our eventdns.c and the evdns.c in libevent. svn:r11425
2007-09-10 r15020@catbus: nickm | 2007-09-10 10:22:31 -0400Nick Mathewson
remove more pointless differences between our eventdns.c and the evdns.c in libevent. svn:r11416
2007-09-10 r15018@catbus: nickm | 2007-09-10 10:04:16 -0400Nick Mathewson
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
2007-09-10 r15001@catbus: nickm | 2007-09-10 09:44:49 -0400Nick Mathewson
Fix a couple of memory leaks in eventdns.c; found by niels. Not backport candidates, since they only affect DNSPort users. svn:r11413
2007-08-17 r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
2007-08-08 r14093@catbus: nickm | 2007-08-08 01:49:54 -0400Nick Mathewson
Include fewer redundant headers; use the compiler search paths better. svn:r11060
2007-07-25 r13903@catbus: nickm | 2007-07-25 18:03:56 -0400Nick Mathewson
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
2007-07-23 r13773@kushana: nickm | 2007-07-23 00:16:44 -0400Nick Mathewson
Use tor malloc replacements in eventdns.c for now: there might be goblins there...goblins that only dmalloc can find! svn:r10912
2007-07-19 r13840@catbus: nickm | 2007-07-19 16:00:43 -0400Nick Mathewson
Apparently, this problem can occur on the whole BSD family. "Yay." svn:r10884
2007-06-17 r13473@catbus: nickm | 2007-06-17 13:42:36 -0400Nick Mathewson
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
2007-05-31 r13117@catbus: nickm | 2007-05-31 19:40:32 -0400Nick Mathewson
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
2007-05-29 r13071@catbus: nickm | 2007-05-29 15:54:46 -0400Nick Mathewson
Aaargh. Revert accidentally-committed debugging code in last patch. svn:r10400
2007-05-29 r13070@catbus: nickm | 2007-05-29 15:53:21 -0400Nick Mathewson
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
2007-05-29 r13019@catbus: nickm | 2007-05-27 12:32:55 -0400Nick Mathewson
Merge an evdns fix from libevent r357: "evdns_shutdown fix from adam langley. svn:r10387
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
2007-05-21 r13025@Kushana: nickm | 2007-05-21 17:40:56 -0400Nick Mathewson
Bugfix and possible backport candidate: use the same logic as in read_all when reading resolv.conf. Maybe this fixes bug 433. svn:r10237
2007-05-16 r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson
Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
2007-04-30 r12571@catbus: nickm | 2007-04-30 10:51:52 -0400Nick Mathewson
Check for more HAVE_* header defines when building eventdns.c svn:r10063
2007-02-28 r12001@catbus: nickm | 2007-02-28 15:24:12 -0500Nick Mathewson
Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688
2007-02-28 r12000@catbus: nickm | 2007-02-28 15:12:21 -0500Nick Mathewson
Try to fix eventdns bug 326 again, this time by noting that rcode 2 (serverfailed) does not really mean "The server is useless." svn:r9687
2007-02-24 r11917@catbus: nickm | 2007-02-24 03:18:52 -0500Nick Mathewson
Fix another XXX012 in eventdns.c: tell the DNS request about malformed DNS replies. svn:r9637
2007-02-01 r11624@catbus: nickm | 2007-02-01 13:17:35 -0500Nick Mathewson
Note a few questionable bits pointed out by RATS. (And no, RATS, I'm not about to stop having fixed-sized local buffers for you. I know how to use them, thankyouverymuch.) svn:r9474
2007-01-29 r11586@catbus: nickm | 2007-01-29 13:13:27 -0500Nick Mathewson
Add a couple of fixes I turned up while writing regression tests for libevent: Allow DNS servers on ports other than 53, and handle TTLs correctly on reverse hostname lookups. svn:r9458
2007-01-27 r11548@catbus: nickm | 2007-01-27 00:15:47 -0500Nick Mathewson
Fix two assert bugs encountered when trying ipv6 lookups with eventdns code. svn:r9430
2007-01-21 r9701@catbus: nickm | 2007-01-21 13:21:25 -0500Nick Mathewson
Detect and reject another (harmless) class of DNS replies. Also, fix a couple of IPv6 bugs in evendns.c svn:r9379
2007-01-21 r9692@catbus: nickm | 2007-01-21 12:04:22 -0500Nick Mathewson
Detect pointer loops in DNS requests and replies; avoid infinite loop on such malformed replies. Fixes bug 380. svn:r9378
2007-01-15 r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500Nick Mathewson
Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round. svn:r9360