]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Sat, 26 Mar 2011 05:34:42 +0000 (01:34 -0400)]
Use timevals, not time_t, when expiring circuits.
We've got millisecond timers now, we might as well use them.
This change won't actually make circuits get expiered with microsecond
precision, since we only call the expiry functions once per second.
Still, it should avoid the situation where we have a circuit get
expired too early because of rounding.
A couple of the expiry functions now call tor_gettimeofday: this
should be cheap since we're only doing it once per second. If it gets
to be called more often, though, we should onsider having the current
time be an argument again.
Nick Mathewson [Wed, 30 Mar 2011 18:29:57 +0000 (14:29 -0400)]
Implement replacements for timer(add,cmp,sub) on platforms lacking them.
Nick Mathewson [Mon, 28 Mar 2011 21:49:34 +0000 (17:49 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2
Erinn Clark [Tue, 15 Feb 2011 01:15:42 +0000 (02:15 +0100)]
Fix configure.in zlib package names.
Sebastian Hahn [Sun, 27 Mar 2011 03:35:17 +0000 (05:35 +0200)]
Small tweaks for bug2698 bugfix
Jacob Appelbaum [Thu, 17 Mar 2011 01:35:31 +0000 (18:35 -0700)]
Fix libevent autoconf bug #2698
Nick Mathewson [Fri, 18 Mar 2011 16:42:00 +0000 (12:42 -0400)]
Fix signed/unsigned compare warning
Nick Mathewson [Fri, 18 Mar 2011 16:39:40 +0000 (12:39 -0400)]
Merge remote branch 'sebastian/bug2696' into maint-0.2.2
Sebastian Hahn [Fri, 18 Mar 2011 16:13:43 +0000 (17:13 +0100)]
Add 2696 changes file
Sebastian Hahn [Fri, 18 Mar 2011 16:04:01 +0000 (17:04 +0100)]
Remove superfluous -g -O2 compiler argument
Autoconf adds -g -O2 by default, so adding it ourselves is not required.
It also caused a warning with clang for every source file, so remove it
here. Fixes last issue of ticket 2696.
Nick Mathewson [Thu, 17 Mar 2011 18:06:04 +0000 (14:06 -0400)]
Futz with the clang patch a bit and tidy some geoip.c stuff
Nick Mathewson [Wed, 16 Mar 2011 22:10:15 +0000 (18:10 -0400)]
Document a few more members.
Nick Mathewson [Wed, 16 Mar 2011 22:07:55 +0000 (18:07 -0400)]
Resolve the one DOCDOC in the 0.2.2 code atm
Nick Mathewson [Wed, 16 Mar 2011 22:07:42 +0000 (18:07 -0400)]
Remove a useless doxygen comment
Nick Mathewson [Wed, 16 Mar 2011 21:54:43 +0000 (17:54 -0400)]
Move the decl for tor_gettimofday_cache_clear to the right header
Nick Mathewson [Wed, 16 Mar 2011 21:13:27 +0000 (17:13 -0400)]
add changes file for the doxygen issues
Nick Mathewson [Wed, 16 Mar 2011 21:11:27 +0000 (17:11 -0400)]
Clean up whitespace
Nick Mathewson [Wed, 16 Mar 2011 21:05:37 +0000 (17:05 -0400)]
Doxygen documentation for about 100 things that didn't have any
About 860 doxygen-less things remain in 0.2.2
Nick Mathewson [Wed, 16 Mar 2011 18:47:27 +0000 (14:47 -0400)]
Fix up all doxygen warnings other than "foo is not documented"
Nick Mathewson [Wed, 16 Mar 2011 18:36:42 +0000 (14:36 -0400)]
Turn on the "source browser" feature for our generated HTML.
Nick Mathewson [Wed, 16 Mar 2011 18:34:59 +0000 (14:34 -0400)]
Run "doxygen -u" to update doxygen config file.
Nick Mathewson [Tue, 15 Mar 2011 21:13:07 +0000 (17:13 -0400)]
Merge branch 'bug2756_relay' into maint-0.2.2
Nick Mathewson [Tue, 15 Mar 2011 19:35:11 +0000 (15:35 -0400)]
Fix comment for connection_edge_consider_sending_sendme
Nick Mathewson [Tue, 15 Mar 2011 19:18:15 +0000 (15:18 -0400)]
Merge branch 'bug2757' into maint-0.2.2
Nick Mathewson [Tue, 15 Mar 2011 19:14:12 +0000 (15:14 -0400)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Sebastian Hahn [Wed, 9 Mar 2011 15:39:04 +0000 (16:39 +0100)]
Fix a compile warning when using clang
Issue noticed by Steven Murdoch; fixes bug 2689. The cast didn't do
anything, and we don't need to look at the return value of the function
here.
Robert Ransom [Tue, 15 Mar 2011 16:48:26 +0000 (09:48 -0700)]
Fix a log message typo
Robert Ransom [Tue, 15 Mar 2011 16:13:25 +0000 (09:13 -0700)]
Log the source of a rejected POSTed v3 vote
Related to ticket 2683.
Nick Mathewson [Mon, 14 Mar 2011 22:52:15 +0000 (18:52 -0400)]
Check newconn, not conn, before marking newconn for close
This fixes bug 2757. It's a bugfix on
85da676108f0d .
Nick Mathewson [Mon, 14 Mar 2011 21:48:45 +0000 (17:48 -0400)]
Consider sending stream-level SENDME cells on partial flushes.
Right now, we only consider sending stream-level SENDME cells when we
have completely flushed a connection_edge's outbuf, or when it sends
us a DATA cell. Neither of these is ideal for throughput.
This patch changes the behavior so we now call
connection_edge_consider_sending_sendme when we flush _some_ data from
an edge outbuf.
Fix for bug 2756; bugfix on svn r152.
Nick Mathewson [Mon, 14 Mar 2011 21:04:53 +0000 (17:04 -0400)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Mon, 14 Mar 2011 20:14:54 +0000 (16:14 -0400)]
Merge remote branch 'arma/bug2510' into maint-0.2.2
Roger Dingledine [Mon, 14 Mar 2011 19:52:53 +0000 (15:52 -0400)]
Merge branch 'bug2511' into bug2510
Nick Mathewson [Mon, 14 Mar 2011 19:29:02 +0000 (15:29 -0400)]
Merge remote branch 'arma/bug2716' into maint-0.2.2
Roger Dingledine [Sun, 13 Mar 2011 20:56:41 +0000 (16:56 -0400)]
fix two issues pointed out by nickm
Roger Dingledine [Sun, 13 Mar 2011 19:47:59 +0000 (15:47 -0400)]
we're not reachable if we don't have a routerinfo yet
Roger Dingledine [Sun, 13 Mar 2011 19:22:45 +0000 (15:22 -0400)]
fix one more typo
Nick Mathewson [Sat, 12 Mar 2011 05:19:52 +0000 (00:19 -0500)]
Tweak bug2716 patch a little
Name the magic value "10" rather than re-deriving it.
Comment more.
Use the pattern that works for periodic timers, not the pattern that
doesn't work. ;)
Nick Mathewson [Sat, 12 Mar 2011 04:30:25 +0000 (23:30 -0500)]
Merge branch 'hsdir_assignment' into maint-0.2.2
Nick Mathewson [Fri, 11 Mar 2011 18:03:25 +0000 (13:03 -0500)]
Clarify threat description and avoid negative uptimes.
Roger Dingledine [Sat, 12 Mar 2011 03:12:15 +0000 (22:12 -0500)]
improve accuracy for when a relay went unreachable
Roger Dingledine [Sat, 12 Mar 2011 01:37:21 +0000 (20:37 -0500)]
Merge commit 'sebastian/bug2663' into maint-0.2.2
Roger Dingledine [Fri, 11 Mar 2011 22:39:54 +0000 (17:39 -0500)]
Merge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Fri, 11 Mar 2011 22:38:55 +0000 (17:38 -0500)]
put the 0.2.1.30 changes into releasenotes
Sebastian Hahn [Wed, 9 Mar 2011 10:34:04 +0000 (11:34 +0100)]
Use observed instead of declared uptime for HSDir
It is important to verify the uptime claim of a relay instead of just
trusting it, otherwise it becomes too easy to blackhole a specific
hidden service. rephist already has data available that we can use here.
Bugfix on 0.2.0.10-alpha.
Nick Mathewson [Thu, 10 Mar 2011 21:10:53 +0000 (16:10 -0500)]
Add a step to the release process: tell trac about the version.
Steven Murdoch [Wed, 9 Mar 2011 19:05:51 +0000 (19:05 +0000)]
Fix compilation under LLVM/clang with --enable-gcc-warnings
- When compiling using clang (2.9 or lower) do not enable
-Wnormalized=id or -Woverride-init when --enable-gcc-warnings
or --enable-gcc-warnings-advisory is set as these options
are unsupported.
Sebastian Hahn [Thu, 10 Mar 2011 00:47:00 +0000 (01:47 +0100)]
Fix two compile warnings when using clang
Issue found by Steven Murdoch
Nick Mathewson [Wed, 9 Mar 2011 21:21:34 +0000 (16:21 -0500)]
oops. I got the bug number wrong.
Andreas Stieger [Wed, 9 Mar 2011 20:41:25 +0000 (20:41 +0000)]
openSUSE initscript create /var/run/tor fixes Ticket #2573
(changes file added by nickm)
Roger Dingledine [Tue, 8 Mar 2011 23:16:06 +0000 (18:16 -0500)]
Merge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Tue, 8 Mar 2011 23:15:17 +0000 (18:15 -0500)]
move to march 2011 geoip file
Nick Mathewson [Tue, 8 Mar 2011 21:13:28 +0000 (16:13 -0500)]
Merge remote branch 'sebastian/bug2250' into maint-0.2.2
Roger Dingledine [Tue, 8 Mar 2011 21:06:32 +0000 (16:06 -0500)]
steps roger takes when making a new release
Nick Mathewson [Tue, 8 Mar 2011 20:52:43 +0000 (15:52 -0500)]
Merge remote branch 'sebastian/bug1035' into maint-0.2.2
Roger Dingledine [Tue, 8 Mar 2011 20:31:04 +0000 (15:31 -0500)]
update spec locations
Nick Mathewson [Tue, 8 Mar 2011 20:20:48 +0000 (15:20 -0500)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Tue, 8 Mar 2011 20:17:41 +0000 (15:17 -0500)]
Avoid crash in any_pending_bridge_descriptor_fetches
This is based on shitlei's fix for bug2629, with extra parens removed.
Fixes bug 2629, bugfix on 0.2.1.2-alpha.
Roger Dingledine [Tue, 8 Mar 2011 19:59:30 +0000 (14:59 -0500)]
make nickm's proposed convention from 2003 be gospel
Nick Mathewson [Mon, 7 Mar 2011 22:09:23 +0000 (17:09 -0500)]
Merge remote branch 'sebastian/bug2660' into maint-0.2.2
Sebastian Hahn [Sun, 6 Mar 2011 23:03:09 +0000 (00:03 +0100)]
Fix log message when we have too few dirauths
The calculation of when to send the logmessage was correct, but we
didn't give the correct number of relays required: We want more than
half of all authorities we know about. Fixes bug 2663.
Nick Mathewson [Sun, 6 Mar 2011 18:42:28 +0000 (13:42 -0500)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Nick Mathewson [Sun, 6 Mar 2011 18:42:05 +0000 (13:42 -0500)]
Merge branch 'real_ipv6_fix' into maint-0.2.1
Nick Mathewson [Sun, 6 Mar 2011 18:31:06 +0000 (13:31 -0500)]
Oops, here's the *REAL* fix for the ipv6 issue
We need to _REJECT_ descriptors with accept6/reject6 lines. If we
let them onto the network , other un-upgraded tors will crash.
Nick Mathewson [Sun, 6 Mar 2011 18:35:42 +0000 (13:35 -0500)]
Merge branch 'careful_with_all_descs' into maint-0.2.1
Nick Mathewson [Sun, 6 Mar 2011 18:35:24 +0000 (13:35 -0500)]
changes file for careful_with_all_descs
Nick Mathewson [Sun, 6 Mar 2011 18:26:38 +0000 (13:26 -0500)]
Revert "Disallow reject6 and accept6 lines in descriptors"
This reverts commit
b3918b3bbbfa9097246d63746c8b540eff2ec8e8 .
Nick Mathewson [Sun, 6 Mar 2011 18:20:21 +0000 (13:20 -0500)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Conflicts:
src/or/policies.c
Nick Mathewson [Sun, 6 Mar 2011 18:16:53 +0000 (13:16 -0500)]
exit_policy_is_general_exit is IPv4 only; it should admit it.
Nick Mathewson [Sun, 6 Mar 2011 18:15:32 +0000 (13:15 -0500)]
Changes file for ipv6 parsing issue
Sebastian Hahn [Sun, 6 Mar 2011 17:25:44 +0000 (18:25 +0100)]
Merge branch 'maint-0.2.1' into maint-0.2.2
Sebastian Hahn [Sun, 6 Mar 2011 17:20:28 +0000 (18:20 +0100)]
Disallow reject6 and accept6 lines in descriptors
This fixes a remotely triggerable assert on directory authorities, who
don't handle descriptors with ipv6 contents well yet. We will want to
revert this once we're ready to handle ipv6.
Issue raised by lorth on #tor, who wasn't able to use Tor anymore.
Analyzed with help from Christian Fromme. Fix suggested by arma. Bugfix
on 0.2.1.3-alpha.
Sebastian Hahn [Sat, 5 Mar 2011 14:20:55 +0000 (15:20 +0100)]
Fix setting target port in get_interface_address6
We want to use the discard port correctly, so a htons() was missing.
Also we need to set it correctly depending on address family.
Review provided by danieldg
Sebastian Hahn [Sat, 5 Mar 2011 13:46:32 +0000 (14:46 +0100)]
Fix connect() failures in get_interface_address6()
The third argument for connect should be dependent on the address
family. Issue spotted by piebeer who also wrote the patch.
Nick Mathewson [Fri, 4 Mar 2011 04:51:07 +0000 (23:51 -0500)]
Do not serve encrypt-only descriptors with the "all" request. Reported by piebeer
Nick Mathewson [Thu, 3 Mar 2011 18:50:17 +0000 (13:50 -0500)]
Merge remote branch 'rransom/typo-fix-2011-03-03-01' into maint-0.2.2
Robert Ransom [Thu, 3 Mar 2011 18:41:39 +0000 (10:41 -0800)]
Fix typo in man page
Nick Mathewson [Tue, 1 Mar 2011 22:08:02 +0000 (17:08 -0500)]
Avoid spurious bwhist parsing failures
This should fix a bug that special ran into, where if your state file
didn't record period maxima, it would never decide that it had
successfully parsed itself unless you got lucky with your
uninitialized-variable values.
This patch also tries to improve error messags in the case where a
maximum value legitimately doesn't parse.
Sebastian Hahn [Tue, 1 Mar 2011 09:05:18 +0000 (10:05 +0100)]
Tweak the bug2250 fix slightly
Rename the _UsingTestingTorNetwork hidden option to
_UsingTestNetworkDefaults (thanks Nick for the suggestion) and added a
changes file.
Sebastian Hahn [Sat, 26 Feb 2011 08:42:44 +0000 (09:42 +0100)]
clarify an assert
also log about running changes, even on a bridge authority.
Sebastian Hahn [Sat, 26 Feb 2011 08:06:09 +0000 (09:06 +0100)]
Fix GETINFO config-text for private networks
In private networks, the defaults for some options are changed. This
means that in options_validate(), where we're testing that the defaults
are what we think they are, we fail. Use a workaround by setting a
hidden configuration option _UsingTestingTorNetwork when we have altered
the configuration this way, so that options_validate() can do the right
thing.
Fixes bug 2250, bugfix on 0.2.1.2-alpha (the version introducing private
network options).
Nick Mathewson [Fri, 25 Feb 2011 16:22:12 +0000 (11:22 -0500)]
Merge branch 'bug1863_bwhist' into maint-0.2.2
Karsten Loesing [Thu, 24 Feb 2011 15:44:54 +0000 (16:44 +0100)]
Fix two potential bugs in the bug1863 code.
Nick Mathewson [Tue, 22 Feb 2011 23:38:03 +0000 (18:38 -0500)]
Merge remote branch 'arma/bug2403' into maint-0.2.2
Nick Mathewson [Tue, 22 Feb 2011 23:12:46 +0000 (18:12 -0500)]
Add some dollar signs in an attempt to appease older asciidocs
We should really require a modern asiidoc: backporting stuff to 8.2 is
a timesink.
Roger Dingledine [Tue, 22 Feb 2011 22:54:25 +0000 (17:54 -0500)]
prevent same entry and exit for insane edge case
Nick Mathewson [Tue, 22 Feb 2011 22:53:09 +0000 (17:53 -0500)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Conflicts:
configure.in
Nick Mathewson [Tue, 22 Feb 2011 22:51:03 +0000 (17:51 -0500)]
Remove doc/spec/Makefile.in from list of generated files
Nick Mathewson [Tue, 22 Feb 2011 22:20:55 +0000 (17:20 -0500)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
(This is an "ours" merge of the code for bug1859 backported to 0.2.1.)
Nick Mathewson [Tue, 22 Feb 2011 22:19:41 +0000 (17:19 -0500)]
Merge remote branch 'public/bug1859_021' into maint-0.2.1
Roger Dingledine [Tue, 22 Feb 2011 19:50:00 +0000 (14:50 -0500)]
changes file for removing torspec from the tarball
Nick Mathewson [Tue, 22 Feb 2011 20:57:36 +0000 (15:57 -0500)]
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
Use "ours" strategy" to avoid taking bug2402 fix.
Nick Mathewson [Tue, 22 Feb 2011 20:54:13 +0000 (15:54 -0500)]
Merge remote branch 'public/bug2402_nothing' into maint-0.2.1
Roger Dingledine [Tue, 22 Feb 2011 19:50:00 +0000 (14:50 -0500)]
changes file for removing torspec from the tarball
Roger Dingledine [Tue, 22 Feb 2011 19:44:09 +0000 (14:44 -0500)]
Merge branch 'maint-0.2.1' into maint-0.2.2
Roger Dingledine [Tue, 22 Feb 2011 19:39:09 +0000 (14:39 -0500)]
prefer https urls
Nick Mathewson [Tue, 22 Feb 2011 19:06:28 +0000 (14:06 -0500)]
Don't let bad DNS make exit policy and declared exit policy get out of sync
Patch from "postman" on trac. Fixes bg 2366. Bug on 0.1.2.5-alpha.
Nick Mathewson [Tue, 22 Feb 2011 18:01:02 +0000 (13:01 -0500)]
Merge branch 'log_domains' into maint-0.2.2
Nick Mathewson [Tue, 22 Feb 2011 17:52:52 +0000 (12:52 -0500)]
That shalt also not have a label without a statement.
Nick Mathewson [Tue, 22 Feb 2011 17:47:21 +0000 (12:47 -0500)]
Merge remote branch 'sebastian/bug2504' into maint-0.2.2