1. 21 Sep, 2018 1 commit
    • Nick Mathewson's avatar
      Split main.c into main.c and mainloop.c · c7ce6b98
      Nick Mathewson authored
      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.
      c7ce6b98
  2. 05 Jul, 2018 2 commits
    • Nick Mathewson's avatar
      Fix every include path changed in the previous commit (automated) · ef486e3c
      Nick Mathewson authored
      I am very glad to have written this script.
      ef486e3c
    • Nick Mathewson's avatar
      Move literally everything out of src/or · 63b4ea22
      Nick Mathewson authored
      This commit won't build yet -- it just puts everything in a slightly
      more logical place.
      
      The reasoning here is that "src/core" will hold the stuff that every (or
      nearly every) tor instance will need in order to do onion routing.
      Other features (including some necessary ones) will live in
      "src/feature".  The "src/app" directory will hold the stuff needed
      to have Tor be an application you can actually run.
      
      This commit DOES NOT refactor the former contents of src/or into a
      logical set of acyclic libraries, or change any code at all.  That
      will have to come in the future.
      
      We will continue to move things around and split them in the future,
      but I hope this lays a reasonable groundwork for doing so.
      63b4ea22
  3. 01 Jul, 2018 1 commit
  4. 21 Jun, 2018 1 commit
  5. 20 Jun, 2018 2 commits
  6. 15 Jun, 2018 1 commit
  7. 17 Apr, 2018 1 commit
    • David Goulet's avatar
      heartbeat: Log the number of circuits killed because too many cells · 93ff1870
      David Goulet authored and Nick Mathewson's avatar Nick Mathewson committed
      
      
      We recently merged a circuit cell queue size safeguard. This commit adds the
      number of killed circuits that have reached the limit to the DoS heartbeat. It
      now looks like this:
      
        [notice] DoS mitigation since startup: 0 circuits killed with too many
        cells. 0 circuits rejected, 0 marked addresses. 0 connections closed. 0
        single hop clients refused.
      
      Second thing that this patch does. It makes tor always print the DoS
      mitigation heartbeat line (for a relay) even though no DoS mitigation have
      been enabled. The reason is because we now kill circuits that have too many
      cells regardless on if it is enabled or not but also it will give the operator
      a chance to learn what is enabled with the heartbeat instead of suddenly
      appearing when it is enabled by let say the consensus.
      
      Fixes #25824
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      93ff1870
  8. 06 Apr, 2018 1 commit
  9. 13 Feb, 2018 2 commits
  10. 09 Feb, 2018 1 commit
    • David Goulet's avatar
      dos: Exclude known relays from client connection count · 666582a6
      David Goulet authored
      
      
      This is to avoid positively identifying Exit relays if tor client connection
      comes from them that is reentering the network.
      
      One thing to note is that this is done only in the DoS subsystem but we'll
      still add it to the geoip cache as a "client" seen. This is done that way so
      to avoid as much as possible changing the current behavior of the geoip client
      cache since this is being backported.
      
      Closes #25193
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      666582a6
  11. 02 Feb, 2018 1 commit
  12. 31 Jan, 2018 1 commit
  13. 30 Jan, 2018 9 commits