aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2008-12-29Use a consistent naming standard for header file guard macros, taking care ↵Nick Mathewson
not to collide with any system headers. This tripped us up on Android. svn:r17805
2008-12-29Use RSA_generate_key_ex where available.Nick Mathewson
svn:r17804
2008-12-29Switch address comparisons in policies to be exact rather than semantic. ↵Nick Mathewson
Until we do ipv6 exit policies and until we know whether we even allow ::ffff:0:0/96 addresses, there is no point in doing "semantic" comparisons. This was also showing up on oprofile. svn:r17803
2008-12-29Refactor some exit-policy-related functions that showed up in oprofile.Nick Mathewson
Specifically, split compare_tor_addr_to_addr_policy() from a loop with a bunch of complicated ifs inside into some ifs, each with a simple loop. Rearrange router_find_exact_exit_enclave() to run a little faster. Bizarrely, router_policy_rejects_all() shows up on oprofile, so precalculate it per routerinfo. svn:r17802
2008-12-29Fix bug in recent address.c patch: actually set the value of address * to ↵Nick Mathewson
0.0.0.0 as we did before. This makes CMP_EXACT comparisons with bitmask 0 work on address * again. svn:r17801
2008-12-27Fix compilation under gethostbyname-based systems.Nick Mathewson
svn:r17800
2008-12-27remove the responsibility for setting listensocklen to the function that ↵Nick Mathewson
made the sockaddr svn:r17799
2008-12-27partial move to letting bridge descriptor fetches use our new (well,Roger Dingledine
new from their perspective) directory download schedule abstraction. not done yet, but i'd better get this out of my sandbox before nick does another sweeping change. :) svn:r17798
2008-12-27New controller event "clients_seen" to report a geoip-based summaryRoger Dingledine
of which countries we've seen clients from recently. Now controllers like Vidalia can show bridge operators that they're actually making a difference. svn:r17796
2008-12-27Remove a deprecated controller alias; make another one generate a warning.Nick Mathewson
svn:r17793
2008-12-27Make connection_create_listener take a sockaddr_len, not just a sockaddr ↵Nick Mathewson
whose length we try to divine. svn:r17792
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-26Refactor tor_addr_t manipulation functions so that as few as possible look ↵Nick Mathewson
at the tor_addr_t representation. svn:r17790
2008-12-26get_interface_addr6(), and by extension get_interface_addr(), were pretty ↵Nick Mathewson
borked. Copying a tor_addr_t from a sockaddr_storage using memcpy is a poor notion. svn:r17789
2008-12-26Refactor tor_addr_compare_masked() so that CMP_SEMANTIC makes more sense, ↵Nick Mathewson
and has decent semantics for maskbits; and so that CMP_EXACT works right for bits==0. svn:r17788
2008-12-26Bump version to 0.2.1.9-alpha-devNick Mathewson
svn:r17787
2008-12-26Document and make more conservative the logic for picking the size of the ↵Nick Mathewson
bloom filter to use for retaining descriptors. svn:r17786
2008-12-26Document our Bloom filter parameter choices.Nick Mathewson
svn:r17785
2008-12-26Document the pk operation count fields in rephist.c, and move them into a ↵Nick Mathewson
struct for clarity, and change their type to what we actually want to cast them to. svn:r17784
2008-12-26Add more missing documentation, and correct an error in container.c ↵Nick Mathewson
documentation: Don't introduce two parameters called n when you're calling an algorithm O(n). svn:r17783
2008-12-25prepare for 0.2.1.9-alphaRoger Dingledine
svn:r17778
2008-12-25ok, fair enough, some of these variables were time_t's after allRoger Dingledine
svn:r17777
2008-12-25so which is it? TIME_MAX or INT_MAX? pick INT_MAX for now.Roger Dingledine
svn:r17772
2008-12-25some fixes i found in my sandboxRoger Dingledine
svn:r17771
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-24Checkpoint my big bug-891 patch.Nick Mathewson
svn:r17757
2008-12-23Patch from Sebiastian for bug 888: mark a descriptor as "Impossible" if we ↵Nick Mathewson
reject it after downloading it so that we do not download it again svn:r17756
2008-12-23Remove bogus extern declaration for unused (and nonexistant) field from test.cNick Mathewson
svn:r17755
2008-12-23Document most undocumented variables.Nick Mathewson
svn:r17754
2008-12-23Properly zero-out addresses when setting them. Probably this was not ↵Nick Mathewson
hurting anything. svn:r17749
2008-12-22Make freelist_len in memarea.c static; document a few variables.Nick Mathewson
svn:r17741
2008-12-22Expose bench_* functions via test cliNick Mathewson
svn:r17740
2008-12-22Add DOCDOC entries for undocumented static and global variables.Nick Mathewson
svn:r17739
2008-12-22Make doxygen not complain about the way we spell CRLFNUL in control.cNick Mathewson
svn:r17735
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Documentation and conformance for WRA_* returns.Nick Mathewson
shahn: "Add some documentation for the WRA_* family of functions, also make sure that (hopefully) all functions that return was_router_added_t don't return ints directly and that they don't refer to integers in their documentation anymore." svn:r17731
2008-12-22Partially apply bug 891 parch from forest: check EXTEND cell address against ↵Nick Mathewson
real_addr, not addr. I have questions about the rest of the patch: see the flyspray entry. svn:r17730
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-22Fix all of the doxygen warnings not pertaining to missing documentation.Nick Mathewson
svn:r17727
2008-12-22fix typo noticed by woodRoger Dingledine
svn:r17726
2008-12-22some windows users are outraged that tor refuses to work evenRoger Dingledine
when their clock and date are correct, if their timezone is totally wrong. now we at least tell them. svn:r17725
2008-12-22the default should not be the notify the poster, unless somethingRoger Dingledine
more extreme happens. the default should be to be quiet unless something more extreme happens. at least, this doesn't generate complaints anymore. perhaps that means it is working better? :) svn:r17724
2008-12-22fix a fun bug on r17656 that was making us send HTTP/1.0 404 asRoger Dingledine
the message body, no matter the message headers, when answering a descriptor or extrainfo post request. svn:r17723
2008-12-22Yet still more propagating of things that need to be was_router_added_t now.Nick Mathewson
svn:r17722
2008-12-22More propagating of things that need to be was_router_added_t now.Nick Mathewson
svn:r17721
2008-12-22WRA_MORE_SEVERE is not WRA_GET_MORE_SEVERE.Nick Mathewson
svn:r17720
2008-12-22gabelmoo has a new IP address (once more).Karsten Loesing
svn:r17717
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-19Expose hex_decode_digit from util.cNick Mathewson
svn:r17706
2008-12-19When we need to open a new origin circuit, log why.Nick Mathewson
svn:r17705