]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
16 years agoFix compile on freebsd
Sebastian Hahn [Fri, 18 Sep 2009 00:43:45 +0000 (02:43 +0200)] 
Fix compile on freebsd

16 years agoLet our config abbreviations rewrite more than once
Roger Dingledine [Fri, 18 Sep 2009 00:32:42 +0000 (20:32 -0400)] 
Let our config abbreviations rewrite more than once

16 years agoa mish-mash of stuff in my sandbox
Roger Dingledine [Thu, 17 Sep 2009 05:58:39 +0000 (01:58 -0400)] 
a mish-mash of stuff in my sandbox

16 years agogive proposal 151 a changelog and other touchups
Roger Dingledine [Thu, 17 Sep 2009 05:42:33 +0000 (01:42 -0400)] 
give proposal 151 a changelog and other touchups

16 years agoChoose early circuit idle timeout better.
Roger Dingledine [Thu, 17 Sep 2009 05:41:47 +0000 (01:41 -0400)] 
Choose early circuit idle timeout better.

Don't discard all circuits every MaxCircuitDirtiness, because the
user might legitimately have set that to a very lower number.

Also don't use up all of our idle circuits with testing circuits,
since that defeats the point of preemptive circuits.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 17 Sep 2009 04:42:41 +0000 (00:42 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoWork around a memory leak in openssl 0.9.8g (and maybe others)
Nick Mathewson [Thu, 17 Sep 2009 04:01:20 +0000 (00:01 -0400)] 
Work around a memory leak in openssl 0.9.8g (and maybe others)

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Thu, 17 Sep 2009 03:37:27 +0000 (23:37 -0400)] 
Merge commit 'origin/maint-0.2.1'

[Do not take conflicting change to rendclient.c]

16 years agoMerge commit 'karsten/fix-1073' into maint-0.2.1
Nick Mathewson [Thu, 17 Sep 2009 03:36:01 +0000 (23:36 -0400)] 
Merge commit 'karsten/fix-1073' into maint-0.2.1

16 years agoMerge commit 'mikeperry/circuitbuildtimeout-final'
Roger Dingledine [Thu, 17 Sep 2009 01:43:31 +0000 (21:43 -0400)] 
Merge commit 'mikeperry/circuitbuildtimeout-final'

16 years agoClarify use of magic number 0.98 with #define.
Mike Perry [Thu, 17 Sep 2009 01:41:22 +0000 (18:41 -0700)] 
Clarify use of magic number 0.98 with #define.

16 years agoMerge branch 'maint-0.2.1'
Roger Dingledine [Thu, 17 Sep 2009 01:28:49 +0000 (21:28 -0400)] 
Merge branch 'maint-0.2.1'

16 years agoMerge commit 'karsten/no-time-maint-0.2.1'
Roger Dingledine [Thu, 17 Sep 2009 00:45:01 +0000 (20:45 -0400)] 
Merge commit 'karsten/no-time-maint-0.2.1'

16 years agoMerge commit 'sebastian/specconformance'
Roger Dingledine [Thu, 17 Sep 2009 00:37:43 +0000 (20:37 -0400)] 
Merge commit 'sebastian/specconformance'

16 years agoMerge commit 'sebastian/manpage'
Roger Dingledine [Thu, 17 Sep 2009 00:29:37 +0000 (20:29 -0400)] 
Merge commit 'sebastian/manpage'

16 years agoFix unit tests and compile issues on Snow Leopard
Sebastian Hahn [Wed, 16 Sep 2009 22:20:25 +0000 (00:20 +0200)] 
Fix unit tests and compile issues on Snow Leopard

16 years agoChange liveness value to be a function of the timeout.
Mike Perry [Thu, 17 Sep 2009 00:14:01 +0000 (17:14 -0700)] 
Change liveness value to be a function of the timeout.

And also the number of recent circuits used to decide
when the network changes.

16 years agoAdd log message so we have accurate build time values.
Mike Perry [Wed, 16 Sep 2009 11:55:43 +0000 (04:55 -0700)] 
Add log message so we have accurate build time values.

