aboutsummaryrefslogtreecommitdiff
path: root/src/core
AgeCommit message (Collapse)Author
2019-11-07Move netstatus (mainloop) state fields into mainloop's state.Nick Mathewson
2019-11-07Run "make autostyle"teor
2019-11-07Merge branch 'maint-0.4.2'teor
2019-11-07Merge remote-tracking branch 'tor-github/pr/1513' into maint-0.4.2teor
2019-11-06Add missing **/ to core_or.doxNick Mathewson
2019-11-06Turn the "dataflow" document into a doxygen page.Nick Mathewson
2019-11-06Do not try to shut down the event loop when it is not initialized.Nick Mathewson
Doing so caused us to crash in some unusual circumstances, such as using --verify-config to verify a configuration that failed during the options_act() stage. Fixes bug 32407; bugfix on 0.3.3.1-alpha.
2019-11-06Merge branch 'tor-github/pr/1491'David Goulet
2019-11-06Merge branch 'maint-0.2.9' into maint-0.3.5teor
2019-11-05Merge branch 'doxygen_libs'Nick Mathewson
2019-11-05Merge remote-tracking branch 'tor-github/pr/1477'teor
2019-11-04directory-level doxygen for "src/core"Nick Mathewson
2019-11-04Doxygen: Avoid ambiguity in @dir directivesNick Mathewson
This commit was automatically generated with: find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};'
2019-11-04Document our top-level directoriesNick Mathewson
2019-11-04Add stub directory-level documentation for most source directoriesNick Mathewson
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-04relay: Disable relay config when the module is disabledteor
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-01Merge remote-tracking branch 'tor-github/pr/1480'Nick Mathewson
2019-10-31dos: Add HS DoS INTRO2 rejected stats in heartbeatDavid Goulet
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-31config: Move server transport config into the relay moduleteor
This commit: * creates feature/relay/transport_config.[ch], * moves server transport config checks into them, * exposes some code from src/app/config.c (we'll refactor it later in 29211), and * adds thin wrappers to make the moved code compile. No functional changes: the moved code is still enabled, even if the relay module is disabled. (Some of the checks are re-ordered, so the order of some warnings may change.) Part of 32213.
2019-10-31config: Move relay port parsing into the relay moduleteor
This commit: * creates feature/relay/relay_config.[ch], * moves relay port parsing into them, * exposes some code from src/app/config.c (we'll refactor it later in 29211), and * adds thin wrappers to make the moved code compile. No functional changes: the moved code is still enabled, even if the relay module is disabled. Part of 32213.
2019-10-31dirauth: Disable dirauth config when the module is disabledteor
Part of 32213.
2019-10-31config: Move dirauth config into the dirauth moduleteor
This commit: * creates feature/dirauth/dirauth_config.[ch], * moves the dirauth config code into them, * copies some macros from src/app/config.c (we'll refactor them later in 29211), and * adds thin wrappers to make the moved code compile. No functional changes: the moved code is still enabled, even if the dirauth module is disabled. Part of 32213.
2019-10-30circ: Add an handle to circuit_tDavid Goulet
Closes #32343 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28ewma: Move private struct into header private sectionDavid Goulet
Facilitate testing. Part of #32196. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28cmux: Move circuitmux_s object into header in private sectionDavid Goulet
Step needed in order to access members of the object for unit tests. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28core: Add missing include in destroy_cell_queue_st.hDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28Merge branch 'tor-github/pr/1476'David Goulet
2019-10-26doxygen: add @file declarations for src/core/cryptoNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/orNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/mainloopNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
2019-10-26doxygen: add @file declarations for src/core/protoNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it. These declarations also turned up a doxygen warning for proto_socks.c; I fixed that too.
2019-10-26Rename confparse.[ch] identifiers to confmgt.[ch] identifiers.Nick Mathewson
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ confparse.h confmgt.h \ confparse.c confmgt.c \ CONFPARSE_PRIVATE CONFMGT_PRIVATE \ TOR_CONFPARSE_H TOR_CONFMGT_H
2019-10-24Merge remote-tracking branch 'tor-github/pr/1447'teor
2019-10-22Merge branch 'maint-0.4.2'Nick Mathewson
2019-10-22Merge remote-tracking branch 'tor-github/pr/1441' into maint-0.4.2Nick Mathewson
2019-10-22Re-run make autostyle.Nick Mathewson
2019-10-22Merge branch 'ticket31705_v2' into ticket31705_v2_mergedNick Mathewson
Conflicts: src/feature/dirparse/authcert_parse.c src/feature/dirparse/ns_parse.c src/feature/hs/hs_service.c src/lib/conf/conftesting.h src/lib/log/log.h src/lib/thread/threads.h src/test/test_options.c These conflicts were mostly related to autostyle improvements, with one or two due to doxygen fixes.
2019-10-22Disable a couple of iterator macros when COCCI is defined.Nick Mathewson
2019-10-22Use various COCCI tests to get mainloop.c to parse.Nick Mathewson
2019-10-22With COCCI defined, avoid PERIODIC_EVENT.Nick Mathewson
Coccinelle doesn't understand the particular pattern of token pasting we have going on here.
2019-10-22Merge branch 'from_setconf_removal_squashed'Nick Mathewson
2019-10-21Merge remote-tracking branch 'tor-github/pr/1430'Nick Mathewson
2019-10-21respect accountingmax during soft hibernationRoger Dingledine
Relays now respect their AccountingMax bandwidth again. When relays entered "soft" hibernation (which typically starts when we've hit 90% of our AccountingMax), we had stopped checking whether we should enter hard hibernation. Soft hibernation refuses new connections and new circuits, but the existing circuits can continue, meaning that relays could have exceeded their configured AccountingMax. This commit rolls back some of the cpu-saving fixes, where we tried to avoid calling so many of our events while we're off the network. That's because PERIODIC_EVENT_FLAG_NEED_NET checks net_is_disabled(), which returns true even if we're only in soft hibernation. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
2019-10-21Merge branch 'maint-0.4.2'teor
2019-10-21Merge remote-tracking branch 'tor-github/pr/1168'teor
2019-10-21Merge remote-tracking branch 'tor-github/pr/1422' into maint-0.4.2teor
2019-10-20relay: Implement HAVE_MODULE_RELAY for routermode.cteor
Part of 32123.
2019-10-20feature: Move proxy_mode() into new filesteor
proxy_mode() was in routermode.[ch], but it's actually a client mode. Move it into client/proxymode.[ch]. Part of 32123.
2019-10-18core: tabify a line in include.amteor
2019-10-17Move code to add default log into quiet_level.cNick Mathewson
I'm about to unify the code for handling this between main.c and config.c.