aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-01-06Clean up (and mark for 0.2.2.) comments relating to non-beauty of current ↵Nick Mathewson
bug-743 fix. svn:r17966
2009-01-06Slightly better messages on ControlListenAddress 0.0.0.0Nick Mathewson
svn:r17963
2009-01-06Prevent bridge relays from serving their 'extrainfo' documentRoger Dingledine
to anybody who asks, now that extrainfo docs include potentially sensitive aggregated client geoip summaries. svn:r17958
2009-01-06Make dirserv_get_routerdesc_fingerprints() treat extrainfos with ↵Nick Mathewson
send_unencrypted==0 correctly. Irrelevant, since we will soon never send them at all. svn:r17953
2009-01-06Bugfix on r13098. Backport candidate.Roger Dingledine
When we made bridge authorities stop serving bridge descriptors over unencrypted links, we also broke DirPort reachability testing for bridges. So bridges with a non-zero DirPort were printing spurious warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709. svn:r17945
2009-01-05apply a variant of rovv's bug 872 patch, and document that we want a better ↵Nick Mathewson
solution for 0.2.2.x. svn:r17924
2009-01-05Bridge relays that had DirPort set to 0 would stop fetchingRoger Dingledine
descriptors shortly after startup, and then briefly resume after a new bandwidth test and/or after publishing a new bridge descriptor. Bridge users that try to bootstrap from them would get a recent networkstatus but would get descriptors from up to 18 hours earlier, meaning most of the descriptors were obsolete already. Reported by Tas; bugfix on 0.2.0.13-alpha. svn:r17920
2009-01-05If the cached networkstatus consensus is more than five days old,Roger Dingledine
discard it rather than trying to use it. In theory it could be useful because it lists alternate directory mirrors, but in practice it just means we spend many minutes trying directory mirrors that are long gone from the network. Helps bug 887 a bit; bugfix on 0.2.0.x. svn:r17917
2009-01-05Preserve reporting of stream end reasons to the local controlMike Perry
port. They were lost in the changes for Proposal 148. svn:r17911
2009-01-04Use doxygen-style comments instead of C-style comments.Karsten Loesing
svn:r17893
2009-01-04Another fun openbsd warning fix. On ioerror's computer at least, they ↵Nick Mathewson
redefined an unsigned field in zlib.h to be signed. I am quite sure this makes me more secure somehow. svn:r17892
2009-01-04OpenBSD malloc.h believes that you should be able to detect headers with ↵Nick Mathewson
autoconf, or build without warnings, but not both. So never include malloc.h on OpenBSD. Backport candidate. svn:r17891
2009-01-04Document some variables used for generating statistics on usage of V0 hidden ↵Karsten Loesing
service directory authorities. svn:r17890
2009-01-04Another round of downgrading removing or postponing XXXX021 issues. Some ↵Nick Mathewson
remain, though. svn:r17888
2009-01-04Fix the oldest bug in a while: stop accepting 1.2.3 as a valid IPv4 address ↵Nick Mathewson
on any platform. svn:r17887
2009-01-04Fix an xxx021: do not remove routerinfos as too old and unlisted unless we ↵Nick Mathewson
have a consensus. Backport candidate. svn:r17886
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
2009-01-03Another attempt at fixing coverity scan CID 361.Nick Mathewson
svn:r17863
2009-01-02Only set sin_len/sin6_len when they exist.Nick Mathewson
svn:r17851
2009-01-02take out my IMPOSSIBLE_TO_DOWNLOAD+1 hackRoger Dingledine
svn:r17850
2009-01-02Try harder to make sure we zero-out the extraneous sockaddr fields and that ↵Nick Mathewson
we set sockaddr_len. Conceivably a backport candidate, though nothing has yet been sen to break. svn:r17849
2008-12-31Increment n_download_failures up to IMPOSSIBLE_TO_DOWNLOAD-1, not up to ↵Nick Mathewson
IMPOSSIBLE_TO_DOWNLOAD. svn:r17835
2008-12-31switch over the bridge descriptor download mechanism toRoger Dingledine
use the same download mechanism as other places. i had to make an ugly hack around "IMPOSSIBLE_TO_DOWNLOAD+1". we should unhack that sometime. svn:r17834
2008-12-31fix a bug in download failure logging; don't do this "stopRoger Dingledine
downloading forever" thing with bridge descriptor downloads. svn:r17833
2008-12-30Debug code for task 878.Karsten Loesing
svn:r17828
2008-12-30Remove some code that is #ifdefed out, and that we no longer seem to use, if ↵Nick Mathewson
we ever did. svn:r17827
2008-12-30Indeed, arma was right. There was one ntohl too many in debug_ntop in ↵Nick Mathewson
eventdns.c svn:r17826
2008-12-30point out the bug location to nick. unless i'm wrong.Roger Dingledine
svn:r17825
2008-12-29Downgrade some xxx021s, comment more on others, etcNick Mathewson
svn:r17823
2008-12-29Actually log reasons on unusable guards again.Nick Mathewson
svn:r17822
2008-12-29Spec compliance: if weighted MTBF of a router is at least 5 days, always ↵Nick Mathewson
vote it as Stable. svn:r17821
2008-12-29Refactor sockaddr family match check into a new functionNick Mathewson
svn:r17820
2008-12-29Explain why the XXXX021 in connection_or.c was there, and explain why it ↵Nick Mathewson
doesn' actually need to get fixed in 0.2.1, I think. svn:r17819
2008-12-29Replace kludgy assert with something a little less awful, and avoid needless ↵Nick Mathewson
strlcpy in rend descriptor encoding. svn:r17818
2008-12-29Downgrade the last xxx021 in routerparse. The duplicate code stands for now.Nick Mathewson
svn:r17817
2008-12-29Do not not cannibalize a circuit that has run out of RELAY_EARLY cells. ↵Nick Mathewson
Partial bug 878 fix. svn:r17815
2008-12-29Do not cannibalize a circuit that has run out of RELAY_EARLY cells. Partial ↵Nick Mathewson
bug 878 fix. svn:r17814
2008-12-29Extact parse-the-token-arguments to its own function, and change it to a ↵Nick Mathewson
single-pass algorithm. This simplifies the parsing code and speeds it up a little. svn:r17812
2008-12-29Remove a call to find_whitespace_eos that didn't actually do anything.Nick Mathewson
svn:r17811
2008-12-29While I'm at it, refactor control.c a little so that the dead code no longer ↵Nick Mathewson
exists. svn:r17810
2008-12-29coverity thinks it's dumb to check networkstatus_v2_list in one place and ↵Nick Mathewson
not another. Coverity has a point, even though the check may be redundant. CID 361. svn:r17809
2008-12-29More compilation tweaks on Android: fix two clear errors in our code that ↵Nick Mathewson
apparently the compiler cares about there. svn:r17808
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