16 years agoAddress nickm's issues from his review #1.
Mike Perry [Wed, 16 Sep 2009 01:00:48 +0000 (18:00 -0700)] 
Address nickm's issues from his review #1.

16 years agoUpdate proposal to match implementation.
Mike Perry [Thu, 17 Sep 2009 00:03:54 +0000 (17:03 -0700)] 
Update proposal to match implementation.

16 years agoMove circuitbuildtimeout config check.
Mike Perry [Mon, 14 Sep 2009 11:03:57 +0000 (04:03 -0700)] 
Move circuitbuildtimeout config check.

We want it to be under our control so it doesn't mess
up initialization. This is likely the cause for
the bug the previous assert-adding commit (09a75ad) was
trying to address.

16 years agoTime for some debugging by asserts.
Mike Perry [Fri, 11 Sep 2009 05:12:46 +0000 (22:12 -0700)] 
Time for some debugging by asserts.

Got a negative timeout value on startup. Need to narrow it down.

16 years agoFix bugs relating to not counting timeouts as circuit builds.
Mike Perry [Wed, 9 Sep 2009 07:01:57 +0000 (00:01 -0700)] 
Fix bugs relating to not counting timeouts as circuit builds.

Also use bin midpoints for time values.

16 years agoDocument functions and constants.
Mike Perry [Tue, 8 Sep 2009 08:31:29 +0000 (01:31 -0700)] 
Document functions and constants.

16 years agoRemove an assert.
Mike Perry [Mon, 7 Sep 2009 04:05:17 +0000 (21:05 -0700)] 
Remove an assert.

It seems to fire because of precision issues. Added
more debug info to the warn to try to figure out for sure.

16 years agoFix issues found by arma in review.
Mike Perry [Mon, 7 Sep 2009 03:43:02 +0000 (20:43 -0700)] 
Fix issues found by arma in review.

16 years agospace/indent cleanups, plus point out three bugs
Roger Dingledine [Mon, 7 Sep 2009 03:14:13 +0000 (23:14 -0400)] 
space/indent cleanups, plus point out three bugs

16 years agoWoops. Fix a couple memory leaks.
Mike Perry [Fri, 4 Sep 2009 20:42:58 +0000 (13:42 -0700)] 
Woops. Fix a couple memory leaks.

Also change the max timeout quantile to 0.98, so we can
avoid huge synthetic timeout values.

16 years agoRemove trailing spaces. As if bytes were free...
Karsten Loesing [Thu, 3 Sep 2009 12:44:01 +0000 (14:44 +0200)] 
Remove trailing spaces. As if bytes were free...

Also correct some typos.

16 years agoResolve mode ties in favor of the higher (slower) mode.
Mike Perry [Wed, 2 Sep 2009 22:29:34 +0000 (15:29 -0700)] 
Resolve mode ties in favor of the higher (slower) mode.

16 years agoMore detail for some log msgs.
Mike Perry [Wed, 2 Sep 2009 04:12:47 +0000 (21:12 -0700)] 
More detail for some log msgs.

16 years agoUse our variable directly for timeout.
Mike Perry [Wed, 2 Sep 2009 03:27:43 +0000 (20:27 -0700)] 
Use our variable directly for timeout.

Using CircuitBuildTimeout is prone to issues with SIGHUP, etc.
Also, shuffle the circuit build times array after loading it
in so that newer measurements don't replace chunks of
similarly timed measurements.

16 years agoUpdate proposal to bring it more in-line with implementation.
Mike Perry [Wed, 2 Sep 2009 03:13:52 +0000 (20:13 -0700)] 
Update proposal to bring it more in-line with implementation.

16 years agoFix a couple of assert bugs.
Mike Perry [Tue, 1 Sep 2009 22:40:54 +0000 (15:40 -0700)] 
Fix a couple of assert bugs.

16 years agoFix timeout edge case when we get enough samples.
Mike Perry [Tue, 1 Sep 2009 15:07:26 +0000 (08:07 -0700)] 
Fix timeout edge case when we get enough samples.

