aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
AgeCommit message (Collapse)Author
2010-02-23Fix another coverity-spotted memleakSebastian Hahn
2010-02-22Break early on unknown extendcircuit purposeSebastian Hahn
Don't continue handling EXTENDCIRCUIT messages when we get an unknown purpose.
2010-02-22Fix a memory leak, found by coveritySebastian Hahn
2010-02-22Remove some redundand code in control.cSebastian Hahn
Found by coverity
2010-02-18Future-proof the control protocol by ignoring unrecognized keyword argsNick Mathewson
2010-02-18Make more arguments in control.c properly case-insensitive.Nick Mathewson
2010-02-18Move CBT params into consensus.Mike Perry
2010-02-18Allow "EXTENDCIRCUIT 0" to omit a path.Mike Perry
2010-02-18Add BUILDTIMEOUT_SET event for CBT stress testing.Mike Perry
2010-01-27Fix comments for getinfo_helper_tSebastian Hahn
rieo pointed out something isn't right here
2010-01-26Fix a memory corruption bug while collecting bridge statsKarsten Loesing
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.
2009-12-18Remove duplicate words and a duplicate newline.Karsten Loesing
2009-12-17Fix bridge statistics.Karsten Loesing
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.
2009-12-15Merge branch 'safelogging2'Nick Mathewson
Conflicts: ChangeLog
2009-12-15Refactor the safe_str_*() API to make more sense.Nick Mathewson
The new rule is: safe_str_X() means "this string is a piece of X information; make it safe to log." safe_str() on its own means "this string is a piece of who-knows-what; make it safe to log".
2009-12-13New controller command "getinfo config-text"Roger Dingledine
It returns the contents that Tor would write if you send it a SAVECONF command, so the controller can write the file to disk itself.
2009-12-12Now that FOO_free(NULL) always works, remove checks before calling it.Nick Mathewson
2009-12-12Allow SafeLogging to exclude client related informationSebastian Hahn
2009-10-26Fix an accidentally removed free in 385853a282138a61, and repair a check.Nick Mathewson
2009-10-26Fix/annotate deadcode for CID 402,403Nick Mathewson
2009-10-26Remove checks for array existence. (CID 410..415)Nick Mathewson
In C, the code "char x[10]; if (x) {...}" always takes the true branch of the if statement. Coverity notices this now. In some cases, we were testing arrays to make sure that an operation we wanted to do would suceed. Those cases are now always-true. In some cases, we were testing arrays to see if something was _set_. Those caes are now tests for strlen(s), or tests for !tor_mem_is_zero(d,len).
2009-10-26Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-10-26Fix two memory leaks found by Coverity (CIDs 417-418)Nick Mathewson
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.
2009-10-15Actually remember all the consensus types when we are done generating them.Nick Mathewson
2009-09-01Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-09-01Fix compile warnings on Snow LeopardSebastian Hahn
Big thanks to nickm and arma for helping me with this!
2009-08-31Add getinfo accepted-server-descriptor. Clean spec.Roger Dingledine
Add a "getinfo status/accepted-server-descriptor" controller command, which is the recommended way for controllers to learn whether our server descriptor has been successfully received by at least on directory authority. Un-recommend good-server-descriptor getinfo and status events until we have a better design for them.
2009-07-13remove experimental 'getinfo unregistered-servers-'Roger Dingledine
it never really worked, and hasn't been used for years.
2009-06-24Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-06-24Ignore control port commands after a QUITMarcus Griep
When a QUIT has been issued on a control port connection, then ignore further commands on that port. This fixes bug 1016.
2009-06-24Flush long replies over control port on QUITMarcus Griep
Marks the control port connection for flushing before closing when the QUIT command is issued. This allows a QUIT to be issued during a long reply over the control port, flushing the reply and then closing the connection. Fixes bug 1015.
2009-05-31Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-05-30Don't attempt to log messages to a controller from a worker thread.Nick Mathewson
This patch adds a function to determine whether we're in the main thread, and changes control_event_logmsg() to return immediately if we're in a subthread. This is necessary because otherwise we will call connection_write_to_buf, which modifies non-locked data structures. Bugfix on 0.2.0.x; fix for at least one of the things currently called "bug 977".
2009-05-27Merge commit 'origin/maint-0.2.1'Nick Mathewson
2009-05-27Spell-check Tor.Nick Mathewson
2009-05-25Update newer control_event_stream_bandwidth code to revised control implNick Mathewson
2009-05-25Remove support for events without the extended format or long names.Nick Mathewson
Supporting the old formats made our code complex; running without them has been discouraged since 0.2.1.x.
2009-05-14Fix misreporting of stream bandwidths.Mike Perry
2009-05-14Fix misreporting of stream bandwidths.potentiate
2009-05-04Update copyright to 2009.Karsten Loesing
2009-05-02Update copyright to 2009.Karsten Loesing
2009-05-01Remove the long-deprecated GETINFO addr-mappings/Nick Mathewson
2009-03-18Do not generate the non-verbose circuit path when generating a circuit event ↵Nick Mathewson
unless we will use it. svn:r19079
2009-02-20send the newconsensus event if the controller has asked for newconsensusRoger Dingledine
events, not if he's asked for ns events svn:r18656
2009-02-16docdoc and changelog for r18556Roger Dingledine
svn:r18566
2009-02-16and list the new event here tooRoger Dingledine
svn:r18557
2009-02-16new controller event NEWCONSENSUS that lists the networkstatusRoger Dingledine
lines for every recommended relay. still needs docdoc and changelog entry. svn:r18556
2009-01-28clean up r18287Roger Dingledine
svn:r18288
2009-01-28patch from matt to implement 'getinfo status/clients-seen'Roger Dingledine
svn:r18287
2009-01-27gah. yet another place that needs to be edited when we addRoger Dingledine
a new event. what a mess. svn:r18277