aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
Commit message (Expand)AuthorAge
* make check-spacesNick Mathewson2013-02-15
* get rid of the new caching notion in resolve_my_address()•••and replace it with the good old-fashioned two functions approach Roger Dingledine2013-02-12
* Teach resolve_my_address() to return a cached answer•••I didn't make any of the callers use this feature yet. Roger Dingledine2013-02-11
* Merge remote-tracking branch 'public/bug7816_023'Nick Mathewson2013-02-11
|\
| * Fix another memory leak•••This one occurs when changing configuration options. Found by coverity. Nick Mathewson2013-02-11
* | Avoid generating extra spaces when explaining how we guessed our addressNick Mathewson2013-02-11
* | Refactor resolve_my_address() so logs are more accurate / helpful•••It returns the method by which we decided our public IP address (explicitly configured, resolved from explicit hostname, guessed from interfaces, learned by gethostname). Now we can provide more helpful log messages when a relay guesses its IP address incorrectly (e.g. due to unexpected lines in /etc/hosts). Resolves ticket 2267. While we're at it, stop sending a stray "(null)" in some cases for the server status "EXTERNAL_ADDRESS" controller event. Resolves bug 8200. Roger Dingledine2013-02-11
* | Merge remote-tracking branch 'public/feature7706'Nick Mathewson2013-02-01
|\ \
| * | When excluding nodes by country, exclude {??} and {A1} too•••This is ticket 7706, reported by "bugcatcher." The rationale here is that if somebody says 'ExcludeNodes {tv}', then they probably don't just want to block definitely Tuvaluan nodes: they also want to block nodes that have unknown country, since for all they know such nodes are also in Tuvalu. This behavior is controlled by a new GeoIPExcludeUnknown autobool option. With the default (auto) setting, we exclude ?? and A1 if any country is excluded. If the option is 1, we add ?? and A1 unconditionally; if the option is 0, we never add them. (Right now our geoip file doesn't actually seem to include A1: I'm including it here in case it comes back.) This feature only takes effect if you have a GeoIP file. Otherwise you'd be excluding every node. Nick Mathewson2013-01-17
* | | Bounds-check path bias rate parameters.•••The other remaining parameters don't really need range checks. Mike Perry2013-02-01
* | | Refactor the scaling parameter fetching into a single function.•••Also, deprecate the torrc options for the scaling values. It's unlikely anyone but developers will ever tweak them, even if we provided a single ratio value. Mike Perry2013-02-01
* | | Rename log() to tor_log() for logging•••This is meant to avoid conflict with the built-in log() function in math.h. It resolves ticket 7599. First reported by dhill. This was generated with the following perl script: #!/usr/bin/perl -w -i -p s/\blog\(LOG_(ERR|WARN|NOTICE|INFO|DEBUG)\s*,\s*/log_\L$1\(/g; s/\blog\(/tor_log\(/g; Nick Mathewson2013-02-01
* | | Merge branch 'bug5956_squashed'Nick Mathewson2013-01-30
|\ \ \
| * | | Parameterize FRAC_USABLE_NEEDED for fraction of circuits•••Instead of hardcoding the minimum fraction of possible paths to 0.6, we take it from the user, and failing that from the consensus, and failing that we fall back to 0.6. Nick Mathewson2013-01-30
| |/ /
* | | Merge branch 'bug7802' of ssh://git-rw.torproject.org/mikeperry/torAndrea Shepard2013-01-28
|\ \ \
| * | | Implement Path use bias accounting.•••Path use bias measures how often we can actually succeed using the circuits we actually try to use. It is a subset of path bias accounting, but it is computed as a separate statistic because the rate of client circuit use may vary depending on use case. Mike Perry2013-01-18
| |/ /
* | | Merge branch 'time_based_onionqueue_v2' of ssh://git-rw.torproject.org/nickm/torAndrea Shepard2013-01-24
|\ \ \ | |/ / |/| |
| * | Eliminate MaxOnionsPending; replace it with MaxOnionQueueDelay•••The right way to set "MaxOnionsPending" was to adjust it until the processing delay was appropriate. So instead, let's measure how long it takes to process onionskins (sampling them once we have a big number), and then limit the queue based on its expected time to finish. This change is extra-necessary for ntor, since there is no longer a reasonable way to set MaxOnionsPending without knowing what mix of onionskins you'll get. This patch also reserves 1/3 of the onionskin spots for ntor handshakes, on the theory that TAP handshakes shouldn't be allowed to starve their speedier cousins. We can change this later if need be. Resolves 7291. Nick Mathewson2013-01-03
* | | Update the copyright date to 201.Nick Mathewson2013-01-16
|/ /
* | Merge branch 'ntor-resquashed'•••Conflicts: src/or/cpuworker.c src/or/or.h src/test/bench.c Nick Mathewson2013-01-03
|\ \
| * | Enable the ntor handshake on the client side.•••"works for me" Nick Mathewson2013-01-03
* | | Avoid spurious local-port warnings•••Our old warn_nonlocal_client_ports() would give a bogus warning for every nonlocal port every time it parsed any ports at all. So if it parsed a nonlocal socksport, it would complain that it had a nonlocal socksport...and then turn around and complain about the nonlocal socksport again, calling it a nonlocal transport or nonlocal dnsport, if it had any of those. Fixes bug 7836; bugfix on 0.2.3.3-alpha. Nick Mathewson2013-01-02
* | | Merge remote-tracking branch 'mikeperry/209-path-bias-changes'Nick Mathewson2012-12-25
|\ \ \
| * | | Changes from Nick's code review 'part 1'•••I think this is actually his third code review of this branch so far. Mike Perry2012-12-18
| * | | Prop 209: Add path bias counts for timeouts and other mechanisms.•••Turns out there's more than one way to block a tagged circuit. This seems to successfully handle all of the normal exit circuits. Hidden services need additional tweaks, still. Mike Perry2012-12-07
| * | | Update with code review changes from Nick.Mike Perry2012-12-07
| * | | Update pathbias parameters to match Proposal 209.•••Needs manpage update and testing still.. Mike Perry2012-12-07
| |/ /
* | | Add configuration options for directory guards•••In addition to all the other ways to make directory gurads not go, you can now set UseEntryGuardsAsDirGuards to 0. Nick Mathewson2012-12-25
* | | Make ECDHE group configurable: 224 for public, 256 for bridges (default)Nick Mathewson2012-12-25
* | | Per-listener option to prefer IPv6 automaps when possible.Nick Mathewson2012-12-17
* | | Build and test most of the machinery needed for IPv6 virtualaddrmaps•••With an IPv6 virtual address map, we can basically hand out a new IPv6 address for _every_ address we connect to. That'll be cool, and will let us maybe get around prop205 issues. This uses some fancy logic to try to make the code paths in the ipv4 and the ipv6 case as close as possible, and moves to randomly generated addresses so we don't need to maintain those stupid counters that will collide if Tor restarts but apps don't. Also has some XXXX items to fix to make this useful. More design needed. Nick Mathewson2012-12-17
* | | Turn off by-default use of client-side DNS cacheing.Nick Mathewson2012-12-17
* | | Refactor port_cfg_t creation into a port_cfg_new() function•••This function gives us a single place to set reasonable default flags for port_cfg_t entries, to avoid bugs like the one where we weren't setting ipv4_traffic_ok to 1 on SocksPorts initialized in an older way. Nick Mathewson2012-12-17
* | | Add options to turn DNS cache use on or off per client port.•••(This is part 1 of making DNS cache use enabled/disabled on a per-client port basis. These options are shuffled around correctly, but don't do anything yet.) Nick Mathewson2012-12-17
* | | Oops; make DNSPort configuration take address family optionsNick Mathewson2012-12-17
* | | Fix two wide lines in config.cNick Mathewson2012-12-13
* | | Drop FallbackNetworkstatusFile; it never worked.Nick Mathewson2012-12-06
* | | Add an option to weight down authorities when choosing a fallbackNick Mathewson2012-12-06
* | | Add a way to configure selection weights for dir_server_tNick Mathewson2012-12-06
* | | New FallbackDir option to add extra directories for bootstraping•••This replaces the old FallbackConsensus notion, and should provide a way -- assuming we pick reasonable nodes! -- to give clients suggestions of placs to go to get their first consensus. Nick Mathewson2012-12-06
* | | Refactor add_trusted_dir_server•••Now creating a dir_server_t and adding it are separate functions, and there are frontend functions for adding a trusted dirserver and a fallback dirserver. Nick Mathewson2012-12-06
* | | Rename DirServer to DirAuthorityNick Mathewson2012-12-06
* | | Start refactoring trusted_dir_servers into trusted and fallback lists•••We use trusted_dir_server_t for two pieces of functionality: a list of all directory authorities, and a list of initial places to look for a directory. With this patch we start to separate those two roles. There is as of now no actual way to be a fallback directory without being an authority. Nick Mathewson2012-12-06
|/ /
* | Merge branch 'bug7013_take2_squashed'Nick Mathewson2012-11-27
|\ \
| * | Introduce tor_addr_port_parse() and use it to parse ServerTransportListenAddr.George Kadianakis2012-11-27
| * | Add a torrc option to specify the bind address of managed proxies.George Kadianakis2012-11-27
* | | Give useful warning when both IPv4 and IPv6 are disabled on a socksportNick Mathewson2012-11-15
* | | Allow IPv4 traffic on default and old-style-config SocksPorts.•••Looks like when i was writing the code to set the ipv4_traffic flag on port_cfg_t, I missed some cases, such as the one where the port was set from its default value. Fix for 7493. Bug not in any released Tor. Nick Mathewson2012-11-15
* | | Implement a PreferIPv6 flag for SocksPortsNick Mathewson2012-11-14
* | | Whitespace cleanupNick Mathewson2012-11-14