aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
AgeCommit message (Collapse)Author
2008-10-13Minor fix in the warning messages when you're having problems Roger Dingledine
bootstrapping; also, be more forgiving of bootstrap problems when we're still making incremental progress on a given bootstrap phase. svn:r17066
2008-09-29Include circuit purposes in circuit events. Now all circuit events are ↵Nick Mathewson
extended; this makes the code simpler. svn:r17007
2008-09-26Proposal 152 implementation from Josh Albrecht, with tweaks.Nick Mathewson
svn:r16983
2008-09-14Serve the latest v3 networkstatus consensus via the controlRoger Dingledine
port. Use "getinfo dir/status-vote/current/consensus" to fetch it. svn:r16907
2008-09-05Refactor some code and add some asserts based on scanner results.Nick Mathewson
svn:r16783
2008-08-15Switch global_identifier on connections to a 64-bit field and move it to ↵Nick Mathewson
connection_t. When procession onionskins, look up the connection by this field rather than by addr:port. This will keep us from dropping onionskins. How many dropped circuits are dropped because of this bug? svn:r16558
2008-08-04don't log-warn on a bootstrapping status event if the recommendationRoger Dingledine
is to ignore. svn:r16405
2008-07-24 r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson
Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178
2008-06-24Send a bootstrap problem "warn" event on the first problem if theRoger Dingledine
reason is NO_ROUTE (that is, our network is down). svn:r15443
2008-06-20If you're using bridges, generate "bootstrap problem" warningsRoger Dingledine
as soon as you run out of working bridges, rather than waiting for ten failures -- which will never happen if you have less than ten bridges. svn:r15368
2008-06-19start sending "COUNT=%d RECOMMENDATION=%s" key/values on bootstrapRoger Dingledine
problem status events, so the controller can hear about problems even before tor decides they're worth reporting for sure. svn:r15357
2008-06-18I was on the second paragraph of my or-dev mail explaining why I chose toRoger Dingledine
set starting=1 to avoid potential bugs with having it conflict with 0, which I used to mean uninitialized, when I realized I would be writing many more lame-sounding paragraphs in the future. Just start it at 0 and handle the bugs. svn:r15346
2008-06-17add a getinfo so vidalia can query our current bootstrap state, in caseRoger Dingledine
it attaches partway through and wants to catch up. matt, is this a good format for you, or is there an even better format? svn:r15325
2008-06-13steal some of the bootstrap phase strings from vidaliaRoger Dingledine
svn:r15193
2008-06-11consolidate all our edge/circ/orconn reason-to-foo-or-back functionsRoger Dingledine
svn:r15115
2008-06-10some cleanups in preparation for moving stuff aroundRoger Dingledine
svn:r15112
2008-06-09make the 'bootstrap problem' stuff quieter while i'm messing with itRoger Dingledine
svn:r15094
2008-06-09Start noticing and reporting bootstrapping failures too. It looks likeRoger Dingledine
we never bothered learning why OR conns fail, so next step is to add some infrastructure for that. svn:r15091
2008-06-09fix a bug where we were never reporting theRoger Dingledine
"Finishing handshake with entry guard" bootstrap phase svn:r15087
2008-06-08include tags in the bootstrap status events. also document theRoger Dingledine
bootstrapping process and how the phases break down. svn:r15020
2008-06-07actually start sending the bootstrap status event, so mattRoger Dingledine
can start playing with it on his side. svn:r15009
2008-06-07infrastructure for the 'bootstrap status event' feature, so we canRoger Dingledine
tell the controller how we're doing at bootstrapping, and it can tell the user. svn:r15008
2008-05-27Fix the first part of bug 681, as suggested by Robert Hogan on or-talk.Nick Mathewson
svn:r14754
2008-03-17 r18861@catbus: nickm | 2008-03-16 23:22:56 -0400Nick Mathewson
Fix a couple of bugs in setting control log callback severity. svn:r14065
2008-03-13 r18787@catbus: nickm | 2008-03-13 11:11:52 -0400Nick Mathewson
Make set-option functions return sensible error codes from an enum, not mysterious negative integers svn:r14004
2008-03-11 r18723@catbus: nickm | 2008-03-11 00:25:30 -0400Nick Mathewson
Fix bug spotted by mwenge: a server_event should not be a sever_event. Also, fix compile errors in config.c and control.c with --enable-gcc-warnings. svn:r13957
2008-03-10And appease the whitespace nazis among usPeter Palfrader
svn:r13950
2008-03-10Implement LOADCONF control commandPeter Palfrader
The LOADCONF control command allows posting a config file to Tor over the control interface. This config file is then loaded as if it had been read from disk. Sending a HUP signal to Tor will make it try to load its old config from disk again, thereby forgetting the config loaded with this command. svn:r13948
2008-03-10If we decrement incoming_cmd's length when receiving the ending CRLF "." ↵Peter Palfrader
CRLF for a multi-line control command, also truncate the string by nul-terminating it in the correct place. svn:r13939
2008-02-29forward-port r13777Roger Dingledine
svn:r13778
2008-02-24 r14421@tombo: nickm | 2008-02-24 17:05:18 -0500Nick Mathewson
Patch from mwenge: always willingly serve our own extrainfo from the controlport svn:r13699
2008-02-22 r14399@tombo: nickm | 2008-02-22 14:09:38 -0500Nick Mathewson
More 64-to-32 fixes. Partial backport candidate. still not done. svn:r13680
2008-02-21 r18345@catbus: nickm | 2008-02-21 13:45:04 -0500Nick Mathewson
Do the last part of arma's fix for bug 437: Track the origin of every addrmap, and use this info so we can remove all the trackhostexits-originated mappings for a given exit. svn:r13660
2008-02-19 r14246@tombo: nickm | 2008-02-17 19:33:02 -0500Nick Mathewson
Fix a wide line in control.c; make the check-spaces target ignore the openbsd malloc file. svn:r13566
2008-02-17 r14236@tombo: nickm | 2008-02-17 13:44:55 -0500Nick Mathewson
Partial fix for bug 586: Add an ephemeral __HashedControlSessionPassword. svn:r13543
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-06 r17947@catbus: nickm | 2008-02-06 11:57:53 -0500Nick Mathewson
Fix a bunch of DOCDOC items; document the --quiet flag; refactor a couple of XXXX020 items. svn:r13405
2008-02-06If the networkstatus consensus lists no recommended versions, don'tRoger Dingledine
complain to the user and demand that they upgrade to one of "". svn:r13401
2008-02-05 r17917@catbus: nickm | 2008-02-05 16:38:15 -0500Nick Mathewson
Oops; fix compilation of control.c svn:r13391
2008-02-05 r17916@catbus: nickm | 2008-02-05 16:29:35 -0500Nick Mathewson
Fix some XXX020 items in control.c: add a maximum line length and note that the number of versioning authorities is no longer apparent to clients. svn:r13390
2008-02-05 r17913@catbus: nickm | 2008-02-05 16:11:33 -0500Nick Mathewson
Correctly register failures in connection_add() in dnsserv_launch_request() svn:r13387
2008-02-05 r17909@catbus: nickm | 2008-02-05 14:48:22 -0500Nick Mathewson
As planned, rename networkstatus_vote_t to networkstatus_t, now that v3 networkstatuses are working and standard and v2 networkstatuses are obsolete. svn:r13383
2008-01-16 r17639@catbus: nickm | 2008-01-15 19:09:21 -0500Nick Mathewson
Fix some hard to trigger but nonetheless real memory leaks spotted by an anonymous contributor. Needs review. Partial backport candidate. svn:r13147
2008-01-15 r17624@catbus: nickm | 2008-01-15 00:42:01 -0500Nick Mathewson
Fixes to more anonymously-reported typos and logic errors. svn:r13136
2008-01-14 r17611@catbus: nickm | 2008-01-14 13:44:16 -0500Nick Mathewson
add some missing checks for failing return values. svn:r13130
2008-01-10minor cleanupsRoger Dingledine
svn:r13095
2008-01-07 r17499@catbus: nickm | 2008-01-07 13:39:46 -0500Nick Mathewson
Bugfix on fix for 557: Make values containing special characters work right with getconf, setconf, and saveconf. Document this in control-spec.txt svn:r13056
2007-12-31 r15768@tombo: nickm | 2007-12-31 16:12:09 -0500Nick Mathewson
Patch from Tup: make NS events work again. svn:r13009
2007-12-29 r17426@catbus: nickm | 2007-12-28 21:12:29 -0500Nick Mathewson
Remove need for buf_pullup in fetch_line_from_buf(). svn:r13002
2007-12-23 r15653@tombo: nickm | 2007-12-23 14:15:12 -0500Nick Mathewson
Refactor circuit_launch* functions to take a bitfield of flags rather than 4 separate nonconsecutive flags arguments. Also, note a possible but in circuit_find_to_cannibalize, which seems to be ignoring its purpose argument. svn:r12948