aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-19Add unit tests for networkstatus_consensus_is_bootstrappingteor (Tim Wilson-Brown)
2016-05-19Restore and improve download schedule unit teststeor (Tim Wilson-Brown)
2016-05-19Update unit tests for multiple bootstrap connectionsteor (Tim Wilson-Brown)
2016-05-19Remove consensus_max_download_tries by refactoringteor (Tim Wilson-Brown)
No behaviour change This function is used twice. The code is simpler if we split it up and inline it where it is used.
2016-05-19Changes file for bug 18809teor (Tim Wilson-Brown)
2016-05-19Stop downloading consensuses when a consensus has been downloadedteor (Tim Wilson-Brown)
Previosuly, during bootstrap, we would continue to download consensuses if we had a consensus, but didn't have the certificates to validate it.
2016-05-10get rid of another no-longer-used functionRoger Dingledine
2016-05-09stop looping once we know what the answer will beRoger Dingledine
suggested during code review by dgoulet
2016-05-09fix a bug where relays would use the aggressive client bootstrapping retry ↵Roger Dingledine
number
2016-05-09simplify more -- we only call these funcs when bootstrappingRoger Dingledine
2016-05-09remove some more unused codeRoger Dingledine
2016-05-09avoid another redundant checkRoger Dingledine
we should avoid launching a consensus fetch if we don't want one, but if we do end up with an extra one, we should let the other checks take care of it.
2016-05-09get rid of the scattered checks to cancel a consensus fetchRoger Dingledine
We'll back off from the request in connection_ap_handshake_attach_circuit, or cancel it in connection_dir_close_consensus_fetches, and those are the only places we need to check.
2016-05-09close other consensus fetches when we get a consensusRoger Dingledine
not once per second, and only do it when a consensus arrives
2016-05-09use the new function here tooRoger Dingledine
2016-05-09avoid following through on a consensus fetch if we have one already arrivingRoger Dingledine
2016-05-09fix typos/etc before i go nuts on #18809Roger Dingledine
2016-05-05Refactor router_pick_directory_server_impl to use node functionsteor (Tim Wilson-Brown)
No behavioural change This makes the use of the node explicit in the function, rather than hiding the node lookup in fascist_firewall_allows_rs.
2016-05-05Comment-only change to clarify routerstatus_t IPv4 byte orderteor (Tim Wilson-Brown)
2016-05-05Rename skip_or and skip_dir to avoid confusionteor (Tim Wilson-Brown)
Variable rename only
2016-05-05Merge branch 'feature18483-028-v2-squashed' into maint-0.2.8Nick Mathewson
2016-05-05Only choose directory DirPorts on relaysteor (Tim Wilson-Brown)
2016-05-05Make clients only select directories with reachable ORPortsteor (Tim Wilson-Brown)
This makes sure clients will only select relays which support begindir over ORPort.
2016-05-05Make clients always use begindir for directory requeststeor (Tim Wilson-Brown)
This improves client anonymity and avoids directory header tampering. The extra load on the authorities should be offset by the fallback directories feature. This also simplifies the fixes to #18809.
2016-05-05Make directory node selection more reliableteor (Tim Wilson-Brown)
Delete an unnecessary check for non-preferred IP versions. Allows clients which can't reach any directories of their preferred IP address version to get directory documents. Patch on #17840 in 0.2.8.1-alpha.
2016-05-04Merge branch 'bug18921_squashed' into maint-0.2.8Nick Mathewson
2016-05-04Choose the correct address for one-hop connectionsteor (Tim Wilson-Brown)
After #17840 in 0.2.8.1-alpha, we incorrectly chose an IPv4 address for all DIRIND_ONEHOP directory connections, even if the routerstatus didn't have an IPv4 address. This likely affected bridge clients with IPv6 bridges. Resolves #18921.
2016-05-04Merge branch 'doc18312' into maint-0.2.8Nick Mathewson
2016-05-04Merge branch 'bug18686_025' into maint-0.2.8Nick Mathewson
2016-05-04Report success when not terminating an already terminated process.Nick Mathewson
Also, document the actual behavior and return values of tor_terminate_process. Fixes bug18686; bugfix on 0.2.3.9-alpha.
2016-05-04Merge branch 'bug18710_025' into maint-0.2.8Nick Mathewson
2016-05-04Fix dnsserv.c assertion when no supported questions are requested.Scott Dial
The problem is that "q" is always set on the first iteration even if the question is not a supported question. This set of "q" is not necessary, and will be handled after exiting the loop if there if a supported q->type was found. [Changes file by nickm] lease enter the commit message for your changes. Lines starting
2016-05-03Fix keccak-tiny portability on `exotic` platforms.Yawning Angel
* SHA-3/SHAKE use little endian for certain things, so byteswap as needed. * The code was written under the assumption that unaligned access to quadwords is allowed, which isn't true particularly on non-Intel.
2016-05-02(cherry-picked by nickm, with changes file from isis.)s0rlxmh0
2016-04-26Do not recommend use of nicknames in MapAddress manpageNick Mathewson
2016-04-26Whitelist additional fallbacks after creating April 2016 listteor (Tim Wilson-Brown)
2016-04-26Report fallback directory detail changes when rebuilding listteor (Tim Wilson-Brown)
As well as the existing reports of IPv6 address additions or removals, the script now warns when keys change but IPv4:ORPort or IPv6:IPv6ORPort remain the same. Existing checks for other whitelist detail changes have also been re-worded and upgraded to warnings. This makes it easier for changes to be identified so operators can be contacted to confirm whether the change is stable.
2016-04-26Changes for #17158, #17905, #18689, #18749 & April 2016 fallbacksteor (Tim Wilson-Brown)
2016-04-26April 2016 fallbacks for 0.2.8-rcteor (Tim Wilson-Brown)
2016-04-26Add fallbacks to white/blacklist from operator responsesteor (Tim Wilson-Brown)
Also add misbehaving relays to updateFallbackDirs.py blacklist, but leave them commented out in case it's a transient issue, or it's been resolved by the download check fixes. (These relays hang stem's downloader. It's unlikely they'll ever help clients.)
2016-04-15Limit fallbacks from the same operatorteor (Tim Wilson-Brown)
Use IP address, effective family, and contact info to discover and limit fallbacks to one per operator. Also analyse netblock, ports, IP version, and Exit flag, and print the results. Don't exclude any fallbacks from the list because of netblocks, ports, IP version, or Exit flag.
2016-04-15Simplify fallback list outputteor (Tim Wilson-Brown)
When creating the list of fallbacks for a release: * don't output fallback name and contact * sort fallbacks by fingerprint
2016-04-15Select fallbacks by bandwidth rather than consensus weightteor (Tim Wilson-Brown)
But as advertised bandwidth is controlled by relays, use consensus weight and median weight to bandwidth ratio to approximate measured bandwidth. Includes minor comment changes and parameter reordering.
2016-04-15Only count active fallbacks in updateFallbackDirs.pyteor (Tim Wilson-Brown)
Previously, we would cut the list down to 100 fallbacks, then check if they could serve a consensus, and comment them out if they couldn't. This would leave us with fewer than 100 active fallbacks. Now, we stop when there are 100 active fallbacks. Also count fallbacks with identical contact info. Also fix minor logging issues.
2016-04-15Remove fallback directory weightsteor (Tim Wilson-Brown)
Give each fallback a set weight of 10.0 for client selection. Fallbacks must have at least 3000 consensus weight. This is (nominally) 100 times the expected extra load of 20 kilobytes per second (50 GB per month). Fixes issue #17905.
2016-04-15Improve fallback selection and outputteor (Tim Wilson-Brown)
Improve the download test: * Allow IPv4 DirPort checks to be turned off. * Add a timeout to stem's consensus download. * Actually check for download errors, rather than ignoring them. * Simplify the timeout and download error checking logic. Tweak whitelist/blacklist checks to be more robust. Improve logging, make it warn by default. Cleanse fallback comments more thoroughly: * non-printables (yes, ContactInfo can have these) * // comments (don't rely on newlines to prevent // */ escapes)
2016-04-12Merge remote-tracking branch 'public/bug18716_027' into maint-0.2.8Nick Mathewson
2016-04-07memarea: Don't assume that sizeof(ulong) >= sizeof(void*).Nick Mathewson
Fixes bug 18716; bugfix on 0.2.1.1-alpha where memarea.c was introduced. Found by wbenny.
2016-04-07Turn TestingClientBootstrap* into non-testing optionsDavid Goulet
This changes simply renames them by removing "Testing" in front of them and they do not require TestingTorNetwork to be enabled anymore. Fixes #18481 Signed-off-by: David Goulet <dgoulet@ev0ke.net>
2016-04-07Merge branch 'maint-0.2.7' into maint-0.2.8Nick Mathewson