]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
10 years agoFix: check r < 0 before checking errno
David Goulet [Fri, 30 Jan 2015 20:18:40 +0000 (15:18 -0500)] 
Fix: check r < 0 before checking errno

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix possible infinite loop on pipe/sock_drain()
David Goulet [Fri, 30 Jan 2015 19:59:48 +0000 (14:59 -0500)] 
Fix possible infinite loop on pipe/sock_drain()

If the returned value of read/recv is 0 (meaning EOF), we'll end up in an
infinite loop (active wait) until something is written on the pipe which is
not really what we want here especially because those functions are called
from the main thread.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix: test -ENOENT after config_parse_unix_port()
David Goulet [Fri, 30 Jan 2015 19:12:30 +0000 (14:12 -0500)] 
Fix: test -ENOENT after config_parse_unix_port()

Check for -ENOENT instead of ENOENT after the HS port is parsed.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge remote-tracking branch 'public/prop227_v2'
Nick Mathewson [Fri, 30 Jan 2015 12:36:55 +0000 (07:36 -0500)] 
Merge remote-tracking branch 'public/prop227_v2'

Conflicts:
src/test/test_dir.c

10 years agoCorrectly handle OutboundBindAddress again.
Nick Mathewson [Fri, 30 Jan 2015 12:29:23 +0000 (07:29 -0500)] 
Correctly handle OutboundBindAddress again.

ca5ba2956bcd4b5ee1e526ccf5914f52fe6e6d51 broke this; bug not in any
released Tor.

Also fix a typo.

Fixes 14541 and 14527.  Reported by qbi.

10 years agoMerge branch 'bug14451_026_v1'
Nick Mathewson [Thu, 29 Jan 2015 20:16:15 +0000 (15:16 -0500)] 
Merge branch 'bug14451_026_v1'

10 years agochanges file for 14451
Nick Mathewson [Thu, 29 Jan 2015 20:12:14 +0000 (15:12 -0500)] 
changes file for 14451

10 years agoUse HT_BUCKET_NUM_ in more places
Nick Mathewson [Thu, 29 Jan 2015 20:10:19 +0000 (15:10 -0500)] 
Use HT_BUCKET_NUM_ in more places

(patch from sysrqb)

10 years agoMerge remote-tracking branch 'public/ticket11737'
Nick Mathewson [Thu, 29 Jan 2015 20:09:55 +0000 (15:09 -0500)] 
Merge remote-tracking branch 'public/ticket11737'

10 years agoDocument unix: addresses
Nick Mathewson [Thu, 29 Jan 2015 19:56:45 +0000 (14:56 -0500)] 
Document unix: addresses

10 years agoRestrict unix: addresses to control and socks for now
Nick Mathewson [Thu, 29 Jan 2015 19:51:59 +0000 (14:51 -0500)] 
Restrict unix: addresses to control and socks for now

10 years agoRemove SocksSocket; it's now spelled differently thanks to 14451
Nick Mathewson [Thu, 29 Jan 2015 19:45:21 +0000 (14:45 -0500)] 
Remove SocksSocket; it's now spelled differently thanks to 14451

Also, revise bug12585 changes file to mention new syntax

10 years agoWhen there are no package lines, make consensus/packages say "".
Nick Mathewson [Thu, 29 Jan 2015 19:14:59 +0000 (14:14 -0500)] 
When there are no package lines, make consensus/packages say "".

Also, give a better error message when there is no consensus.

10 years agoCorrectly reject packages lines with empty entries
Nick Mathewson [Thu, 29 Jan 2015 19:04:57 +0000 (14:04 -0500)] 
Correctly reject packages lines with empty entries

10 years agoDefine 'digesttype' correctly
Nick Mathewson [Thu, 29 Jan 2015 19:04:21 +0000 (14:04 -0500)] 
Define 'digesttype' correctly

