teor
bcb38d984d
practracker: Update the exceptions file with improvements
...
Regenerate the exceptions file, but only commit the improvements.
Includes changes from 32213 and other tickets.
2019-11-05 12:50:08 +10:00
teor
8b91fa7075
config: Run "make autostyle"
...
Part of 32213.
2019-11-05 12:01:29 +10:00
teor
81972353cb
scripts: Fix update_versions.py for out-of-tree builds
...
Fixes bug 32371; bugfix on 0.4.0.1-alpha.
2019-11-05 12:00:59 +10:00
teor
9e2a2d38f4
Makefile: Fix "make autostyle" for out-of-tree builds
...
Fixes bug 32370; bugfix on 0.4.1.2-alpha.
2019-11-05 12:00:57 +10:00
teor
c065ad3e3d
practracker: Rename functions modified by a previous commit
...
Part of 32213.
2019-11-05 11:36:26 +10:00
teor
f10aa77afe
config: Wrap a long line in relay_config.c
...
Part of 32213.
2019-11-05 11:36:19 +10:00
teor
cb8ebc0b4c
config: Rename new global functions with a prefix
...
This is an automated commit, generated by this command:
./scripts/maint/rename_c_identifier.py \
get_dirportfrontpage relay_get_dirportfrontpage \
parse_port_config port_parse_config \
count_real_listeners port_count_real_listeners \
parse_transport_line pt_parse_transport_line \
ensure_bandwidth_cap config_ensure_bandwidth_cap \
get_effective_bwrate relay_get_effective_bwrate \
get_effective_bwburst relay_get_effective_bwburst \
warn_nonlocal_ext_orports port_warn_nonlocal_ext_orports \
parse_ports_relay port_parse_ports_relay \
update_port_set_relay port_update_port_set_relay \
get_transport_bindaddr_from_config pt_get_bindaddr_from_config \
get_options_for_server_transport pt_get_options_for_server_transport
It was generated with --no-verify, because it has some long lines.
Part of 32213.
2019-11-05 11:28:57 +10:00
teor
96334d6f7f
changes: file for 32213
2019-11-05 11:26:26 +10:00
teor
7504711510
test/parseconf: Add conf_examples for relays
...
Tests relay/relay_config.c.
Part of 32213.
2019-11-05 11:12:59 +10:00
teor
6d52b5ce91
test/parseconf: Add conf_examples for PTs
...
Tests relay/transport_config.c.
Part of 32213.
2019-11-05 11:12:59 +10:00
teor
233b96d83a
test/parseconf: Always show the result file name on failure
...
Obviously correct fixes on already reviewed code.
2019-11-05 11:12:50 +10:00
teor
3763dd9987
test/parseconf: Run all the tests, even if one fails
...
Obviously correct fixes on already reviewed code.
2019-11-05 11:08:36 +10:00
teor
1dd6717db5
test/parseconf: Consistenly use FAIL
...
Obviously correct fixes on already reviewed code.
2019-11-05 11:08:36 +10:00
teor
03618e0d68
test/parseconf: Don't specify a path for 'true'
...
Obviously correct fixes on already reviewed code.
2019-11-05 11:08:36 +10:00
teor
98637a4782
test/parseconf: Send all errors to stderr
...
Obviously correct fixes on already reviewed code.
2019-11-05 11:08:36 +10:00
teor
5b04db59f6
test/scripts: Use the same code to find the tor binary
...
This change makes sure we are always using the coverage binary, when
coverage is enabled.
Fixes bug 32368; bugfix on 0.2.7.3-rc.
2019-11-05 11:07:31 +10:00
teor
f29de4b8d2
confmgt: Stop adding a space, when there is no option value
...
Fixes bug 32352; bugfix on 0.0.9pre6.
2019-11-05 11:01:28 +10:00
teor
5d85c247e8
test/stats: Add minimal tests for rephist mtbf
...
Part of 32213.
2019-11-05 10:50:39 +10:00
teor
5d0848ebde
test: Split stats into its own file
...
Part of 32213.
2019-11-05 10:50:39 +10:00
teor
73c0439d48
relay: Refactor tests, and add extra options tests
...
Part of 32213.
2019-11-05 10:49:56 +10:00
Nick Mathewson
db40202810
Document directories in "app"
2019-11-04 17:23:50 -05:00
Nick Mathewson
a33d1dce8a
directory-level documentation for feature/*
2019-11-04 17:07:38 -05:00
Nick Mathewson
e1cdca2e4f
directory-level doxygen for "src/core"
2019-11-04 16:28:28 -05:00
Nick Mathewson
607b1ff776
Move much of 00-overview.md into doxygen.
2019-11-04 12:24:46 -05:00
Nick Mathewson
a5085c52d0
Move most of crypto overview into doxygen.
2019-11-04 12:10:28 -05:00
Nick Mathewson
211a2e0a8f
Move doc/HACKING/design/01b-collections.md into doxygen.
2019-11-04 12:07:38 -05:00
Nick Mathewson
fb20618e28
Divide 01a-memory.md into doxygen.
2019-11-04 12:04:32 -05:00
Nick Mathewson
4bf73dfa26
Remove now-superseded part of doc/HACKING/design.
2019-11-04 11:52:49 -05:00
Nick Mathewson
76e8effc7b
Doxygen: document the rest of the directories in lib.
...
(This copies documentation from doc/HACKING/design, and edits for
concisensess and clarity.)
2019-11-04 11:51:38 -05:00
Nick Mathewson
fd27136329
Doxygen: fix a remaining \ref-to-directory
...
This one was missed by the perl script in the last commit because
it spanned a newline.
2019-11-04 11:13:30 -05:00
Nick Mathewson
9b13191192
Doxygen: use \refdir everywhere.
...
This commit was generated with:
find src -name '*.dox' |xargs perl -i -pe 's{\\ref src/(\S+) \"\S+}{\\refdir{$1}};'
2019-11-04 11:12:27 -05:00
Nick Mathewson
b95bc4d839
Doxygen: define an alias for linking to a directory.
...
We need to use this kind of trickery to make directory links work in
out-of-tree builds.
2019-11-04 11:08:04 -05:00
Nick Mathewson
62a473debf
Doxygen: Avoid ambiguity in @dir directives
...
This commit was automatically generated with:
find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};'
2019-11-04 10:23:36 -05:00
Nick Mathewson
51a9892914
doxygen: Take "lib" descriptions from doc/HACKING/design.
...
This commit takes descriptions for src/lib and moves them into our
doxygen hierarchy. I've covered everything from lib/cc through
lib/sandbox here.
2019-11-04 10:21:10 -05:00
Nick Mathewson
b6b1257099
Remove spurious lib/stats doxygen file.
2019-11-04 10:19:23 -05:00
Nick Mathewson
d3af23783c
Document our top-level directories
2019-11-04 07:40:20 -05:00
Nick Mathewson
7fc077ed25
Add stub directory-level documentation for most source directories
...
This includes app, core, feature, lib, and tools, but excludes
ext, test, and trunnel.
This was generated by the following shell script:
cd src
for dname in $(find lib core feature app tools -type d |grep -v \\.deps$); do
keyword="$(echo "$dname" |sed -e "s/\//_/" )"
target="${dname}/${keyword}.dox"
echo "$target"
cat <<EOF >"$target"
/**
@dir ${dname}
@brief ${dname}
**/
EOF
git add "$target"
done
2019-11-04 07:40:14 -05:00
teor
51ca6dea08
relay: Simplify relay/transport_config
...
Minor simplification and refactoring.
Part of 32113.
2019-11-04 13:10:01 +10:00
teor
2dfd18018f
relay: Disable server transport options when the module is disabled
...
This commit:
* disables the ExtORPort, ServerTransportPlugin,
ServerTransportListenAddress, and ServerTransportOptions options,
when the relay module is disabled.
Part of 32213.
2019-11-04 13:10:01 +10:00
teor
4d9a5c77f8
relay: Simplify some relay_config code
...
Part of 32213.
2019-11-04 13:10:00 +10:00
teor
d3c8486724
relay: Disable relay config when the module is disabled
...
This commit:
* disables the ORPort, DirPort, DirCache, and BridgeRelay options,
* sets ClientOnly 1,
* disables relay_config.c and relay/transport_config.c,
* disables test_rebind.sh, and
* modifies the expected results for test_parseconf.sh,
when the relay module is disabled.
Part of 32213.
2019-11-04 13:10:00 +10:00
teor
85e50954d8
relay: Make a transport_config function private
...
Part of 32213.
2019-11-04 13:10:00 +10:00
teor
fd18d51270
dirauth: Refactor some code and tests
...
Minor simplification and refactoring.
Make the dirauth tests focus on testing the intention of the code,
rather than option processing order.
Part of 32213.
2019-11-04 13:10:00 +10:00
Nick Mathewson
afc267e887
Add a stub main page for the documentation.
2019-11-03 15:04:35 -05:00
Nick Mathewson
e2da29e045
Doxygen: Better path handling.
...
This change tells doxygen to include all files not explicitly
excluded, and to document paths along with filenames.
2019-11-03 15:00:14 -05:00
Nick Mathewson
7ec314a67f
Doxygen: accept .dox as pure doxygen, and interpret everything as C
2019-11-03 12:16:36 -05:00
Nick Mathewson
096cbfb8b0
Merge remote-tracking branch 'tor-github/pr/1480'
2019-11-01 09:35:17 -04:00
Nick Mathewson
7824a65aa0
Doxyfile.in: switch to a tor-style green color scheme.
2019-11-01 09:23:10 -04:00
David Goulet
e85f86bb7b
dos: Add HS DoS INTRO2 rejected stats in heartbeat
...
The DoS heartbeat now contains the number of rejected INTRODUCE2 cell that the
relay has seen.
Closes #31371
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-31 13:57:14 -04:00
David Goulet
ff8823d03c
dos: Account rejection in hs_dos_can_send_intro2
...
This required a small refactoring so we could count properly the INTRO2
sending disallow.
Part of #31371
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-31 13:50:36 -04:00