summaryrefslogtreecommitdiff
path: root/src/or/dns.c
AgeCommit message (Collapse)Author
2009-06-03Fix gprof bottlenecks on exit nodes found by Jacob.Nick Mathewson
Apparently all the stuff that does a linear scan over all the DNS cache entries can get really expensive when your DNS cache is very large. It's hard to say how much this will help performance, since gprof doesn't count time spent in OpenSSL or zlib, but I'd guess 10%. Also, this patch removes calls to assert_connection_ok() from inside the read and write callbacks, which are similarly unneeded, and a little costlier than I'm happy with. This is probably worth backporting to 0.2.0.
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-04Update copyright to 2009.Karsten Loesing
2009-01-30fix a wide line.Nick Mathewson
svn:r18341
2009-01-28Support setting serverdnsrandomizecase during sighup. Backportable, unless ↵Nick Mathewson
too trivial. svn:r18307
2009-01-10Fix ServerDNSRandomizeCase so that setting it to 0 works.Nick Mathewson
Bugfix on 0.2.1.7-alpha. Backport candidate. Fixes bug 905. svn:r18063
2009-01-06Make outgoing DNS requests respect OutboundBindAddress.Nick Mathewson
Fixes the bug part of bug 789. svn:r17983
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
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
2008-12-26Add some early checks to keep ipv6 addresses from failing by accident. Now, ↵Nick Mathewson
they fail on purpose, at least till 0.2.2.something. svn:r17791
2008-12-24Use the literal parse of an address in dns_resolve_impl if parsing the ↵Nick Mathewson
address as an ipv4 or ipv6 address _succeeded_. Not if it failed. Bug introduced in r17707 (post 0.2.1.8-alpha), and found by xiando. svn:r17758
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
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-18Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson
patch. svn:r17686
2008-12-18Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson
(The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
2008-12-17Resolve many DOCDOCs.Nick Mathewson
svn:r17662
2008-12-10Bug 691 fix: do not shutdown Tor servers right away if the network is down.Nick Mathewson
svn:r17566
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-21Fix the rest of bug 619: reject *:* servers should not do DNS lookups, even ↵Nick Mathewson
if broken clients send them RELAY_BEGIN cells. Patch from rovv. svn:r17138
2008-10-16fix grammar in a log messageRoger Dingledine
svn:r17131
2008-08-22 r17847@tombo: nickm | 2008-08-22 12:08:56 -0400Nick Mathewson
ipv6: make server-side dns cache remember for each address an ipv6 addr and an ipv4 addr. This fix is just the struct side. svn:r16622
2008-08-05 r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson
Initial conversion of uint32_t addr to tor_addr_t addr in connection_t and related types. Most of the Tor wire formats using these new types are in, but the code to generate and use it is not. This is a big patch. Let me know what it breaks for you. svn:r16435
2008-04-25apply patch from lodger to simplify code a bitRoger Dingledine
svn:r14474
2008-04-22 r15273@tombo: nickm | 2008-04-22 12:32:28 -0400Nick Mathewson
apply patch from lodger: reject requests for reverse-dns lookup of names in private address space. make non-exits reject all dns requests. Fixes bug 619. svn:r14410
2008-03-18 r18937@catbus: nickm | 2008-03-18 14:50:39 -0400Nick Mathewson
Fix the other lingering part of bug 617: make ClientDNSRejectInternalAddresses actually work. svn:r14107
2008-02-22 r14401@tombo: nickm | 2008-02-22 15:33:42 -0500Nick Mathewson
Fix a really stupid parthensis error noticed by mwenge. svn:r13681
2008-02-22 r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson
More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
2008-02-21 r14356@31-33-219: nickm | 2008-02-21 10:38:26 -0500Nick Mathewson
Defer a couple of XXX020rc items, based on recommendation from arma. svn:r13654
2008-02-21resolve one more, and leave two for nick.Roger Dingledine
svn:r13644
2008-02-21 r18296@catbus: nickm | 2008-02-20 23:30:11 -0500Nick Mathewson
Answer one xxx020 item; move 7 other ones to a new "XXX020rc" category: they should get fixed before we cut a release candidate. arma: please review these to see whether you have fixes/answers for any. Please check out the other 14 XXX020s to see if any look critical for the release candidate. svn:r13640
2008-02-19is_reverse in our struct is uint8_t. don't make it be an intRoger Dingledine
elsewhere. bug reported by veracode. svn:r13597
2008-02-19be more explicit about a harmless thing that freaked veracode outRoger Dingledine
svn:r13592
2008-02-15 r14182@tombo: nickm | 2008-02-15 17:20:51 -0500Nick Mathewson
Defer, downgrade, or address more XXX020s. The remaining ones are all ones we should deal with before release. svn:r13530
2008-02-09note a question for nickRoger Dingledine
svn:r13437
2008-02-08 r14062@tombo: nickm | 2008-02-08 15:17:07 -0500Nick Mathewson
Change DNs in x509 certificates to be harder to fingerprint. Raise common code. Refactor random hostname generation into crypto.c svn:r13429
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-06New config option ServerDNSAllowBrokenResolvConf to start a relayRoger Dingledine
even when the local resolv.conf file is missing, broken, or contains only unusable nameservers. Now I can run a local network on my laptop when I'm on an airplane. svn:r13402
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-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-11-29karsten's second refactoring patchRoger Dingledine
svn:r12607
2007-11-11a potential solution for bug 549Roger Dingledine
svn:r12471
2007-11-11another likelier candidate for mike's leakRoger Dingledine
svn:r12470
2007-11-11a log entry to help us find mike's memory leakRoger Dingledine
svn:r12469
2007-10-10 r15621@catbus: nickm | 2007-10-10 00:37:25 -0400Nick Mathewson
Turns out, Bug 463 was just another "warn about something that is no big deal" thing. Downgrade, comment, and resolve. svn:r11829
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-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-18 r13820@catbus: nickm | 2007-07-18 16:07:30 -0400Nick Mathewson
Whitespace fix on r10849 svn:r10872
2007-07-17a few fixes for bug 463. needs a changelog. might need more fixes.Roger Dingledine
svn:r10849
2007-07-05 r13452@kushana: nickm | 2007-06-20 09:52:55 -0400Nick Mathewson
Patch from Robert Hogan: Generate STREAM NEW events for dnsport requests and tunneled directory connections. Log when we are testing for hijacking. svn:r10737
2007-06-17 r13477@catbus: nickm | 2007-06-17 14:22:03 -0400Nick Mathewson
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere. svn:r10645