10 years agoMake hidden service use the config unix prefix
David Goulet [Wed, 28 Jan 2015 23:01:53 +0000 (18:01 -0500)] 
Make hidden service use the config unix prefix

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoSupport unix: prefix in port configuration
David Goulet [Wed, 28 Jan 2015 22:55:38 +0000 (17:55 -0500)] 
Support unix: prefix in port configuration

It's now possible to use SocksPort or any other kind of port that can use a
Unix socket like so:

  SocksPort unix:/foo/bar/unix.sock

Fixes #14451

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge branch 'bug11485_026_v2_squashed'
Nick Mathewson [Wed, 28 Jan 2015 19:32:19 +0000 (14:32 -0500)] 
Merge branch 'bug11485_026_v2_squashed'

10 years agofixup! Refactor the use of ifdef HAVE_SYS_UN_H
David Goulet [Wed, 28 Jan 2015 18:11:21 +0000 (13:11 -0500)] 
fixup! Refactor the use of ifdef HAVE_SYS_UN_H

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoChanges file for ticket #11485
Andrea Shepard [Tue, 27 Jan 2015 13:18:22 +0000 (13:18 +0000)] 
Changes file for ticket #11485

10 years agoActually make connections to HSes on AF_UNIX sockets
Andrea Shepard [Tue, 27 Jan 2015 13:12:40 +0000 (13:12 +0000)] 
Actually make connections to HSes on AF_UNIX sockets

10 years agoSupport connection_exit_connect() to AF_UNIX sockets
Andrea Shepard [Sat, 24 Jan 2015 17:31:12 +0000 (17:31 +0000)] 
Support connection_exit_connect() to AF_UNIX sockets

10 years agoHandle config options for AF_UNIX hidden services rendservice.c
Andrea Shepard [Fri, 23 Jan 2015 14:45:12 +0000 (14:45 +0000)] 
Handle config options for AF_UNIX hidden services rendservice.c

10 years agochanges file for 8405
Nick Mathewson [Wed, 28 Jan 2015 17:06:28 +0000 (12:06 -0500)] 
changes file for 8405

10 years agoBug #8405: Report SOCKS username/password in CIRC status events
Arthur Edelstein [Wed, 16 Jul 2014 04:27:59 +0000 (21:27 -0700)] 
Bug #8405: Report SOCKS username/password in CIRC status events

Introduces two new circuit status name-value parameters: SOCKS_USERNAME
and SOCKS_PASSWORD. Values are enclosing in quotes and unusual characters
are escaped.

Example:

    650 CIRC 5 EXTENDED [...] SOCKS_USERNAME="my_username" SOCKS_PASSWORD="my_password"

10 years agoAdd GETINFO consensus/{valid-{after,until},fresh-until}
Nick Mathewson [Wed, 28 Jan 2015 16:28:21 +0000 (11:28 -0500)] 
Add GETINFO consensus/{valid-{after,until},fresh-until}

10 years agomore typo fixes from mcs and gk
Nick Mathewson [Wed, 28 Jan 2015 16:25:37 +0000 (11:25 -0500)] 
more typo fixes from mcs and gk

10 years agoTweak tor-resolve docs and logs
Nick Mathewson [Wed, 28 Jan 2015 15:11:08 +0000 (10:11 -0500)] 
Tweak tor-resolve docs and logs

Resolves 14325

10 years agoBump a client authorization message from debug to info.
Nick Mathewson [Wed, 28 Jan 2015 14:42:28 +0000 (09:42 -0500)] 
Bump a client authorization message from debug to info.

A user wants this for 14015, and it seems fairly reasonable.

10 years agoNew GETINFO consensus/packages to expose package information from consensus
Nick Mathewson [Tue, 27 Jan 2015 21:40:32 +0000 (16:40 -0500)] 
New GETINFO consensus/packages to expose package information from consensus

