aboutsummaryrefslogtreecommitdiff
path: root/src/or/geoip.c
Commit message (Expand)AuthorAge
...
* | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-04-07
|\| |
| * | Allow controllers a more up-to-date view of bridge usage.•••Instead of answering GETINFO requests about our geoip usage only after running for 24 hours, this patch makes us answer GETINFO requests immediately. We still round and quantize as before. Implements bug2711. Also, refactor the heck out of the bridge usage formatting code. No longer should we need to do a generate-parse-and-regenerate cycle to get the controller string, and that lets us simplify the code a lot. Nick Mathewson2011-04-07
| |/
* | Merge remote branch 'origin/maint-0.2.2'•••Trivial Conflicts: configure.in Nick Mathewson2011-03-18
|\|
| * Fix signed/unsigned compare warningNick Mathewson2011-03-18
| * Futz with the clang patch a bit and tidy some geoip.c stuffNick Mathewson2011-03-17
| * Fix two compile warnings when using clang•••Issue found by Steven Murdoch Sebastian Hahn2011-03-10
* | Merge remote branch 'origin/maint-0.2.2'•••Conflicts: src/or/geoip.c Nick Mathewson2011-01-25
|\|
| * Tell which geoip file we're parsingSebastian Hahn2011-01-25
* | Merge remote branch 'origin/maint-0.2.2'Nick Mathewson2011-01-03
|\|
| * Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2011-01-03
| |\
| | * Bump copyright statements to 2011Nick Mathewson2011-01-03
* | | Do cloexec on socketpairs and stdio filesNick Mathewson2010-11-20
* | | Add two fixes to the new geoip-db-digest line.Karsten Loesing2010-11-12
* | | Add GeoIP file digest to extra-info descriptor.Karsten Loesing2010-11-09
|/ /
* | Fix a bridge segfault•••When we enabled support to change statistic options without restarting Tor we forgot to initialize geoip_countries. Fix that. Sebastian Hahn2010-09-27
* | A start at a patch for bug 1943 (alignment issues)Roger Dingledine2010-09-20
* | Fix misplaced labelsSebastian Hahn2010-08-16
* | minor formatting / comment fixesRoger Dingledine2010-08-13
* | Allow enabling or disabling *Statistics while Tor is running.•••With this patch we stop scheduling when we should write statistics using a single timestamp in run_scheduled_events(). Instead, we remember when a statistics interval starts separately for each statistic type in geoip.c and rephist.c. Every time run_scheduled_events() tries to write stats to disk, it learns when it should schedule the next such attempt. This patch also enables all statistics to be stopped and restarted at a later time. This patch comes with a few refactorings, some of which were not easily doable without the patch. Karsten Loesing2010-08-05
* | Set up the geoip country table right even if not called normallyNick Mathewson2010-07-31
* | Move the "nowhereland" logic into geoip.cNick Mathewson2010-07-31
* | Make "Nowhere" explicitly listable in torrc.•••We already had the country code ?? indicating an unknown country, so all we needed to do to make unknown countries excludable was to make the ?? code discoverable. Nick Mathewson2010-07-31
* | Create control.hSebastian Hahn2010-07-27
* | Create config.hSebastian Hahn2010-07-27
* | Create routerlist.hSebastian Hahn2010-07-27
* | Create geoip.hSebastian Hahn2010-07-27
* | Split headers for dnsserv.c functions out of or.h•••The next series of commits begins addressing the issue that we're currently including the complete or.h file in all of our source files. To change that, we're splitting function definitions into new header files (one header file per source file). Sebastian Hahn2010-07-27
* | Make the controller act more usefully when GETINFO fails•••Right now it says "552 internal error" because there's no way for getinfo_helper_*() countries to specify an error message. This patch changes the getinfo_helper_*() interface, and makes most of the getinfo helpers give useful error messages in response to failures. This should prevent recurrences of bug 1699, where a missing GeoIPFile line in the torrc made GETINFO ip-to-county/* fail in a "not obvious how to fix" way. Nick Mathewson2010-07-18
* | Make rotate_request_period use BEGIN/END versions of FOREACH•••This appeases some versions of MSVC, which don't like it when you have preprocessor commands inside a set of macro arguments. Nick Mathewson2010-05-17
* | Switch geoip_get_request_history to asprintf; fix bug 1365Nick Mathewson2010-04-20
* | Merge branch 'asprintf'Nick Mathewson2010-04-02
|\ \
| * | Tweak users of snprintf to use asprintf where appropriateNick Mathewson2010-02-28
* | | Merge remote branch 'origin/maint-0.2.1'•••Conflicts: src/common/test.h src/or/test.c Nick Mathewson2010-02-27
|\ \ \ | |/ / |/| / | |/
| * Update Tor Project copyright yearsNick Mathewson2010-02-27
* | Fix a memory corruption bug while collecting bridge stats•••We accidentally freed the internal buffer for bridge stats when we were writing the bridge stats file or honoring a control port request for said data. Change the interfaces for geoip_get_bridge_stats* to prevent these problems, and remove the offending free/add a tor_strdup. Fixes bug 1208. Karsten Loesing2010-01-26
* | don't warn if stats/bridge-stats is missing•••if we try to read it to publish stats and it's not there, that means there are no stats to publish. reported by swisstorexit. Roger Dingledine2010-01-15
* | when loading bridge stats, mkdir $datadir/stats firstRoger Dingledine2010-01-02
* | Permit an empty "bridge-ips" line when parsing bridge stats.Karsten Loesing2009-12-18
* | Refactor out the 'find string at start of any line' logic.•••We do this in too many places throughout the code; it's time to start clamping down. Also, refactor Karsten's patch to use strchr-then-strndup, rather than malloc-then-strlcpy-then-strchr-then-clear. Nick Mathewson2009-12-17
* | Make changes to latest bridge-stats fixes as suggested by Nick.Karsten Loesing2009-12-17
* | Fix bridge statistics.•••Fix statistics on client numbers by country as seen by bridges that were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour intervals instead of variable 12-to-48-hour intervals. Karsten Loesing2009-12-17
* | Now that FOO_free(NULL) always works, remove checks before calling it.Nick Mathewson2009-12-12
* | Fix a couple of smaller issues with gathering statistics.•••- Avoid memmoving 0 bytes which might lead to compiler warnings. - Don't require relays to be entry node AND bridge at the same to time to record clients. - Fix a memory leak when writing dirreq-stats. - Don't say in the stats files that measurement intervals are twice as long as they really are. - Reduce minimum observation time for requests to 12 hours, or we might never record usage. - Clear exit stats correctly after writing them, or we accumulate old stats over time. - Reset interval start for buffer stats, too. Karsten Loesing2009-09-24
* | Fix compile warnings on Snow Leopard•••Big thanks to nickm and arma for helping me with this! Sebastian Hahn2009-09-01
* | Merge commit 'karsten/proposal-166-impl-master'Nick Mathewson2009-08-26
|\ \
| * | Add some fixes after discussion with Nick.•••- Refactor geoip.c by moving duplicate code into rotate_request_period(). - Don't leak memory when cleaning up cell queues. - Make sure that exit_(streams|bytes_(read|written)) are initialized in all places accessing these arrays. - Read only the last block from *stats files and ensure that its timestamp is not more than 25 hours in the past and not more than 1 hour in the future. - Stop truncating the last character when reading *stats files. The only thing that's left now is to avoid reading whole *stats files into memory. Karsten Loesing2009-08-21
| * | Some final (?) cleanups of proposal 166 implementation.Karsten Loesing2009-08-19
| * | Move all *-stats file to subdirectory stats/.Karsten Loesing2009-08-19
| * | Write all statistics to disk exactly every 24 hours.Karsten Loesing2009-08-19
| * | Include contents of *-stats files in descriptor.Karsten Loesing2009-08-17