Also switch Xm calculation to mode, not min.

16 years agoFix the math.h log() conflict.
Mike Perry [Tue, 1 Sep 2009 06:09:54 +0000 (23:09 -0700)] 
Fix the math.h log() conflict.

It was compiling, but causing segfaults.

Also, adjust when the timer starts for new test circs
and save state every 25 circuits.

16 years agoRecover from changing network connections.
Mike Perry [Tue, 1 Sep 2009 01:10:27 +0000 (18:10 -0700)] 
Recover from changing network connections.

Also add code to keep creating circuits every minute until we
hit our minimum threshhold.

16 years agoFactor out the pretimeout handling code.
Mike Perry [Fri, 28 Aug 2009 09:05:02 +0000 (02:05 -0700)] 
Factor out the pretimeout handling code.

We need to also call it if we're going to calculate alpha
after a normal circuit build.

16 years agoWrite unit tests and fix issues they uncovered.
Mike Perry [Fri, 28 Aug 2009 06:28:20 +0000 (23:28 -0700)] 
Write unit tests and fix issues they uncovered.

16 years agoImplement the pareto fitting and timeout calculating bits.
Mike Perry [Thu, 27 Aug 2009 08:46:06 +0000 (01:46 -0700)] 
Implement the pareto fitting and timeout calculating bits.

16 years agoClean up Fallon's partially complete GSoC project.
Mike Perry [Wed, 26 Aug 2009 00:13:12 +0000 (17:13 -0700)] 
Clean up Fallon's partially complete GSoC project.

The code actually isn't that bad. It's a shame she didn't finish.
Using it as the base for this feature.

16 years agoMerge branch 'tmp'
Roger Dingledine [Wed, 16 Sep 2009 21:18:35 +0000 (17:18 -0400)] 
Merge branch 'tmp'

16 years agoTeach connection_ap_can_use_exit about Exclude*Nodes
Sebastian Hahn [Wed, 16 Sep 2009 00:23:04 +0000 (02:23 +0200)] 
Teach connection_ap_can_use_exit about Exclude*Nodes

To further attempt to fix bug 1090, make sure connection_ap_can_use_exit
always returns 0 when the chosen exit router is excluded. This should fix
bug1090.

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Tue, 15 Sep 2009 23:37:26 +0000 (19:37 -0400)] 
Merge commit 'origin/maint-0.2.1'

Resolved conflicts in:
src/or/circuitbuild.c

16 years agoMerge commit 'sebastian/memleak' into maint-0.2.1
Nick Mathewson [Tue, 15 Sep 2009 23:35:16 +0000 (19:35 -0400)] 
Merge commit 'sebastian/memleak' into maint-0.2.1

16 years agomake some bug 1090 warnings go away
Sebastian Hahn [Fri, 11 Sep 2009 13:40:09 +0000 (15:40 +0200)] 
make some bug 1090 warnings go away

When we excluded some Exits, we were sometimes warning the user that we
were going to use the node regardless. Many of those warnings were in
fact bogus, because the relay in question was not used to connect to
the outside world.

