1. 27 Sep, 2018 1 commit
    • Nick Mathewson's avatar
      Move the predicted ports code out of rephist.c · 241c1505
      Nick Mathewson authored
      It differs from the rest of the rephist code in that it's actually
      necessary for Tor to operate, so it should probably go somewhere
      else.  I'm not sure where yet, so I'll leave it in the same
      directory, but give it its own file.
      241c1505
  2. 25 Sep, 2018 3 commits
  3. 21 Sep, 2018 1 commit
  4. 28 Aug, 2018 3 commits
  5. 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
  6. 03 Jul, 2018 1 commit
  7. 28 Jun, 2018 2 commits
  8. 20 Jun, 2018 2 commits
  9. 15 Jun, 2018 6 commits
  10. 09 May, 2018 1 commit
    • Mike Perry's avatar
      Bug 25903: Perform accounting for new CIRC_BW fields. · e07e95ed
      Mike Perry authored
      Two new values in each direction. DELIVERED counts valid end-to-end circuit
      data that is accepted by our end and OVERHEAD counts the slack unused data in
      each of the relay command cells for those accepted cells.
      
      Control port changes are in the next commit.
      e07e95ed
  11. 01 May, 2018 1 commit
  12. 22 Apr, 2018 1 commit
    • Nick Mathewson's avatar
      Check for "the right descriptor", not just "any descriptor". · 948dd2c7
      Nick Mathewson authored
      This patch adds a new node_has_preferred_descriptor() function, and
      replaces most users of node_has_descriptor() with it.  That's an
      important change, since as of d1874b43 (our fix for #25213),
      we are willing to say that a node has _some_ descriptor, but not the
      _right_ descriptor for a particular use case.
      
      Part of a fix for 25691 and 25692.
      948dd2c7
  13. 11 Apr, 2018 1 commit
  14. 20 Feb, 2018 1 commit
    • Nick Mathewson's avatar
      Remove a bunch of other redundant #includes · 4438ef32
      Nick Mathewson authored
      Folks have found two in the past week or so; we may as well fix the
      others.
      
      Found with:
      
      \#!/usr/bin/python3
      import re
      
      def findMulti(fname):
          includes = set()
          with open(fname) as f:
              for line in f:
                  m = re.match(r'^\s*#\s*include\s+["<](\S+)[>"]', line)
                  if m:
                      inc = m.group(1)
                      if inc in includes:
                          print("{}: {}".format(fname, inc))
                      includes.add(m.group(1))
      
      import sys
      for fname in sys.argv[1:]:
          findMulti(fname)
      4438ef32
  15. 07 Feb, 2018 1 commit
  16. 05 Feb, 2018 1 commit
  17. 01 Feb, 2018 1 commit
    • Caio Valente's avatar
      refactor: rename connection_t struct fields. · 7884ce76
      Caio Valente authored
      connection_t.timestamp_lastwritten renamed to
      connection_t.timestamp_last_write_allowed
      
      connection_t.timestamp_lastread renamed to
      connection_t.timestamp_last_read_allowed
      
      Closes ticket 24714.
      7884ce76
  18. 31 Jan, 2018 1 commit
  19. 26 Jan, 2018 1 commit
  20. 24 Jan, 2018 1 commit
  21. 23 Jan, 2018 1 commit
  22. 20 Jan, 2018 1 commit
  23. 19 Jan, 2018 3 commits
  24. 13 Dec, 2017 1 commit
    • teor's avatar
      Simplify some conditionals in circuit_get_open_circ_or_launch() · 6b5c7067
      teor authored and Nick Mathewson's avatar Nick Mathewson committed
      When entry_list_is_constrained() is true, guards_retry_optimistic()
      always returns true.
      
      When entry_list_is_constrained() is false,
      options->UseBridges is always false,
      therefore !options->UseBridges is always true,
      therefore (!options->UseBridges || ...) is always true.
      
      Cleanup after #24367.
      6b5c7067
  25. 07 Dec, 2017 2 commits