aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
Commit message (Collapse)AuthorAge
* 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
* r13019@catbus: nickm | 2007-05-27 12:32:55 -0400Nick Mathewson2007-05-29
| | | | | | | Merge an evdns fix from libevent r357: "evdns_shutdown fix from adam langley. svn:r10387
* 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
* r13025@Kushana: nickm | 2007-05-21 17:40:56 -0400Nick Mathewson2007-05-21
| | | | | | | Bugfix and possible backport candidate: use the same logic as in read_all when reading resolv.conf. Maybe this fixes bug 433. svn:r10237
* r12768@catbus: nickm | 2007-05-16 17:25:33 -0400Nick Mathewson2007-05-16
| | | | | | | Fix GCC warnings related to local parameters/variables getting shadowed. svn:r10198
* r12571@catbus: nickm | 2007-04-30 10:51:52 -0400Nick Mathewson2007-04-30
| | | | | | | Check for more HAVE_* header defines when building eventdns.c svn:r10063
* r12001@catbus: nickm | 2007-02-28 15:24:12 -0500Nick Mathewson2007-02-28
| | | | | | | Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688
* r12000@catbus: nickm | 2007-02-28 15:12:21 -0500Nick Mathewson2007-02-28
| | | | | | | 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
* r11917@catbus: nickm | 2007-02-24 03:18:52 -0500Nick Mathewson2007-02-24
| | | | | | | Fix another XXX012 in eventdns.c: tell the DNS request about malformed DNS replies. svn:r9637
* r11624@catbus: nickm | 2007-02-01 13:17:35 -0500Nick Mathewson2007-02-01
| | | | | | | 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
* r11586@catbus: nickm | 2007-01-29 13:13:27 -0500Nick Mathewson2007-01-29
| | | | | | | 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
* r11548@catbus: nickm | 2007-01-27 00:15:47 -0500Nick Mathewson2007-01-27
| | | | | | | Fix two assert bugs encountered when trying ipv6 lookups with eventdns code. svn:r9430
* r9701@catbus: nickm | 2007-01-21 13:21:25 -0500Nick Mathewson2007-01-21
| | | | | | | Detect and reject another (harmless) class of DNS replies. Also, fix a couple of IPv6 bugs in evendns.c svn:r9379
* r9692@catbus: nickm | 2007-01-21 12:04:22 -0500Nick Mathewson2007-01-21
| | | | | | | Detect pointer loops in DNS requests and replies; avoid infinite loop on such malformed replies. Fixes bug 380. svn:r9378
* r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500Nick Mathewson2007-01-15
| | | | | | | 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
* r11919@Kushana: nickm | 2007-01-10 13:32:48 -0500Nick Mathewson2007-01-10
| | | | | | | Add some defensive programming to eventdns.c in an attempt to catch possible memory stomping bugs. svn:r9322
* r11850@Kushana: nickm | 2007-01-05 17:12:08 -0500Nick Mathewson2007-01-05
| | | | | | | Look in netinet/in6.h header when looking for struct in6_addr. (Issue found by saeftl.) svn:r9272
* Fix formatting in eventdns.c. Remove the rest of the osx binaryAndrew Lewman2007-01-02
| | | | | | | uninstaller. svn:r9235
* r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500Nick Mathewson2006-12-29
| | | | | | | Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205
* 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
* r11630@Kushana: nickm | 2006-12-17 22:02:24 -0500Nick Mathewson2006-12-18
| | | | | | | Add a typedef to (try to) make eventdns work on mingw. Man, I need a buildbot for this. svn:r9147
* take the broken obsolete url out again.Roger Dingledine2006-12-15
| | | | | | | | seriously, this line should stay out. how can we make this happen? svn:r9119
* 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
* couldn't handle leaving this typo inRoger Dingledine2006-12-12
| | | | svn:r9094
* r11552@Kushana: nickm | 2006-12-12 13:34:13 -0500Nick Mathewson2006-12-12
| | | | | | | fix a signed/unsigned comparison in eventdns.c svn:r9092
* 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
* r11496@Kushana: nickm | 2006-12-11 19:39:37 -0500Nick Mathewson2006-12-12
| | | | | | | Clean up XXXX comments in evdns code. Make server_ports actually go away when their refcnt reaches zero. svn:r9085
* 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
* r11492@Kushana: nickm | 2006-12-11 12:30:23 -0500Nick Mathewson2006-12-12
| | | | | | | Implement dns server reply retry logic. svn:r9081