10 years agoFixes on prop227 comments, based on comments by mcs on #10395
Nick Mathewson [Tue, 27 Jan 2015 21:31:48 +0000 (16:31 -0500)] 
Fixes on prop227 comments, based on comments by mcs on #10395

10 years agoMerge branch 'doc13702_squashed'
Nick Mathewson [Tue, 27 Jan 2015 17:42:12 +0000 (12:42 -0500)] 
Merge branch 'doc13702_squashed'

10 years agoAdding section on OpenBSD to doc/TUNING
rl1987 [Fri, 14 Nov 2014 21:07:35 +0000 (23:07 +0200)] 
Adding section on OpenBSD to doc/TUNING

10 years agoGroundwork for AF_UNIX hidden services in rendservice.c
Andrea Shepard [Thu, 22 Jan 2015 02:22:33 +0000 (02:22 +0000)] 
Groundwork for AF_UNIX hidden services in rendservice.c

10 years agoBail early in cpuworker_onion_handshake_replyfn if the circuit is marked
Nick Mathewson [Mon, 26 Jan 2015 15:19:07 +0000 (10:19 -0500)] 
Bail early in cpuworker_onion_handshake_replyfn if the circuit is marked

10 years agochanges file for bug14350
Nick Mathewson [Mon, 26 Jan 2015 15:06:36 +0000 (10:06 -0500)] 
changes file for bug14350

10 years agoconfigure.ac: fix disabling systemd notification support
Anthony G. Basile [Sun, 25 Jan 2015 00:10:46 +0000 (19:10 -0500)] 
configure.ac: fix disabling systemd notification support

If --disable-systemd is given, $enable_systemd is set to "no", not "false".
As a result, if libsystemd is found, we still turn on systemd support even
if we explicitly disable it with --disable-system.

10 years agoTry to fix some more memory leaks in the unit tests
Nick Mathewson [Fri, 23 Jan 2015 16:35:05 +0000 (11:35 -0500)] 
Try to fix some more memory leaks in the unit tests

10 years agoFix some memory leaks in new address tests
Nick Mathewson [Fri, 23 Jan 2015 16:26:40 +0000 (11:26 -0500)] 
Fix some memory leaks in new address tests

10 years agowhitespace fixes
Nick Mathewson [Fri, 23 Jan 2015 16:18:28 +0000 (11:18 -0500)] 
whitespace fixes

10 years agoSplit the slow unit tests into their own binary
Nick Mathewson [Fri, 23 Jan 2015 16:15:53 +0000 (11:15 -0500)] 
Split the slow unit tests into their own binary

This can run in parallel with the faster ones and the other tests.

10 years agoMerge branch 'if_addr_refactoring_squashed'
Nick Mathewson [Fri, 23 Jan 2015 15:13:37 +0000 (10:13 -0500)] 
Merge branch 'if_addr_refactoring_squashed'

Conflicts:
src/test/include.am
src/test/test.c

10 years agoRefactor code that looks up addresses from interfaces
rl1987 [Sat, 24 May 2014 12:03:14 +0000 (15:03 +0300)] 
Refactor code that looks up addresses from interfaces

Now the code has separate implementation and examination functions,
uses smartlists sanely, and has relatively decent test coverage.

10 years agochanges file for 9969
Nick Mathewson [Fri, 23 Jan 2015 15:02:49 +0000 (10:02 -0500)] 
changes file for 9969

10 years agoTweak the 9969 fix a little
Nick Mathewson [Fri, 23 Jan 2015 14:37:08 +0000 (09:37 -0500)] 
Tweak the 9969 fix a little

If we have busy nodes and excluded nodes, then don't retry with the
excluded ones enabled.  Instead, wait for the busy ones to be nonbusy.

10 years agoMerge remote-tracking branch 'public/ticket9969'
Nick Mathewson [Fri, 23 Jan 2015 14:36:00 +0000 (09:36 -0500)] 
Merge remote-tracking branch 'public/ticket9969'

