aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voteflags.c
AgeCommit message (Collapse)Author
2020-06-26Remove special authority semantics for AssumeReachable.Nick Mathewson
AssumeReachable should only be about whether a relay thinks that it is reachable itself. But previously, we've had it also turn off reachability checking of _other_ relays on authorities. (Technically, reachability tests were still run, but we would ignore the results.) With this patch, there is a new AuthDirTestReachability option (default 1) that controls whether authorities run reachability tests. Making this change allows us to have test networks where authorities set AssumeReachable without disabling their reachability testing entirely. Closes ticket #34445.
2020-01-17Merge branch 'ticket32806'Nick Mathewson
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-12-19Move TestingDirVote{Exit,Guard,HSdir}{,IsStrict} to dirauth moduleNick Mathewson
2019-12-19Move TestingMin{Exit,Fast}FlagThreshold to dirauth module.Nick Mathewson
2019-12-19Move TestingDirAuthTimeToLearnReachability into dirauth module.Nick Mathewson
2019-12-19Move MinMeasuredBWsForAuthToIgnoreAdvertised to dirauth module.Nick Mathewson
2019-12-19Move MinUptimeHidServDirectoryV2 to dirauth module.Nick Mathewson
2019-12-19Move AuthDirHasIPv6Connectivity into dirauth module.Nick Mathewson
2019-12-19Move BW-guarantee options in to dirauth module.Nick Mathewson
2019-05-02Move voteflags.[ch] to become dirauth only.Nick Mathewson
For various reasons, this was a nontrivial movement. There are several places in the code where we do something like "update the flags on this routerstatus or node if we're an authority", and at least one where we pretended to be an authority when we weren't.
2019-04-26Make nodelist_get_list() return a const pointer.Nick Mathewson
2019-04-11Move code for setting bridges as running to voteflags.cNeel Chauhan
2019-02-22When a DirAuth checks reachability on itself and has IPv6, mark it as reachableNeel Chauhan
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-12-03Make input argument const in set_routerstatus_from_routerinfo.Nick Mathewson
2018-11-25Vote on the StaleDesc flag from prop293Nick Mathewson
The StaleDesc flag tells relays that they need to upload a new descriptor soon, or they will drop out of the consensus.
2018-09-21Split main.c into main.c and mainloop.cNick Mathewson
The main.c code is responsible for initialization and shutdown; the mainloop.c code is responsible for running the main loop of Tor. Splitting the "generic event loop" part of mainloop.c from the event-loop-specific part is not done as part of this patch.
2018-09-20Split most of dirserv.c into several new modulesNick Mathewson
In dirauth: * bwauth.c reads and uses bandwidth files * guardfraction.c reads and uses the guardfraction file * reachability.c tests relay reachability * recommend_pkg.c handles the recommended-packages lines. * recv_descs.c handles fingerprint files and processing incoming routerinfos that relays upload to us * voteflag.c computes flag thresholds and sets those thresholds on routerstatuses when computing votes In control: * fmt_serverstatus.c generates the ancient "v1 server status" format that controllers expect. In nodelist: * routerstatus_fmt.c formats routerstatus entries for a consensus, a vote, or for the controller.