Linus Nordberg
044da1bf0f
Add configure option AuthDirHasIPv6Connectivity.
...
Implements enhancement 5974.
2012-07-19 18:21:22 +02:00
Linus Nordberg
cdef2b181a
Rename routers_have_same_or_addr() to reflect the fact that it now checks both OR ports.
2012-07-19 18:21:22 +02:00
Linus Nordberg
7c80a4502c
Include IPv6 OR ports in status documents only if we're a bridge authority.
2012-07-19 18:21:21 +02:00
Linus Nordberg
6d99c51f15
Don't put unreachable IPv6 OR port in routerstatus.
...
To have only reachable ports in "a" lines.
2012-07-19 18:21:21 +02:00
Linus Nordberg
dda177b19e
Add "a" line to status document.
2012-07-19 18:21:21 +02:00
Linus Nordberg
4cce8ab742
Add last_reachable and testing_since for IPv6 OR port.
2012-07-19 18:21:20 +02:00
Linus Nordberg
c1ff07440e
Don't assume that a node has routerinfo.
...
We can end up in dirserv_orconn_tls_done() with a node missing
routerinfo in at least two cases -- command_process_certs_cell() and
connection_or_check_valid_tls_handshake() -- and probably more.
2012-07-19 18:21:20 +02:00
Linus Nordberg
631ec5c4fe
Move last_reachable and testing_since from routerinfo_t to node_t.
2012-07-19 18:21:20 +02:00
Nick Mathewson
24451e6f7d
Avoid double-typedef of transport_t.
...
You can say "struct foo_t" as much as you want, but you'd better not
have "typedef struct foo_t foo_t" more than once.
Fix for bug 6416. Bug not in any released version of Tor.
2012-07-19 09:06:11 -04:00
Nick Mathewson
f8c9cc713d
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-07-18 10:14:40 -04:00
Nick Mathewson
b355ddb20f
Merge branch 'smartlist_shorten' into maint-0.2.3
2012-07-18 10:14:14 -04:00
Nick Mathewson
ec8bdc5da8
Merge remote-tracking branch 'asn/bug3589'
2012-07-17 12:05:08 -04:00
Nick Mathewson
f9478b7a79
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-07-17 12:03:10 -04:00
Nick Mathewson
4cac5df554
Improve message on spurious SOCKSListenAddress
2012-07-17 12:02:55 -04:00
Nick Mathewson
efdf6c7118
Fix the remaining instances of nexted SMARTLIST_FOREACH
2012-07-17 10:41:24 -04:00
Nick Mathewson
7faf115dff
Change all SMARTLIST_FOREACH loops of >=10 lines to use BEGIN/END
...
The SMARTLIST_FOREACH macro is more convenient than BEGIN/END when
you have a nice short loop body, but using it for long bodies makes
your preprocessor tell the compiler that all the code is on the same
line. That causes grief, since compiler warnings and debugger lines
will all refer to that one line.
So, here's a new style rule: SMARTLIST_FOREACH blocks need to be
short.
2012-07-17 10:34:08 -04:00
Nick Mathewson
0b6fb5ebcd
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-07-17 09:50:18 -04:00
Linus Nordberg
21c6c84853
Allow TestingTorNetwork when alternate dir and bridge authorities are set.
...
Allow TestingTorNetwork when AlternateDirAuthority and
AlternateBridgeAuthority is set even if DirServer is not.
2012-07-17 09:35:38 -04:00
Nick Mathewson
7ac8a4a037
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-07-16 11:50:53 -04:00
Nick Mathewson
93b7301755
Refer to the correct variable in a loop when parsing entry guard state
...
Fixes bug 6397 and coverity issue 709599. Bugfix on 0.2.3.17-beta.
2012-07-16 11:49:45 -04:00
George Kadianakis
8b9f4d75f2
Address Nick's comments.
...
- Add a changes/ file.
- Make it compile under --enable-gcc-warnings.
- Update the file-level documentation of src/or/transports.c.
- Only update descriptor if at least a managed proxy was configured.
- Add our external IP address to the extra-info descriptor instead of 0.0.0.0.
2012-07-12 15:28:43 +02:00
Roger Dingledine
1fee920999
Merge branch 'maint-0.2.3'
2012-07-06 08:59:26 -04:00
Roger Dingledine
27ec0248d2
Merge remote-tracking branch 'nickm/bug6271_part_a' into maint-0.2.3
2012-07-06 08:57:29 -04:00
Nick Mathewson
419f541aa7
Fix a bug handling SENDME cells on nonexistent streams.
...
This could result in bizarre window values. Report and patch
contributed pseudymously. Fixes part of bug 6271. This bug was
introduced before the first Tor release, in svn commit r152.
(bug 6271, part a.)
2012-07-06 07:29:54 -04:00
Nick Mathewson
7e8d7a017e
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-07-05 05:08:54 -04:00
Nick Mathewson
e9b33ed1bf
On windows, ENOBUFS starts with WSA. #6296 . Fix on 0.2.18-rc
2012-07-05 05:01:00 -04:00
George Kadianakis
f8e49c5789
Change extra-info "method" to "transport".
2012-07-03 21:26:03 +03:00
George Kadianakis
ca4e986c1d
Mark descriptor as dirty if all managed proxies are configured.
2012-07-03 21:26:03 +03:00
George Kadianakis
9dea3a03b9
Add pluggable transport info to extra-info descriptors.
2012-07-03 21:26:03 +03:00
George Kadianakis
4bafe24400
Constify some functions.
2012-07-03 21:26:03 +03:00
George Kadianakis
17caec3676
Make some transports.c functions static.
...
- Also reorder functions.
2012-07-03 21:26:03 +03:00
George Kadianakis
aecc728a5a
Refactor mp->transports to use transport_t.
2012-07-03 21:26:03 +03:00
George Kadianakis
d11b772a6c
Introduce a transport_t deep copy function.
2012-07-03 21:26:03 +03:00
George Kadianakis
6173d36340
Move transport-related functions from circuitbuild.c to transports.c.
...
Move 'transport_t' to transports.h, and all transport-related
functions that don't rely on 'bridge_list' to transports.c.
2012-07-03 21:26:03 +03:00
Roger Dingledine
46434ecf5b
Merge branch 'maint-0.2.3'
2012-07-01 17:37:59 -04:00
Roger Dingledine
d13389b30e
Revert "Detect bug 6252 (unexpected sendme cell)"
...
This reverts commit c32ec9c425
.
It turns out the two sides of the circuit don't actually stay in sync,
so it is perfectly normal for the circuit window on the exit relay to
grow to 2000+. We should fix that bug and then reconsider this patch.
2012-07-01 17:36:35 -04:00
Roger Dingledine
6061cd584c
Merge branch 'maint-0.2.3'
2012-07-01 05:32:37 -04:00
Roger Dingledine
c32ec9c425
Detect bug 6252 (unexpected sendme cell)
...
I only check on circuits, not streams, since bloating your stream
window past the initial circuit window can't help you much.
Also, I compare to CIRCWINDOW_START_MAX so we don't have surprising
races if we lower CIRCWINDOW_START for an experiment.
2012-07-01 05:27:08 -04:00
Nick Mathewson
6abdcdf116
Fix crash bug from 4a8eaad7
(Bug 6255)
...
We were doing a tor_strclear() on client_keys_str when it might not
even be set.
Fix for bug 6255; bug not in any release of Tor. Thanks to katmagic
for finding this one!
2012-06-29 00:32:27 -04:00
Nick Mathewson
19a81ef020
Merge commit '81cd3d7ad641a8dbf'
2012-06-28 15:52:57 -04:00
Brendan C
a6169800f8
Fix bug 3842: add a GETINFO signal/names
...
Also refactor SIGNAL so that it and signal/names use the same table.
(commit message by nickm)
2012-06-28 15:39:19 -04:00
meejah
12298901fd
add new GETINFO config/defaults
...
returns the default values for every configuration item, similar
to GETINFO config/names; include a changes entry for it.
Fix for bug 4971
2012-06-28 15:15:51 -04:00
Roger Dingledine
dd7a27d17e
fix grammar in comment
2012-06-28 13:43:01 -04:00
Nick Mathewson
96746e39f6
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-28 10:57:23 -04:00
Nick Mathewson
217862b317
Merge remote-tracking branch 'public/bug6244_part2' into maint-0.2.3
2012-06-28 10:49:32 -04:00
Nick Mathewson
d4a64fdc02
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-28 10:48:06 -04:00
Andrea Shepard
bdc8270280
Downgrade 'Got a certificate, but we already have it' log message from warning to info, except when we're a dirauth (fixes bug 5238)
2012-06-28 10:42:43 -04:00
Nick Mathewson
d4285f03df
Extend tor_sscanf so it can replace sscanf in rephist.c
...
Fixes bug 4195 and Coverity CID 448
2012-06-28 09:54:05 -04:00
Nick Mathewson
28c42fe029
Fix GETINFO address-mappings/... with wildcarded addresses.
2012-06-27 23:55:01 -04:00
Nick Mathewson
e12eba55b2
Merge remote-tracking branch 'origin/maint-0.2.3'
2012-06-27 23:45:59 -04:00