summaryrefslogtreecommitdiff
path: root/src/or
AgeCommit message (Collapse)Author
2013-03-15Merge remote-tracking branch 'public/bug8180_023_v2' into maint-0.2.4Nick Mathewson
2013-03-15Upgrade the warn for EntryNodes without UseEntryGuards to an errorNick Mathewson
fixes bug 8180
2013-03-15Merge remote-tracking branch 'public/unused_stuff' into maint-0.2.4Nick Mathewson
2013-03-14Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTINGNick Mathewson
2013-03-10start part-way through the ssl cert lifetimeRoger Dingledine
also, snap the start time and end time to a day boundary, since most certs in the wild seem to do this.
2013-03-10randomize SSLKeyLifetime by defaultRoger Dingledine
resolves ticket 8443.
2013-03-10parameterize SSLKeyLifetimeRoger Dingledine
no actual changes in behavior yet
2013-03-10Merge remote-tracking branch 'arma/bug6783_big_hammer' into maint-0.2.4Nick Mathewson
2013-03-10Fix typos in a few log messagesBenjamin Kerensa
2013-03-10set DisableV2DirectoryInfo_ off by defaultRoger Dingledine
since it's only enableable by authorities, nobody else would be able to start their tor
2013-03-10Tweak bug6783 patch.Nick Mathewson
2013-03-10Add a DisableV2DirectoryInfo_ option to 404 all v2 ns requestsNick Mathewson
I have no idea whether b0rken clients will DoS the network if the v2 authorities all turn this on or not. It's experimental. See #6783 for a description of how to test it more or less safely, and please be careful!
2013-03-10Fix 8447: use %u to format circid_t.Nick Mathewson
Now that circid_t is 4 bytes long, the default integer promotions will leave it alone when sizeof(int) == 4, which will leave us formatting an unsigned as an int. That's technically undefined behavior. Fixes bug 8447 on bfffc1f0fc7616a25c32da2eb759dade4651659e. Bug not in any released Tor.
2013-03-01Correctly set entry->is_dir_cache when adding an entry guard for the first timeAndrea Shepard
(Second part of a bug8367 fix. -NM)
2013-03-01Fix bootstrapping with bridges by making is_dir_cache is set on them.Nick Mathewson
This fixes bug 8367, introduced in d7089ff228227259137b5a8b. Not in any released Tor.
2013-02-25Fix a comment in tor_main.cNick Mathewson
We don't use subversion or src/*/makefile.am any longer
2013-02-23Remove some totally unused functionsNick Mathewson
2013-02-23Remove a bunch of unused macro definitionsNick Mathewson
2013-02-19fix a wide lineNick Mathewson
2013-02-19Merge branch 'bug8065_v2'Nick Mathewson
2013-02-19Downgrade an assert to LD_BUGNick Mathewson
This should prevent crashes on further recurrence of 8065, and help diagnose such if they occur
2013-02-19Merge branch 'bug2286_unit_test_squashed'Nick Mathewson
2013-02-19Refactor storing of measured_bw versus Unmeasured=1.Nick Mathewson
This patch moves the measured_bw field and the has_measured_bw field into vote_routerstatus_t, since only votes have 'Measured=XX' set on their weight line. I also added a new bw_is_unmeasured flag to routerstatus_t to represent the Unmeasured=1 flag on a w line. Previously, I was using has_measured_bw for this, which was quite incorrect: has_measured_bw means that the measured_bw field is set, and it's probably a mistake to have it serve double duty as meaning that 'baandwidth' represents a measured value. While making this change,I also found a harmless but stupid bug in dirserv_read_measured_bandwidths: It assumes that it's getting a smartlist of routerstatus_t, when really it's getting a smartlist of vote_routerstatus_t. C's struct layout rules mean that we could never actually get an error because of that, but it's still quite incorrect. I fixed that, and in the process needed to add two more sorting and searching helpers. Finally, I made the Unmeasured=1 flag get parsed. We don't use it for anything yet, but someday we might. This isn't complete yet -- the new 2286 unit test doesn't build.
2013-02-19Add unit test for unmeasured bandwidth clipping in consensusAndrea Shepard
2013-02-19Note some annoyinc copy-and-paste codeNick Mathewson
2013-02-19Tweak consensus method 17 based on arma's commentsNick Mathewson
Instead of capping whenever a router has fewer than 3 measurements, we cap whenever a router has fewer than 3 measurements *AND* there are at least 3 authorities publishing measured bandwidths. We also generate bandwidth lines with a new "Unmeasured=1" flag, meaning that we didn't have enough observations for a node to use measured bandwidth values in the authority's input, whether we capped it or not.
2013-02-19touchups on 78582760Roger Dingledine
2013-02-19Revise some comments in router.cNick Mathewson
Avoid the phrase "legally valid" (as opposed to valid but not legal)? And document what functions really do. Fix for bug 6935.
2013-02-15Fix a bug that roger found in the wide_circ_id codeNick Mathewson
2013-02-15Merge remote-tracking branch 'public/bug8207'Nick Mathewson
2013-02-15Merge remote-tracking branch 'public/wide_circ_ids'Nick Mathewson
Conflicts: src/or/channel.h src/or/connection_or.c src/or/cpuworker.c
2013-02-15make check-spacesNick Mathewson
2013-02-15Merge remote-tracking branch 'public/feature4994-rebased'Nick Mathewson
2013-02-14Authorities were adding downtime for every relay every restartRoger Dingledine
Stop marking every relay as having been down for one hour every time we restart a directory authority. These artificial downtimes were messing with our Stable and Guard flag calculations. Fixes bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
2013-02-14Merge remote-tracking branch 'arma/bug1992'Nick Mathewson
2013-02-12Restore the entry/dirguard distinction.Nick Mathewson
We shouldn't be calling choose_random_entry() for directory conncetions; that's what choose_random_dirguard() is for.
2013-02-12oops; add a missing semicolonNick Mathewson
(Cherry-picked from fc35ee4910326dc1ae718482b30e57666a71df85)
2013-02-12get rid of the new caching notion in resolve_my_address()Roger Dingledine
and replace it with the good old-fashioned two functions approach
2013-02-11simplify timing checksRoger Dingledine
now that both timers are on the same schedule, there's no point tracking separate timers.
2013-02-11Check for IP address change every minute, not 15 minutesRoger Dingledine
Relays used to check every 10 to 60 seconds, as an accidental side effect of calling directory_fetches_from_authorities() when considering doing a directory fetch. The fix for bug 1992 removes that side effect. At the same time, bridge relays never had the side effect, leading to confused bridge operators who tried crazy tricks to get their bridges to notice IP address changes (see ticket 1913). The new behavior is to reinstate an every-60-seconds check for both public relays and bridge relays, now that the side effect is gone.
2013-02-11Stop trying to resolve our hostname so oftenRoger Dingledine
For example, we were doing a resolve every time we think about doing a directory fetch. Now we reuse the cached answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc) and 2410 (bugfix on 0.1.2.2-alpha).
2013-02-11Teach resolve_my_address() to return a cached answerRoger Dingledine
I didn't make any of the callers use this feature yet.
2013-02-11Fix two more coverity-spotted leaks in master.Nick Mathewson
One is a probably-impossible leak if we fail to sign a consensus; another occurs when we can't look up the user we're trying to chown our sockets to.
2013-02-11Avoid null-pointer deref in pathbias_is_new_circ_attemptNick Mathewson
Coverity is worried about this (CID 980653). It hasn't happened in testing, but we might as well make sure it can't happen.
2013-02-11Fix a nigh-impossible overflow in cpuworker.cNick Mathewson
When we compute the estimated microseconds we need to handle our pending onionskins, we could (in principle) overflow a uint32_t if we ever had 4 million pending onionskins before we had any data about how onionskins take. Nevertheless, let's compute it properly. Fixes bug 8210; bugfix on 0.2.4.10. Found by coverity; this is CID 980651.
2013-02-11oops; add a missing semicolonNick Mathewson
2013-02-11Merge remote-tracking branch 'public/bug7816_023'Nick Mathewson
2013-02-11Fix another memory leakNick Mathewson
This one occurs when changing configuration options. Found by coverity.
2013-02-11Merge remote-tracking branch 'public/bug8208'Nick Mathewson
2013-02-11Check whether ei is non-NULL before altering it.Nick Mathewson
This fixes a crash bug if we fail to generate an extrainfo descriptor. Fixes bug 8208; bugfix on 0.2.3.16-alpha.