summaryrefslogtreecommitdiff
path: root/scripts/maint
AgeCommit message (Collapse)Author
2021-04-14geoip script: add options to output AS numbers.Nick Mathewson
The --include-asn option includes AS numbers in the geoip mapping. The --output-asn option makes the program generate a number-to-name mapping file. Additionally, the script now outputs ?? CC entries for networks that are listed but which have no country known.
2021-04-12scripts: Add default include path to ccls generated fileDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2021-03-02Add geoip-db-tool/Cargo.lock to version control, as is the custom.Nick Mathewson
2021-02-22Use rangemap 0.1.10Nick Mathewson
0.1.9 fixed a range-coalescing bug; 0.1.10 fixed a performance regression.
2021-02-22script to generate a commit for an updated geoip fileNick Mathewson
2021-02-22Rust tool to convert IPFire Location dump into CSV format.Nick Mathewson
The IPFire people provide a tool that collects data from several top-level sources, combines it into a single database, and annotates it with optional overrides. This tool transforms the "dump" format of their database into the form Tor expects.
2021-02-05Merge branch 'maint-0.4.4' into maint-0.4.5Alexander Færøy
2021-02-05Fix CI build: practracker error in connection_edge.c, take two.Alexander Færøy
This was a bad copy and paste error from the previous commit which generated a duplicated entry error from practracker. Unreviewed build fix. See: tor#40275.
2021-02-05Merge branch 'maint-0.4.4' into maint-0.4.5Alexander Færøy
2021-02-05Fix CI build: practracker error in connection_edge.c.Alexander Færøy
We solve this error by allowing the connection_exit_connect() function to be 130 lines long. Unreviewed build fix commit. See: tor#40275.
2021-01-21Merge branch 'maint-0.4.4' into maint-0.4.5David Goulet
2021-01-21Merge branch 'maint-0.4.3' into maint-0.4.4David Goulet
2021-01-21Merge branch 'maint-0.3.5' into maint-0.4.3David Goulet
2021-01-21build: Add "make lsp" commandDavid Goulet
Generates the compile_commands.json file using the "bear" application so the ccls server can be more efficient with our code base. Closes #40227 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-11-12Fix typos.Samanta Navarro
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
2020-10-06Expose TOR_PT_OUTBOUND_BIND_ADDRESS_{V4,V6} to Pluggable Transports.Alexander Færøy
This patch adds support for exposing the environment variables `TOR_PT_OUTBOUND_BIND_ADDRESS_V4` and `TOR_PT_OUTBOUND_BIND_ADDRESS_V6` to Pluggable Transport proccesses. These two values will contain the IPv4 and IPv6 address that the user have specified in torrc that they wish the PT to use for all outgoing IP packets. It is important to note here that it is up to the indvidual Pluggable Transport if they are willing to honor these values or ignore them completely. One can test this feature using the following dummy PT written in POSIX shell script: #!/bin/sh echo "LOG SEVERITY=warning MESSAGE=\"Value for IPv4: ${TOR_PT_OUTBOUND_BIND_ADDRESS_V4}\"" echo "LOG SEVERITY=warning MESSAGE=\"Value for IPv6: ${TOR_PT_OUTBOUND_BIND_ADDRESS_V6}\"" while true ; do sleep 1 done with the following entries in your torrc: OutboundBindAddressPT 203.0.113.4 OutboundBindAddress 203.0.113.5 OutboundBindAddressPT 2001:db8::4 OutboundBindAddress 2001:db8::5 See: https://bugs.torproject.org/5304
2020-09-23Implement IPv6 sybil protection.vnepveu
[This is a squashed patch for ticket 7193, based on taking a "git diff" for the original branch, then applying it with "git apply -3". I earlier attempted to squash the branch with "git rebase", but there were too many conflicts. --nickm]
2020-08-14Make options_init_from_torrc smaller #40102Daniel Pinto
Split implementation of several command line options from options_init_from_torrc into smaller isolated functions.
2020-08-11Merge branch 'maint-0.4.4'Nick Mathewson
2020-08-11Fix "run_check_subsystem_order.sh" to use $PYTHON.Nick Mathewson
Previously it just used /usr/bin/env/python, which would fail if we only had a "python3" binary. Fixes bug 40095; bugfix on 0.4.4.1-alpha.
2020-08-03Minor style improvements. #30045Daniel Pinto
2020-08-01Add --format argument to --key-expiration option. #30045Daniel Pinto
2020-07-20Merge remote-tracking branch 'tor-gitlab/mr/59'Nick Mathewson
2020-07-20Merge branch 'tor-gitlab/mr/65'Alexander Færøy
2020-07-17Add running glibc version to the log. #40047Daniel Pinto
Also adds the compiled and running glibc version when using the --library-versions flag.
2020-07-17Use gitlab-friendly URLs when formatting changelogs as HTMLNick Mathewson
Our old https://bugs.torproject.org/nnnn URLs only work for bugs numbered before 40000. Newer gitlab bugs need to have specific projects mentioned. This patch assumes that bugs are in tpo/core/tor by default, but allows us to refer to several other projects by saying e.g. "chutney#40002" if we want.
2020-07-14doc: Move manpages into doc/man/David Goulet
Closes #40044 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-08trace: Move LTTng specific declartion to .inc fileDavid Goulet
LTTng tracepoint probe declaration is not really following a C standard that coccinelle and checkSpace.pl likes. Move everything to a .inc file and standardize the trace_probes_circuit.h header to include that LTTng specific file if the instrumentation was enabled at configure time. Part of #32910 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-08trace: Add single tracepoint in circuit subsystemDavid Goulet
This is the very first tracepoint in tor. It is in the circuit subsystem for when a new circuit opens. LTTng instrumentation requires lot more around a tracepoint than USDT thus this commit only adds one tracepoint in order to outline a base to add more tracepoints later. The idea is that we separate subsystem into what LTTng defines as "providers" so the circuit provider contains the tracepoint definitions for the circuit subsystem. Signed-off-by: David Goulet <dgoulet@torproject.org> Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-07-03Merge branch 'tor-github/pr/1934'George Kadianakis
2020-07-02Extract extend_info manipulation functions into a new file.Nick Mathewson
2020-06-30scripts: Fix rename_c_identifier.py uncommitted warningDavid Goulet
Only warn when we actually want a commit _and_ there are uncommitted changes found. Else, it is fine to rename if the script is not creating a commit. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-24Merge branch 'tor-github/pr/1945'David Goulet
2020-06-24Merge branch 'tor-github/pr/1929'George Kadianakis
2020-06-23addr: Rename resolve_my_address to be v4 specificDavid Goulet
Part of #33233 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-16practracker FTL!Mike Perry
Faster Than Light!
2020-06-11Merge branch 'maint-0.4.4'George Kadianakis
2020-06-11Improve our clang-format.sh scriptNick Mathewson
Previously, this script ran over every C file in our source code, which took up to a minute on my desktop. Instead, the script now has several modes that it can run in, to minimize the time spent and improve useful output. It should now be suitable for everyday use and git hooks. I hope. I've also renamed this script, so that we can keep using it in the future if we were to move to some tool other than clang-format.
2020-06-11Fold in a changes file and update exceptions.txt.George Kadianakis
Co-authored-by: Florentin Rochet <florentin.rochet@uclouvain.be>
2020-06-09Remove "enable_practracker_in_hooks" for 0.4.4.Nick Mathewson
2020-06-09Merge remote-tracking branch 'tor-github/pr/1888/head'Nick Mathewson
2020-06-08scripts/maint: Remove obsolete generated tor.shc
Per <https://trac.torproject.org/projects/tor/ticket/34381>, these contrib scripts were generated by older versions of Tor and shellcheck will throw warnings if they still exist.
2020-05-18practracker: Accept extra file lines, enforce a smaller functionteor
Accept extra lines in nodelist and routerlist due to extra features, and due to refactors that simplify some functions. Most of the refactor eliminated duplicate code in smaller functions, so there's only one large function that got smaller. Part of 34200.
2020-05-14Fix a python warning in format_changelog.py.Nick Mathewson
2020-05-13practracker: Allow a few extra lines in circuituseteor
Part of 33222.
2020-05-11practracker: Accept extra or.h linesteor
2020-05-07Appease practracker: wrapping costs linesteor
2020-05-05config: New file resolve_addr.{c|h}David Goulet
Move a series of function from config.c into that new file which is related to address resolving. Part of #33789 Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-04-30practracker: Accept some wrapped long linesteor
Part of 33222.
2020-04-30practracker: Accept the connection buf refactorteor
Accept a few extra lines from the connection_buf_read_from_socket() refactor. Cleanup after 33131.