| Commit message (Expand) | Author | Age |
* | Merge branch 'nodes' | Nick Mathewson | 2010-10-13 |
|\ |
|
| * | 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 routerstatus_t interfaces const | Nick Mathewson | 2010-10-01 |
| * | Try to make most routerinfo_t interfaces const | Nick Mathewson | 2010-10-01 |
* | | Use connection_mark_and_flush consistently. | Nick Mathewson | 2010-10-13 |
|/ |
|
* | Fix more remaining users of inbuf/outbuf to handle bufferevents instead. | Nick Mathewson | 2010-09-27 |
* | Move the "stop writing when the buffer is empty" logic to cnnection_finished_... | Nick Mathewson | 2010-09-27 |
* | Add a new connection_fetch_from_buf_line() that can handle bufferevents | Nick Mathewson | 2010-09-27 |
* | Rename has_completed_circuit to can_complete_circuit•••Also redocument it. Related to #1362.
| Nick Mathewson | 2010-09-22 |
* | Fix misplaced labels | Sebastian Hahn | 2010-08-16 |
* | Create routerparse.h | Sebastian Hahn | 2010-07-27 |
* | Create reasons.h | Sebastian Hahn | 2010-07-27 |
* | Create policies.h | Sebastian Hahn | 2010-07-27 |
* | Create networkstatus.h | Sebastian Hahn | 2010-07-27 |
* | Create main.h | Sebastian Hahn | 2010-07-27 |
* | Create hibernate.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_edge.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 circuitbuild.h | Sebastian Hahn | 2010-07-27 |
* | Create buffers.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 |
* | 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 Hahn | 2010-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 Mathewson | 2010-07-18 |
* | Merge remote branch 'mikeperry/cbt-bugfixes3' | Nick Mathewson | 2010-06-29 |
|\ |
|
| * | Add CLOSE_MS and CLOSE_RATE keywords to buildtimeout event. | Mike Perry | 2010-06-15 |
| * | Add a TIMEOUT_RATE keyword to buildtimeout event. | Mike Perry | 2010-05-10 |
* | | Remove the extra space that is sent in certain STREAM messages from the contr... | Kat Magic | 2010-06-22 |
|/ |
|
* | Merge branch 'asprintf' | Nick Mathewson | 2010-04-02 |
|\ |
|
| * | Tweak users of snprintf to use asprintf where appropriate | Nick Mathewson | 2010-02-28 |
* | | 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 |
| * | Fix an apparently bogus check; fortunately, it seems to be untriggered. | Nick Mathewson | 2009-10-26 |
* | | Fix another coverity-spotted memleak | Sebastian Hahn | 2010-02-23 |
* | | Break early on unknown extendcircuit purpose•••Don't continue handling EXTENDCIRCUIT messages when we get an
unknown purpose.
| Sebastian Hahn | 2010-02-22 |
* | | Fix a memory leak, found by coverity | Sebastian Hahn | 2010-02-22 |
* | | Remove some redundand code in control.c•••Found by coverity
| Sebastian Hahn | 2010-02-22 |
* | | Future-proof the control protocol by ignoring unrecognized keyword args | Nick Mathewson | 2010-02-18 |
* | | Make more arguments in control.c properly case-insensitive. | Nick Mathewson | 2010-02-18 |
* | | Move CBT params into consensus. | Mike Perry | 2010-02-18 |
* | | Allow "EXTENDCIRCUIT 0" to omit a path. | Mike Perry | 2010-02-18 |
* | | Add BUILDTIMEOUT_SET event for CBT stress testing. | Mike Perry | 2010-02-18 |
* | | Fix comments for getinfo_helper_t•••rieo pointed out something isn't right here
| Sebastian Hahn | 2010-01-27 |