| Commit message (Expand) | Author | Age |
... | |
| * | Bump copyright statements to 2011 (0.2.2) | Nick Mathewson | 2011-01-03 |
* | | Merge branch 'nodes' | Nick Mathewson | 2010-10-13 |
|\ \ |
|
| * | | Implement policies for nodes (and for microdescriptors too) | Nick Mathewson | 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 |
| * | | Implement a basic node and nodelist type•••The node_t type is meant to serve two key functions:
1) Abstracting difference between routerinfo_t and microdesc_t
so that clients can use microdesc_t instead of routerinfo_t.
2) Being a central place to hold mutable state about nodes
formerly held in routerstatus_t and routerinfo_t.
This patch implements a nodelist type that holds a node for every
router that we would consider using.
| Nick Mathewson | 2010-10-01 |
* | | | Add more documentation to microdesc.c, plus another assert. | Nick Mathewson | 2010-10-07 |
* | | | Add a more verbose log message to try to catch bug #2022. | Nick Mathewson | 2010-10-07 |
* | | | Unit tests for microdescriptor cache•••May help with tracking down bug #2022
| Nick Mathewson | 2010-10-07 |
|/ / |
|
* | | Whitespace fixes on recent merges to master. | Nick Mathewson | 2010-09-30 |
* | | Clean long-unlisted microdescs from the cache | Nick Mathewson | 2010-09-27 |
* | | Download microdescriptors if you're a cache•••This commit adds some functions to see what microdescriptors we're missing,
and adds fetch-microdesc/store-microdesc logic to the directory code.
| Nick Mathewson | 2010-09-27 |
|/ |
|
* | Fix compilation with --with-dmalloc•••Fixes 1832; bugfix on 0.2.2.6-alpha
| Karsten Loesing | 2010-08-16 |
* | Create routerparse.h | Sebastian Hahn | 2010-07-27 |
* | Create microdesc.h | Sebastian Hahn | 2010-07-27 |
* | Create config.h | Sebastian Hahn | 2010-07-27 |
* | Update copyright dates for files not in maint-0.2.1 | Nick Mathewson | 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 |
* | Since dump_microdescriptor() can return -1; make its type ssize_t | Nick Mathewson | 2010-01-24 |
* | Handle errors reported by fwrite() in dump_microdescriptor()•••Does not deal with error handling in dump_microdescriptor's callers.
| Peter Palfrader | 2010-01-24 |
* | Now that FOO_free(NULL) always works, remove checks before calling it. | Nick Mathewson | 2009-12-12 |
* | Fix compile with warnings problems on Snow Leopard | Sebastian Hahn | 2009-10-19 |
* | Add functions to serve microdescs and flavored consensuses. | Nick Mathewson | 2009-10-18 |
* | Document the microdescriptor code better. | Nick Mathewson | 2009-10-18 |
* | Fix various bugs in microdescriptor caching. | Nick Mathewson | 2009-10-18 |
* | Code to generate, store, and parse microdescriptors and consensuses.•••The consensus documents are not signed properly, not served, and not
exchanged yet.
| Nick Mathewson | 2009-10-15 |