Conflicts:
src/or/directory.c
src/or/routerlist.c
src/or/routerlist.h
src/test/include.am
src/test/test.c

10 years agofix warnings from lintChanges
Nick Mathewson [Fri, 23 Jan 2015 14:09:00 +0000 (09:09 -0500)] 
fix warnings from lintChanges

10 years agoMerge remote-tracking branch 'public/ticket13762'
Nick Mathewson [Fri, 23 Jan 2015 13:55:31 +0000 (08:55 -0500)] 
Merge remote-tracking branch 'public/ticket13762'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Fri, 23 Jan 2015 13:53:21 +0000 (08:53 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Fri, 23 Jan 2015 13:52:55 +0000 (08:52 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5

10 years agoMerge remote-tracking branch 'karsten/geoip6-jan2015' into maint-0.2.4
Nick Mathewson [Fri, 23 Jan 2015 13:52:35 +0000 (08:52 -0500)] 
Merge remote-tracking branch 'karsten/geoip6-jan2015' into maint-0.2.4

10 years agoMerge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 23 Jan 2015 13:52:20 +0000 (08:52 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4

10 years agofix some warnings in compat_threads.c
Nick Mathewson [Thu, 22 Jan 2015 19:22:39 +0000 (14:22 -0500)] 
fix some warnings in compat_threads.c

10 years agoMove a redundant _GNU_SOURCE to where it is not redundant
Nick Mathewson [Thu, 22 Jan 2015 19:18:10 +0000 (14:18 -0500)] 
Move a redundant _GNU_SOURCE to where it is not redundant

10 years agoUpdate geoip6 to the January 7 2015 database.
Karsten Loesing [Thu, 22 Jan 2015 08:58:29 +0000 (09:58 +0100)] 
Update geoip6 to the January 7 2015 database.

10 years agoUpdate geoip to the January 7 2015 database.
Karsten Loesing [Thu, 22 Jan 2015 08:56:54 +0000 (09:56 +0100)] 
Update geoip to the January 7 2015 database.

10 years agouse the correct free fn. spotted by dgoulet
Nick Mathewson [Wed, 21 Jan 2015 19:54:38 +0000 (14:54 -0500)] 
use the correct free fn. spotted by dgoulet

10 years agoMerge branch 'better_workqueue_v3_squashed'
Nick Mathewson [Wed, 21 Jan 2015 19:47:16 +0000 (14:47 -0500)] 
Merge branch 'better_workqueue_v3_squashed'

10 years agoFix: remove whitespace and update a comment in cpuworker.c
David Goulet [Wed, 21 Jan 2015 19:29:03 +0000 (14:29 -0500)] 
Fix: remove whitespace and update a comment in cpuworker.c

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix: change copyright year in workqueue and thread tests
David Goulet [Wed, 21 Jan 2015 18:58:18 +0000 (13:58 -0500)] 
Fix: change copyright year in workqueue and thread tests

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoSupport monotonic time for pthread_cond_timedwait
David Goulet [Wed, 21 Jan 2015 18:18:56 +0000 (13:18 -0500)] 
Support monotonic time for pthread_cond_timedwait

This is to avoid that the pthread_cond_timedwait() is not affected by time
adjustment which could make the waiting period very long or very short which
is not what we want in any cases.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge branch 'bug9819'
Nick Mathewson [Wed, 21 Jan 2015 18:00:26 +0000 (13:00 -0500)] 
Merge branch 'bug9819'

10 years agofix a comment
Nick Mathewson [Wed, 21 Jan 2015 18:00:14 +0000 (13:00 -0500)] 
fix a comment

10 years agoFix up some workqueue/threading issues spotted by dgoulet.
Nick Mathewson [Wed, 21 Jan 2015 17:22:41 +0000 (12:22 -0500)] 
Fix up some workqueue/threading issues spotted by dgoulet.

10 years agohandle EINTR in compat_*threads.c
Nick Mathewson [Wed, 21 Jan 2015 17:18:11 +0000 (12:18 -0500)] 
handle EINTR in compat_*threads.c

10 years agoMerge branch 'bug14084'
Nick Mathewson [Tue, 20 Jan 2015 19:07:37 +0000 (14:07 -0500)] 
Merge branch 'bug14084'

10 years agoExpand manpage for HiddenServiceAllowUnknownPorts based on suggestions from qwerty1...
Nick Mathewson [Tue, 20 Jan 2015 19:07:22 +0000 (14:07 -0500)] 
Expand manpage for HiddenServiceAllowUnknownPorts based on suggestions from qwerty1 and dgoulet

10 years agoMerge remote-tracking branch 'dgoulet/bug14224_025_v1'
Nick Mathewson [Tue, 20 Jan 2015 19:02:07 +0000 (14:02 -0500)] 
Merge remote-tracking branch 'dgoulet/bug14224_025_v1'

10 years agoMerge branch 'ticket14254_squashed'
Nick Mathewson [Tue, 20 Jan 2015 18:46:56 +0000 (13:46 -0500)] 
Merge branch 'ticket14254_squashed'

10 years agoFix SocksSocket 0. That was easy!
Nick Mathewson [Fri, 16 Jan 2015 16:37:11 +0000 (11:37 -0500)] 
Fix SocksSocket 0.  That was easy!

10 years agoSome days I just can't C.
Nick Mathewson [Mon, 19 Jan 2015 16:58:40 +0000 (11:58 -0500)] 
Some days I just can't C.

10 years agoMake check-spaces happier.
Nick Mathewson [Mon, 19 Jan 2015 16:56:03 +0000 (11:56 -0500)] 
Make check-spaces happier.

10 years agoRemove a now-needless testing workaround.
Nick Mathewson [Mon, 19 Jan 2015 16:55:52 +0000 (11:55 -0500)] 
Remove a now-needless testing workaround.

10 years agoReplace a 4 with a 6; fix a bug that nobody noticed :/
Nick Mathewson [Mon, 19 Jan 2015 16:51:08 +0000 (11:51 -0500)] 
Replace a 4 with a 6; fix a bug that nobody noticed :/

Fixes 14280 bugfix on 1053af0b9c4127873034a935ce33 in 0.2.4.7-alpha.

10 years agoMerge branch 'bug7555_v2_squashed'
Nick Mathewson [Mon, 19 Jan 2015 16:43:41 +0000 (11:43 -0500)] 
Merge branch 'bug7555_v2_squashed'

Conflicts:
src/or/connection_edge.c

10 years agoAdd a bunch of new comments to explain connection_ap_rewrite{,_and_attach}
Nick Mathewson [Sun, 18 Jan 2015 20:10:35 +0000 (15:10 -0500)] 
Add a bunch of new comments to explain connection_ap_rewrite{,_and_attach}

Also, do a little light refactoring to move some variable declarations
around and make a few things const

Also fix an obnoxious bug on checking for the DONE stream end reason.
It's not a flag; it's a possible value or a variable that needs to be
masked.

10 years agoFix: close intro circuit if no more intro points are usable
David Goulet [Mon, 19 Jan 2015 15:23:58 +0000 (10:23 -0500)] 
Fix: close intro circuit if no more intro points are usable

Once a NACK is received on the intro circuit, tor tries an other usable one
by extending the current circuit to it. If no more intro points are usable,
now close the circuit. Also, it's reason is changed before closing it so we
don't report again an intro point failure and trigger an extra HS fetch.

Fixes #14224

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoFix: close intro circuit if no more intro points are usable
David Goulet [Fri, 16 Jan 2015 22:43:33 +0000 (17:43 -0500)] 
Fix: close intro circuit if no more intro points are usable

Once a NACK is received on the intro circuit, tor tries an other usable one
by extending the current circuit to it. If no more intro points are usable,
now close the circuit.

Fixes #14224

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
10 years agoMerge remote-tracking branch 'public/ticket13037'
Nick Mathewson [Sun, 18 Jan 2015 21:07:08 +0000 (16:07 -0500)] 
Merge remote-tracking branch 'public/ticket13037'

Conflicts:
src/or/config.c

10 years agoRemove the unused rend_cache_entry_t->received field.
Roger Dingledine [Sun, 18 Jan 2015 20:53:06 +0000 (15:53 -0500)] 
Remove the unused rend_cache_entry_t->received field.

(Patch from arma, commit message from nick.)

Closes #14222.

10 years agoMerge remote-tracking branch 'public/bug14219_025'
Nick Mathewson [Sun, 18 Jan 2015 20:41:13 +0000 (15:41 -0500)] 
Merge remote-tracking branch 'public/bug14219_025'

10 years agoDo not replace a HS descriptor with a different replica of itself
Roger Dingledine [Sun, 18 Jan 2015 20:39:12 +0000 (15:39 -0500)] 
Do not replace a HS descriptor with a different replica of itself

This fixes a bug where we'd fetch different replicas of the same
descriptor for a down hidden service over and over, until we got lucky
and fetched the same replica twice in a row.

Fixes bug 14219; bugfix on 0.2.0.10-alpha.

(Patch from Roger; commit message and changes file by Nick.)

10 years agoMerge remote-tracking branch 'public/bug14261_025'
Nick Mathewson [Sun, 18 Jan 2015 20:28:35 +0000 (15:28 -0500)] 
Merge remote-tracking branch 'public/bug14261_025'

Conflicts:
src/or/directory.c

10 years agoIncrease limit for status vote download size by a factor of 5.
Nick Mathewson [Sun, 18 Jan 2015 20:25:29 +0000 (15:25 -0500)] 
Increase limit for status vote download size by a factor of 5.

We've started to hit the limit here.  We introduced the limit in
0.1.2.5-alpha.  This fixes bug 14261, but we should have a smarter way
to not actually do the behavior this permits.  See #14267 for a ticket
about fixing that.

10 years agoFix memory leak in connection_ap_handshake_rewrite_and_attach()
Nick Mathewson [Sun, 18 Jan 2015 19:19:26 +0000 (14:19 -0500)] 
Fix memory leak in connection_ap_handshake_rewrite_and_attach()

Spotted by asn.  #14259.  Bugfix on 368eb6a97 in 0.2.0.1-alpha.

10 years agoMerge remote-tracking branch 'public/bug12485'
Nick Mathewson [Sun, 18 Jan 2015 18:49:30 +0000 (13:49 -0500)] 
Merge remote-tracking branch 'public/bug12485'

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Sun, 18 Jan 2015 18:49:04 +0000 (13:49 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'

Conflicts:
src/test/test_relaycell.c
src/test/test_util.c

10 years agofix another mingw64 unit test warnin
Nick Mathewson [Fri, 16 Jan 2015 16:49:58 +0000 (11:49 -0500)] 
fix another mingw64 unit test warnin

10 years agochanges file for 9396005428c40cf7ef9f1e6ae1d725f3155391f5
Nick Mathewson [Fri, 16 Jan 2015 16:47:49 +0000 (11:47 -0500)] 
changes file for 9396005428c40cf7ef9f1e6ae1d725f3155391f5

10 years agochanges suggested by weasel
Nick Mathewson [Fri, 16 Jan 2015 16:46:20 +0000 (11:46 -0500)] 
changes suggested by weasel

10 years agoUnify parse_unix_socket_config and parse_port_config
Nick Mathewson [Fri, 16 Jan 2015 16:32:39 +0000 (11:32 -0500)] 
Unify parse_unix_socket_config and parse_port_config

This incidentally makes unix SocksSocket support all the same options
as SocksPort.

This patch breaks 'SocksSocket 0'; next will restore it.

Resolves 14254.

10 years agoNo, client-side DNS cacheing should not be on by default.
Nick Mathewson [Fri, 16 Jan 2015 14:32:22 +0000 (09:32 -0500)] 
No, client-side DNS cacheing should not be on by default.

10 years agoMerge branch 'bug8546_squashed'
Nick Mathewson [Fri, 16 Jan 2015 14:31:50 +0000 (09:31 -0500)] 
Merge branch 'bug8546_squashed'

Conflicts:
src/or/connection.c
src/or/or.h
src/or/relay.c

10 years agochanges file for bug 8546
Nick Mathewson [Sun, 4 Jan 2015 00:47:06 +0000 (19:47 -0500)] 
changes file for bug 8546

10 years agoReplace field-by-field copy with memcpy for entry_port_cfg
Nick Mathewson [Sat, 3 Jan 2015 21:25:56 +0000 (16:25 -0500)] 
Replace field-by-field copy with memcpy for entry_port_cfg

10 years agoMove entry_port_cfg_t fields in entry_connection_t
Nick Mathewson [Sat, 3 Jan 2015 21:11:23 +0000 (16:11 -0500)] 
Move entry_port_cfg_t fields in entry_connection_t

Also rename some options for uniformity, and apply this script:

@@
entry_connection_t *conn;
@@
 conn->
+entry_cfg.
\(
 isolation_flags
\|
 session_group
\|
 socks_prefer_no_auth
\|
 ipv4_traffic
\|
 ipv6_traffic
\|
 prefer_ipv6
\|
 cache_ipv4_answers
\|
 cache_ipv6_answers
\|
 use_cached_ipv4_answers
\|
 use_cached_ipv6_answers
\|
 prefer_ipv6_virtaddr
\)

10 years agoCombine entry_port_cfg_t fields in listener_connection_t
Nick Mathewson [Sat, 3 Jan 2015 20:58:30 +0000 (15:58 -0500)] 
Combine entry_port_cfg_t fields in listener_connection_t

Also, revise the code using these options with this cocci script:

@@
listener_connection_t *conn;
@@
 conn->
+entry_cfg.
\(
 isolation_flags
\|
 session_group
\|
 socks_prefer_no_auth
\|
 ipv4_traffic
\|
 ipv6_traffic
\|
 prefer_ipv6
\|
 cache_ipv4_answers
\|
 cache_ipv6_answers
\|
 use_cached_ipv4_answers
\|
 use_cached_ipv6_answers
\|
 prefer_ipv6_virtaddr
\)

10 years agoSplit client-specific and server-specific parts of port_cfg_t
Nick Mathewson [Sat, 3 Jan 2015 17:44:10 +0000 (12:44 -0500)] 
Split client-specific and server-specific parts of port_cfg_t

Also, apply this cocci script to transform accesses. (Plus manual
migration for accesses inside smartlist_foreach loops.)

@@

port_cfg_t *cfgx;
@@
 cfgx->
+server_cfg.
\(
 no_advertise
\|
 no_listen
\|
 all_addrs
\|
 bind_ipv4_only
\|
 bind_ipv6_only
\)

@@

port_cfg_t *cfgx;
@@
 cfgx->
+entry_cfg.
\(
 isolation_flags
\|
 session_group
\|
 socks_prefer_no_auth
\|
 ipv4_traffic
\|
 ipv6_traffic
\|
 prefer_ipv6
\|
 cache_ipv4_answers
\|
 cache_ipv6_answers
\|
 use_cached_ipv4_answers
\|
 use_cached_ipv6_answers
\|
 prefer_ipv6_virtaddr
\)

10 years agoFix a compilation warning in the unit tests
Nick Mathewson [Thu, 15 Jan 2015 17:56:57 +0000 (12:56 -0500)] 
Fix a compilation warning in the unit tests

10 years agoMerge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Thu, 15 Jan 2015 17:38:43 +0000 (12:38 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.5'