aboutsummaryrefslogtreecommitdiff
path: root/src/or/geoip.c
AgeCommit message (Collapse)Author
2009-08-17Include contents of *-stats files in descriptor.Karsten Loesing
2009-08-17Remove ./configure option for entry and dir request statistics.Karsten Loesing
2009-07-27Fix dirreq and cell stats on 32-bit architectures.Karsten Loesing
When determining how long directory requests take or how long cells spend in queues, we were comparing timestamps on microsecond detail only to convert results to second or millisecond detail later on. But on 32-bit architectures this means that 2^31 microseconds only cover time differences of up to 36 minutes. Instead, compare timestamps on millisecond detail.
2009-07-16Switch dirreq_map to use HT_ functions rather than strmap.Nick Mathewson
2009-07-15Some tweaks to statistics.Karsten Loesing
Changes to directory request statistics: - Rename GEOIP statistics to DIRREQ statistics, because they now include more than only GeoIP-based statistics, whereas other statistics are GeoIP-dependent, too. - Rename output file from geoip-stats to dirreq-stats. - Add new config option DirReqStatistics that is required to measure directory request statistics. - Clean up ChangeLog. Also ensure that entry guards statistics have access to a local GeoIP database.
2009-07-15Some tweaks to directory request download times.Karsten Loesing
- Use common prefixes DIRREQ_* and dirreq_*. - Replace enums in structs with bitfields.
2009-07-15Round up results to the next multiple of 4.Karsten Loesing
2009-07-15Right, the u in uint stands for unsigned.Karsten Loesing
2009-07-15Directories now also measure download times of network statuses.Karsten Loesing
2009-07-14make it compile without warningsRoger Dingledine
2009-07-14Merge commit 'karsten/geoipstats-download-resp-master'Nick Mathewson
Conflicts: src/or/geoip.c
2009-07-14Merge commit 'karsten/geoipstats-shares-master'Nick Mathewson
2009-07-14Merge commit 'karsten/geoipstats-newoverthereistan-master'Nick Mathewson
2009-07-14Handle unsigned ints correctly.Karsten Loesing
2009-07-14Write number of rejected requests to geoip-stats file.Karsten Loesing
2009-07-11Simplify the math to round up to the next multiple of some value.Karsten Loesing
2009-07-09List unresolved requests in geoip stats as country '??'.Karsten Loesing
2009-07-05If configured, write entry-node statistics to disk periodically.Karsten Loesing
2009-07-04Estimate v2 and v3 shares as mean values over measurement interval.Karsten Loesing
2009-05-27Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-05-27Fix a signed/unsigned comparison warningNick Mathewson
2009-05-27Change the way how directories that are configured with --enable-geoip-stats ↵Karsten Loesing
write geoip stats to disk. - Write geoip stats to disk every 24 hours, not every hour. - Remove configuration options and define reasonable defaults. - Clear history of client requests every 24 hours (which wasn't done at all before).
2009-05-27Improve documentation for the last fix of bug 932.Karsten Loesing
2009-05-27Fix bug 932 even more.Karsten Loesing
Ignore connections two hours after switching from bridge to relay or back.
2009-05-26Some cleanups on geoip.c.Karsten Loesing
Use two bitfields for last_seen and action in clientmap_entry_t rather than having both share a 32-bit. Also, documentation fixes.
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-02-16Possible fix for broken country settings in ExcludeExitNodes.Nick Mathewson
It turns out that we weren't updating the _ExcludeExitNodesUnion set's country numbers when we reloaded (or first loaded!) the IP-to-country file. Spotted by Lark. Bugfix on 0.2.1.6-alpha. svn:r18575
2009-01-14Refactor MIN_IPS_TO_NOTE_* macros in geoip.c: simplify code.Nick Mathewson
It was dumb to have an "announce the value if it's over 0" version of the code coexisting with an "announce the value if it's at least N" version. Retain the latter only, with N set to 1. Incidentally, this should fix a Coverity REVERSE_INULL warning. svn:r18100
2009-01-04Remove svn $Id$s from our source, and remove tor --version --version.Nick Mathewson
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
2008-12-27partial move to letting bridge descriptor fetches use our new (well,Roger Dingledine
new from their perspective) directory download schedule abstraction. not done yet, but i'd better get this out of my sandbox before nick does another sweeping change. :) svn:r17798
2008-12-25some fixes i found in my sandboxRoger Dingledine
svn:r17771
2008-12-22Fix most DOCDOCs remaining and/or added by redox.Nick Mathewson
svn:r17734
2008-12-22Add DOCDOC comments for all undocumented functions. Add missing *s to other ↵Nick Mathewson
comments so that they will get recognized as doxygen. svn:r17729
2008-12-18Remove fixed xxx020s; downgrade unfixed ones.Nick Mathewson
(The unfixed ones are being downgraded to regular XXXs mainly on the rationale that they don't seem to be exploding Tor, and they were apparently not showstoppers for 0.2.0.x-final.) svn:r17682
2008-12-17Resolve many DOCDOCs.Nick Mathewson
svn:r17662
2008-09-25Widen the conditions under which we whine about not having a geoip file to ↵Nick Mathewson
include "a country code was configured in a node list." svn:r16968
2008-09-25Add country-code support to configured node lists to implement the ↵Nick Mathewson
ever-popular "no exits in Monaco" feature (ExcludeExitNodes {MC}). Also allow country codes and IP ranges in ExitNodes. (EntryNodes needs more work.) Based on code by Robert Hogan. Needs more testing. svn:r16966
2008-09-04Fix mingw build with --enable-gcc-warnings set.Nick Mathewson
svn:r16759
2008-08-29Double oops: revert accidentally committed local geoipc.c debugging hack.Nick Mathewson
svn:r16687
2008-08-29Oops. Make warn_too_many_conns() actually work. Nick Mathewson
svn:r16686
2008-06-18implement more fine-tuning options for stats codeNick Mathewson
svn:r15345
2008-06-10Fix last geoip bugs.Nick Mathewson
svn:r15106
2008-06-10a couple more geoip bugfixesNick Mathewson
svn:r15105
2008-06-10 r16139@tombo: nickm | 2008-06-10 15:25:23 -0400Nick Mathewson
Small formatting fixes for geoip-stats file. svn:r15104
2008-06-10 r16137@tombo: nickm | 2008-06-10 15:10:55 -0400Nick Mathewson
sign error svn:r15103
2008-06-10 r16133@tombo: nickm | 2008-06-10 15:06:43 -0400Nick Mathewson
Pointers do not make good ints. svn:r15102
2008-06-10 r16129@tombo: nickm | 2008-06-10 14:28:06 -0400Nick Mathewson
More geoip tweaks. Include in the file a rough estimator of our total share. svn:r15099
2008-06-10 r16127@tombo: nickm | 2008-06-10 14:03:01 -0400Nick Mathewson
Improved code for counting clients by country: support recording by number of directory status requests in addition to number of IPs seen. svn:r15097
2008-06-04forward-port r14934Roger Dingledine
svn:r14936