| Commit message (Expand) | Author | Age |
* | Merge branch 'bug1992_part1' | Nick Mathewson | 2010-10-15 |
|\ |
|
| * | refactor all these tor_inet_ntoa idioms•••but don't refactor the ones that look messy
| Roger Dingledine | 2010-10-01 |
* | | Initial conversion to use node_t throughout our codebase.•••A node_t is an abstraction over routerstatus_t, routerinfo_t, and
microdesc_t. It should try to present a consistent interface to all
of them. There should be a node_t for a server whenever there is
* A routerinfo_t for it in the routerlist
* A routerstatus_t in the current_consensus.
(note that a microdesc_t alone isn't enough to make a node_t exist,
since microdescriptors aren't usable on their own.)
There are three ways to get a node_t right now: looking it up by ID,
looking it up by nickname, and iterating over the whole list of
microdescriptors.
All (or nearly all) functions that are supposed to return "a router"
-- especially those used in building connections and circuits --
should return a node_t, not a routerinfo_t or a routerstatus_t.
A node_t should hold all the *mutable* flags about a node. This
patch moves the is_foo flags from routerinfo_t into node_t. The
flags in routerstatus_t remain, but they get set from the consensus
and should not change.
Some other highlights of this patch are:
* Looking up routerinfo and routerstatus by nickname is now
unified and based on the "look up a node by nickname" function.
This tries to look only at the values from current consensus,
and not get confused by the routerinfo_t->is_named flag, which
could get set for other weird reasons. This changes the
behavior of how authorities (when acting as clients) deal with
nodes that have been listed by nickname.
* I tried not to artificially increase the size of the diff here
by moving functions around. As a result, some functions that
now operate on nodes are now in the wrong file -- they should
get moved to nodelist.c once this refactoring settles down.
This moving should happen as part of a patch that moves
functions AND NOTHING ELSE.
* Some old code is now left around inside #if 0/1 blocks, and
should get removed once I've verified that I don't want it
sitting around to see how we used to do things.
There are still some unimplemented functions: these are flagged
with "UNIMPLEMENTED_NODELIST()." I'll work on filling in the
implementation here, piece by piece.
I wish this patch could have been smaller, but there did not seem to
be any piece of it that was independent from the rest. Moving flags
forces many functions that once returned routerinfo_t * to return
node_t *, which forces their friends to change, and so on.
| Nick Mathewson | 2010-10-01 |
* | | Try to make most routerinfo_t interfaces const | Nick Mathewson | 2010-10-01 |
|/ |
|
* | fix comment | Roger Dingledine | 2010-10-01 |
* | log when we guess our ip address, not just when we fail | Roger Dingledine | 2010-10-01 |
* | changelog entry for bug1751 | Roger Dingledine | 2010-09-27 |
* | Change bug1751 enabling code based on comments from arma | Nick Mathewson | 2010-09-27 |
* | First cut of code to enable RefuseUnknownExits•••The RefuseUnknownExits config option is now a tristate, with "1"
meaning "enable it no matter what the consensus says", "0" meaning
"disable it no matter what the consensus says", and "auto" meaning "do
what the consensus says". If the consensus is silent, we enable
RefuseUnknownExits.
This patch also changes the dirserv logic so that refuseunknownexits
won't make us cache unless we're an exit.
| Nick Mathewson | 2010-09-21 |
* | Create routerparse.h | Sebastian Hahn | 2010-07-27 |
* | Create rephist.h | Sebastian Hahn | 2010-07-27 |
* | Create relay.h | Sebastian Hahn | 2010-07-27 |
* | Create policies.h | Sebastian Hahn | 2010-07-27 |
* | Create main.h | Sebastian Hahn | 2010-07-27 |
* | Create hibernate.h | Sebastian Hahn | 2010-07-27 |
* | Create dns.h | Sebastian Hahn | 2010-07-27 |
* | Create dirserv.h | Sebastian Hahn | 2010-07-27 |
* | Create directory.h | Sebastian Hahn | 2010-07-27 |
* | Create control.h | Sebastian Hahn | 2010-07-27 |
* | Create connection.h | Sebastian Hahn | 2010-07-27 |
* | Create config.h | Sebastian Hahn | 2010-07-27 |
* | Create circuituse.h | Sebastian Hahn | 2010-07-27 |
* | Create circuitlist.h | Sebastian Hahn | 2010-07-27 |
* | Create routerlist.h | Sebastian Hahn | 2010-07-27 |
* | Create router.h | Sebastian Hahn | 2010-07-27 |
* | Create geoip.h | Sebastian Hahn | 2010-07-27 |
* | finally get rid of "clique mode" | Roger Dingledine | 2010-04-21 |
* | Merge remote branch 'origin/maint-0.2.1'•••Conflicts:
src/common/test.h
src/or/test.c
| Nick Mathewson | 2010-02-27 |
|\ |
|
| * | Update Tor Project copyright years | Nick Mathewson | 2010-02-27 |
* | | Merge remote branch 'origin/maint-0.2.1'•••Conflicts:
ChangeLog
src/or/routerparse.c
| Nick Mathewson | 2010-02-27 |
|\| |
|
| * | Properly handle non-terminated strings•••Treat strings returned from signed_descriptor_get_body_impl() as not
NUL-terminated. Since the length of the strings is available, this is
not a big problem.
Discovered by rieo.
| Sebastian Hahn | 2010-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 Loesing | 2010-01-26 |
* | | Merge remote branch 'origin/maint-0.2.1' | Nick Mathewson | 2010-01-23 |
|\| |
|
| * | Fix two rare leaks spotted by rieo. | Nick Mathewson | 2010-01-23 |
* | | Remove duplicate words and a duplicate newline. | Karsten Loesing | 2009-12-18 |
* | | 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 Loesing | 2009-12-17 |
* | | Now that FOO_free(NULL) always works, remove checks before calling it. | Nick Mathewson | 2009-12-12 |
* | | Fix bug 1113.•••Bridges do not use the default exit policy, but reject *:* by default.
| Karsten Loesing | 2009-10-27 |
* | | Merge commit 'origin/maint-0.2.1' | Nick Mathewson | 2009-10-26 |
|\| |
|
| * | Fix two memory leaks found by Coverity (CIDs 417-418)•••The first happens on an error case when a controller wants an
impossible directory object. The second happens when we can't write
our fingerprint file.
| Nick Mathewson | 2009-10-26 |
* | | Make signature-generation code handle different key and digest lengths. | Nick Mathewson | 2009-10-15 |
* | | fix two comment bugs for load_stats_file() | Roger Dingledine | 2009-09-28 |
* | | Fix an issue with including stats in extra-info descriptors. | Karsten Loesing | 2009-09-28 |
* | | Fix compile warnings on Snow Leopard•••Big thanks to nickm and arma for helping me with this!
| Sebastian Hahn | 2009-09-01 |
* | | Merge branch 'maint-0.2.1' | Roger Dingledine | 2009-08-31 |
|\| |
|
| * | Only send reachability status events on overall success/failure•••We were telling the controller about CHECKING_REACHABILITY and
REACHABILITY_FAILED status events whenever we launch a testing
circuit or notice that one has failed. Instead, only tell the
controller when we want to inform the user of overall success or
overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
by SwissTorExit.
| Roger Dingledine | 2009-08-31 |
* | | Merge commit 'karsten/proposal-166-impl-master' | Nick Mathewson | 2009-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 Loesing | 2009-08-21 |
| * | | Some final (?) cleanups of proposal 166 implementation. | Karsten Loesing | 2009-08-19 |
| * | | Fix a couple of bugs that showed up at runtime. | Karsten Loesing | 2009-08-19 |