aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
Commit message (Collapse)AuthorAge
* Another event2 evdns fix.Nick Mathewson2009-10-13
|
* Fix a crash when using evdns from Libevent 2.Nick Mathewson2009-10-13
| | | | | | | | | | When we tried to use the deprecated non-threadsafe evdns interfaces in Libevent 2 without using the also-deprecated event_init() interface, Libevent 2 would sensibly crash, since it has no guess where to find the Libevent library. Here we use the evdns_base_*() functions instead if they're present, and fake them if they aren't.
* fix comments and other typosRoger Dingledine2009-07-13
|
* Isolate Libevent API dependency to just main.c and dns.c in src/or.Nick Mathewson2009-06-12
| | | | | | The rest of the code was only including event.h so that it could see EV_READ and EV_WRITE, which we were using as part of the connection_watch_events interface for no very good reason.
* Update Tor to use Libevent 2.0 APIs when available.Nick Mathewson2009-06-12
| | | | | | | | | | This patch adds a new compat_libevent.[ch] set of files, and moves our Libevent compatibility and utilitity functions there. We build them into a separate .a so that nothing else in src/commmon depends on Libevent (partially fixing bug 507). Also, do not use our own built-in evdns copy when we have Libevent 2.0, whose evdns is finally good enough (thus fixing Bug 920).
* Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-06-04
|\
| * Fix gprof bottlenecks on exit nodes found by Jacob.Nick Mathewson2009-06-03
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge commit 'origin/maint-0.2.1'Nick Mathewson2009-05-27
|\|
| * Spell-check Tor.Nick Mathewson2009-05-27
| |
| * Update copyright to 2009.Karsten Loesing2009-05-04
| |
* | fix codestyle issuesSebastian Hahn2009-05-24
| |
* | Log the number and size of DNS cache entries on SIGUSR1.Jacob Appelbaum2009-05-22
| | | | | | | | | | | | | | | | | | Specifically if you send SIGUSR1, it will add two lines to the log file: May 22 07:41:59.576 [notice] Our DNS cache has 3364 entries. May 22 07:41:59.576 [notice] Our DNS cache size is approximately 1022656 bytes. [tweaked a bit by nickm]
* | Update copyright to 2009.Karsten Loesing2009-05-02
|/
* fix a wide line.Nick Mathewson2009-01-30
| | | | svn:r18341
* Support setting serverdnsrandomizecase during sighup. Backportable, unless ↵Nick Mathewson2009-01-28
| | | | | | too trivial. svn:r18307
* Fix ServerDNSRandomizeCase so that setting it to 0 works.Nick Mathewson2009-01-10
| | | | | | Bugfix on 0.2.1.7-alpha. Backport candidate. Fixes bug 905. svn:r18063
* 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
* Add some early checks to keep ipv6 addresses from failing by accident. Now, ↵Nick Mathewson2008-12-26
| | | | | | they fail on purpose, at least till 0.2.2.something. svn:r17791
* Use the literal parse of an address in dns_resolve_impl if parsing the ↵Nick Mathewson2008-12-24
| | | | | | 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
* Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson2008-12-22
| | | | svn:r17734
* Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson2008-12-22
| | | | | | comments so that they will get recognized as doxygen. svn:r17729
* 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
* Downlgrade tweak, and answer lots of XXX021s. No actual code fixes in this ↵Nick Mathewson2008-12-18
| | | | | | patch. svn:r17686
* Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson2008-12-18
| | | | | | (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
* Resolve many DOCDOCs.Nick Mathewson2008-12-17
| | | | svn:r17662
* Bug 691 fix: do not shutdown Tor servers right away if the network is down.Nick Mathewson2008-12-10
| | | | svn:r17566
* 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 the rest of bug 619: reject *:* servers should not do DNS lookups, even ↵Nick Mathewson2008-10-21
| | | | | | if broken clients send them RELAY_BEGIN cells. Patch from rovv. svn:r17138
* fix grammar in a log messageRoger Dingledine2008-10-16
| | | | svn:r17131
* r17847@tombo: nickm | 2008-08-22 12:08:56 -0400Nick Mathewson2008-08-22
| | | | | | | 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
* r17641@31-33-44: nickm | 2008-08-05 16:07:53 -0400Nick Mathewson2008-08-05
| | | | | | | 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
* apply patch from lodger to simplify code a bitRoger Dingledine2008-04-25
| | | | svn:r14474
* r15273@tombo: nickm | 2008-04-22 12:32:28 -0400Nick Mathewson2008-04-22
| | | | | | | 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
* r18937@catbus: nickm | 2008-03-18 14:50:39 -0400Nick Mathewson2008-03-18
| | | | | | | Fix the other lingering part of bug 617: make ClientDNSRejectInternalAddresses actually work. svn:r14107
* r14401@tombo: nickm | 2008-02-22 15:33:42 -0500Nick Mathewson2008-02-22
| | | | | | | Fix a really stupid parthensis error noticed by mwenge. svn:r13681
* r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson2008-02-22
| | | | | | | More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
* r14356@31-33-219: nickm | 2008-02-21 10:38:26 -0500Nick Mathewson2008-02-21
| | | | | | | Defer a couple of XXX020rc items, based on recommendation from arma. svn:r13654
* resolve one more, and leave two for nick.Roger Dingledine2008-02-21
| | | | svn:r13644
* r18296@catbus: nickm | 2008-02-20 23:30:11 -0500Nick Mathewson2008-02-21
| | | | | | | 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
* is_reverse in our struct is uint8_t. don't make it be an intRoger Dingledine2008-02-19
| | | | | | | elsewhere. bug reported by veracode. svn:r13597
* be more explicit about a harmless thing that freaked veracode outRoger Dingledine2008-02-19
| | | | svn:r13592
* r14182@tombo: nickm | 2008-02-15 17:20:51 -0500Nick Mathewson2008-02-15
| | | | | | | Defer, downgrade, or address more XXX020s. The remaining ones are all ones we should deal with before release. svn:r13530
* note a question for nickRoger Dingledine2008-02-09
| | | | svn:r13437
* r14062@tombo: nickm | 2008-02-08 15:17:07 -0500Nick Mathewson2008-02-08
| | | | | | | Change DNs in x509 certificates to be harder to fingerprint. Raise common code. Refactor random hostname generation into crypto.c svn:r13429
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* New config option ServerDNSAllowBrokenResolvConf to start a relayRoger Dingledine2008-02-06
| | | | | | | | | | 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
* r17611@catbus: nickm | 2008-01-14 13:44:16 -0500Nick Mathewson2008-01-14
| | | | | | | add some missing checks for failing return values. svn:r13130
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* karsten's second refactoring patchRoger Dingledine2007-11-29
| | | | svn:r12607