Based on patch by Rotor, thanks!

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Tue, 15 Sep 2009 16:53:44 +0000 (12:53 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoit is cached-descriptors now, not cached-routers
Sebastian Hahn [Wed, 2 Sep 2009 02:50:08 +0000 (04:50 +0200)] 
it is cached-descriptors now, not cached-routers

16 years agoFix compile on Snow Leopard
Sebastian Hahn [Tue, 15 Sep 2009 08:33:58 +0000 (10:33 +0200)] 
Fix compile on Snow Leopard

16 years agosome cleanups:
Sebastian Hahn [Thu, 3 Sep 2009 01:01:23 +0000 (03:01 +0200)] 
some cleanups:

documentation fix for get_uint64
remove extra "." from a log line
fix a long line

16 years agorevert the month in the man page, so we don't drive weasel mad
Roger Dingledine [Tue, 15 Sep 2009 10:52:23 +0000 (06:52 -0400)] 
revert the month in the man page, so we don't drive weasel mad

16 years agoForward port patches/06_add_compile_time_defaults.dpatch
Peter Palfrader [Thu, 3 Sep 2009 13:10:47 +0000 (15:10 +0200)] 
Forward port patches/06_add_compile_time_defaults.dpatch

16 years agoForward port patches/03_tor_manpage_in_section_8.dpatch
Peter Palfrader [Thu, 3 Sep 2009 13:07:08 +0000 (15:07 +0200)] 
Forward port patches/03_tor_manpage_in_section_8.dpatch

16 years agoNew upstream version
Peter Palfrader [Thu, 3 Sep 2009 12:53:51 +0000 (14:53 +0200)] 
New upstream version

16 years agoRead "circwindow=x" from the consensus and use it
Roger Dingledine [Tue, 15 Sep 2009 10:33:33 +0000 (06:33 -0400)] 
Read "circwindow=x" from the consensus and use it

Tor now reads the "circwindow" parameter out of the consensus,
and uses that value for its circuit package window rather than the
default of 1000 cells. Begins the implementation of proposal 168.

16 years agoConsensusParams config option lists key=value params
Roger Dingledine [Tue, 15 Sep 2009 08:40:08 +0000 (04:40 -0400)] 
ConsensusParams config option lists key=value params

finishes the authority-operator interface side of proposal 167.

16 years agoParameter access function, with unit tests.
Nick Mathewson [Tue, 15 Sep 2009 03:39:08 +0000 (23:39 -0400)] 
Parameter access function, with unit tests.

16 years agoMark proposal 167 as implemented.
Nick Mathewson [Tue, 15 Sep 2009 03:24:39 +0000 (23:24 -0400)] 
Mark proposal 167 as implemented.

16 years agoImplement proposal 167: Authorities vote on network parameters.
Nick Mathewson [Tue, 15 Sep 2009 02:15:57 +0000 (22:15 -0400)] 
Implement proposal 167: Authorities vote on network parameters.

This code adds a new field to vote on: "params".  It consists of a list of
sorted key=int pairs.  The output is computed as the median of all the
integers for any key on which anybody voted.

Improved with input from Roger.

16 years agoAdd a median_int32 and find_nth_int32
Nick Mathewson [Tue, 15 Sep 2009 03:14:03 +0000 (23:14 -0400)] 
Add a median_int32 and find_nth_int32

16 years agoFix a memory leak when parsing a ns
Sebastian Hahn [Sun, 13 Sep 2009 19:47:55 +0000 (21:47 +0200)] 
Fix a memory leak when parsing a ns

Adding the same vote to a networkstatus consensus leads to a memory leak
on the client side. Fix that by only using the first vote from any given
voter, and ignoring the others.

Problem found by Rotor, who also helped writing the patch. Thanks!

16 years agoFix a spec conformance issue when parsing a ns vote
Sebastian Hahn [Sun, 13 Sep 2009 19:47:55 +0000 (21:47 +0200)] 
Fix a spec conformance issue when parsing a ns vote

A vote may only contain exactly one signature. Make sure we reject
votes that violate this.

Problem found by Rotor, who also helped writing the patch. Thanks!

16 years agominor fixes in some comments
Roger Dingledine [Mon, 7 Sep 2009 00:09:08 +0000 (20:09 -0400)] 
minor fixes in some comments

16 years agoAvoid calling time(NULL) too often.
Karsten Loesing [Thu, 3 Sep 2009 08:17:08 +0000 (10:17 +0200)] 
Avoid calling time(NULL) too often.

Found by "rotator".

16 years agoFix obscure 64-bit big-endian hidserv bug
Roger Dingledine [Thu, 3 Sep 2009 00:36:11 +0000 (20:36 -0400)] 
Fix obscure 64-bit big-endian hidserv bug

Fix an obscure bug where hidden services on 64-bit big-endian
systems might mis-read the timestamp in v3 introduce cells, and
refuse to connect back to the client. Discovered by "rotor".
Bugfix on 0.2.1.6-alpha.

16 years agoi couldn't break nick's tor_parse_double()
Roger Dingledine [Wed, 2 Sep 2009 05:10:10 +0000 (01:10 -0400)] 
i couldn't break nick's tor_parse_double()

i guess that means i should call them unit tests and check them in.

16 years agospelling, indenting, punctuating
Roger Dingledine [Wed, 2 Sep 2009 03:14:54 +0000 (23:14 -0400)] 
spelling, indenting, punctuating

16 years agomove the packaging change list to 0.2.2.1-alpha
Roger Dingledine [Wed, 2 Sep 2009 02:51:46 +0000 (22:51 -0400)] 
move the packaging change list to 0.2.2.1-alpha

16 years agoMerge branch 'maint-0.2.1'
Roger Dingledine [Wed, 2 Sep 2009 02:49:37 +0000 (22:49 -0400)] 
Merge branch 'maint-0.2.1'

16 years agoturns out the packaging changes aren't in 0.2.1.20
Roger Dingledine [Wed, 2 Sep 2009 02:46:41 +0000 (22:46 -0400)] 
turns out the packaging changes aren't in 0.2.1.20

16 years agoFix compile warnings on Snow Leopard
Sebastian Hahn [Tue, 1 Sep 2009 03:23:47 +0000 (05:23 +0200)] 
Fix compile warnings on Snow Leopard

Big thanks to nickm and arma for helping me with this!

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Tue, 1 Sep 2009 20:07:40 +0000 (16:07 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoupdate changelog with bundle details
Andrew Lewman [Tue, 1 Sep 2009 19:28:03 +0000 (15:28 -0400)] 
update changelog with bundle details

16 years agoMerge commit 'origin/maint-0.2.1'
Nick Mathewson [Tue, 1 Sep 2009 19:59:40 +0000 (15:59 -0400)] 
Merge commit 'origin/maint-0.2.1'

16 years agoRemove a debug printf
Sebastian Hahn [Tue, 1 Sep 2009 12:54:14 +0000 (14:54 +0200)] 
Remove a debug printf

16 years agotypo
Sebastian Hahn [Sat, 29 Aug 2009 16:34:28 +0000 (18:34 +0200)] 
typo

16 years agoUse an _actual_ fix for the byte-reverse warning.
Nick Mathewson [Tue, 1 Sep 2009 19:51:09 +0000 (15:51 -0400)] 
Use an _actual_ fix for the byte-reverse warning.

(Given that we're pretty much assuming that int is 32 bits, and given that
hex values are always unsigned, taking out the "ul" from 0xff000000 should
be fine.)

16 years agoUse a simpler fix for the byte-reversing warning
Nick Mathewson [Tue, 1 Sep 2009 19:41:38 +0000 (15:41 -0400)] 
Use a simpler fix for the byte-reversing warning

16 years agoFix compile warnings on Snow Leopard
Sebastian Hahn [Tue, 1 Sep 2009 03:23:47 +0000 (05:23 +0200)] 
Fix compile warnings on Snow Leopard

Big thanks to nickm and arma for helping me with this!

16 years agoMerge commit 'public/bug1076'
Nick Mathewson [Tue, 1 Sep 2009 06:01:49 +0000 (02:01 -0400)] 
Merge commit 'public/bug1076'

16 years agoAdd getinfo accepted-server-descriptor. Clean spec.
Roger Dingledine [Mon, 31 Aug 2009 22:37:25 +0000 (18:37 -0400)] 
Add getinfo accepted-server-descriptor. Clean spec.

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.

16 years agoReduce log level for bug case that we now know really exists.
Karsten Loesing [Mon, 31 Aug 2009 22:16:33 +0000 (00:16 +0200)] 
Reduce log level for bug case that we now know really exists.

16 years agoMerge branch 'maint-0.2.1'
Roger Dingledine [Mon, 31 Aug 2009 20:26:01 +0000 (16:26 -0400)] 
Merge branch 'maint-0.2.1'

16 years agoOnly send reachability status events on overall success/failure
Roger Dingledine [Mon, 31 Aug 2009 20:14:41 +0000 (16:14 -0400)] 
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.

16 years agoRevise parsing of time and memory units to handle spaces.
Nick Mathewson [Mon, 31 Aug 2009 04:18:55 +0000 (00:18 -0400)] 
Revise parsing of time and memory units to handle spaces.

When we added support for fractional units (like 1.5 MB) I broke
support for giving units with no space (like 2MB).  This patch should
fix that.  It also adds a propoer tor_parse_double().

Fix for bug 1076.  Bugfix on 0.2.2.1-alpha.

16 years agoAvoid segfault when accessing hidden service.
Karsten Loesing [Sat, 29 Aug 2009 17:41:08 +0000 (19:41 +0200)] 
Avoid segfault when accessing hidden service.

16 years agoMerge branch 'maint-0.2.1'
Roger Dingledine [Fri, 28 Aug 2009 07:47:18 +0000 (03:47 -0400)] 
Merge branch 'maint-0.2.1'

16 years agoOnly send netinfo clock_skew to controller if an authority told us so
Roger Dingledine [Fri, 28 Aug 2009 07:42:09 +0000 (03:42 -0400)] 
Only send netinfo clock_skew to controller if an authority told us so

We were triggering a CLOCK_SKEW controller status event whenever
we connect via the v2 connection protocol to any relay that has
a wrong clock. Instead, we should only inform the controller when
it's a trusted authority that claims our clock is wrong. Bugfix
on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.

16 years agobump to 0.2.2.1-alpha-dev
Roger Dingledine [Fri, 28 Aug 2009 02:27:31 +0000 (22:27 -0400)] 
bump to 0.2.2.1-alpha-dev

16 years agostart changelog for 0.2.2.2-alpha
Roger Dingledine [Fri, 28 Aug 2009 02:27:25 +0000 (22:27 -0400)] 
start changelog for 0.2.2.2-alpha

16 years agoMerge branch 'maint-0.2.1'
Roger Dingledine [Fri, 28 Aug 2009 01:56:10 +0000 (21:56 -0400)] 
Merge branch 'maint-0.2.1'

16 years agoextremely infinite? who talks like that?
Roger Dingledine [Fri, 28 Aug 2009 01:54:41 +0000 (21:54 -0400)] 
extremely infinite? who talks like that?

16 years agoMerge branch 'maint-0.2.1'
Roger Dingledine [Fri, 28 Aug 2009 01:42:58 +0000 (21:42 -0400)] 
Merge branch 'maint-0.2.1'

16 years agoHiddenServiceVersion must be set to 2 currently. tor-0.2.2.1-alpha
Sebastian Hahn [Thu, 27 Aug 2009 03:10:48 +0000 (05:10 +0200)] 
HiddenServiceVersion must be set to 2 currently.

0d68da2381780e2f8010b52a9e062947554699d5 removed support for Version 0,
but didn't fix the manpage.

16 years agoput karsten's changelog in the right place
Roger Dingledine [Thu, 27 Aug 2009 00:20:09 +0000 (20:20 -0400)] 
put karsten's changelog in the right place

16 years agoWhen Tor fails to parse a descriptor of any kind, dump it to disk.
Karsten Loesing [Thu, 20 Aug 2009 16:45:03 +0000 (18:45 +0200)] 
When Tor fails to parse a descriptor of any kind, dump it to disk.

16 years agoupdate fetch-all with dir auth
Andrew Lewman [Fri, 14 Aug 2009 01:13:09 +0000 (21:13 -0400)] 
update fetch-all with dir auth

16 years agochangelog and spec changes for the .exit fix
Roger Dingledine [Wed, 26 Aug 2009 19:43:18 +0000 (15:43 -0400)] 
changelog and spec changes for the .exit fix

16 years agobump to 0.2.2.1-alpha
Roger Dingledine [Wed, 26 Aug 2009 19:01:43 +0000 (15:01 -0400)] 
bump to 0.2.2.1-alpha

16 years agotypos in dir-spec
Roger Dingledine [Wed, 26 Aug 2009 18:48:13 +0000 (14:48 -0400)] 
typos in dir-spec