aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.c
AgeCommit message (Collapse)Author
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
2007-01-10 r11919@Kushana: nickm | 2007-01-10 13:32:48 -0500Nick Mathewson
Add some defensive programming to eventdns.c in an attempt to catch possible memory stomping bugs. svn:r9322
2007-01-05 r11850@Kushana: nickm | 2007-01-05 17:12:08 -0500Nick Mathewson
Look in netinet/in6.h header when looking for struct in6_addr. (Issue found by saeftl.) svn:r9272
2007-01-02Fix formatting in eventdns.c. Remove the rest of the osx binaryAndrew Lewman
uninstaller. svn:r9235
2006-12-29 r11736@Kushana: nickm | 2006-12-28 17:46:23 -0500Nick Mathewson
Mark a pile of XXXX comments as targetted for 0.1.2: some because they look important, some because they look easy. svn:r9205
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-18 r11630@Kushana: nickm | 2006-12-17 22:02:24 -0500Nick Mathewson
Add a typedef to (try to) make eventdns work on mingw. Man, I need a buildbot for this. svn:r9147
2006-12-15take the broken obsolete url out again.Roger Dingledine
seriously, this line should stay out. how can we make this happen? svn:r9119
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-12couldn't handle leaving this typo inRoger Dingledine
svn:r9094
2006-12-12 r11552@Kushana: nickm | 2006-12-12 13:34:13 -0500Nick Mathewson
fix a signed/unsigned comparison in eventdns.c svn:r9092
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 r11496@Kushana: nickm | 2006-12-11 19:39:37 -0500Nick Mathewson
Clean up XXXX comments in evdns code. Make server_ports actually go away when their refcnt reaches zero. svn:r9085
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 r11492@Kushana: nickm | 2006-12-11 12:30:23 -0500Nick Mathewson
Implement dns server reply retry logic. svn:r9081