summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-17test/protover: Add tests for summarize flagsteor
Part of 33222.
2020-05-15versions: Improve the protover summary commentsteor
Part of 33222.
2020-05-15protover: Add defines for recent protocol versionsteor
Also update the protover/supported_protocols test. Part of 33226.
2020-05-15test/circuitbuild: Tests for node selection flagsteor
Part of 33222.
2020-05-14circuitbuild: Refactor IPv6 extend node selectionteor
Move this complex check into its own function. Part of 33222.
2020-05-14circuitbuild: Refactor build state node selection flagsteor
Move common build state to node selection flags conversion code into its own function. Part of 33222.
2020-05-14circuitbuild: test relays sending IPv6 extend cellsteor
Add tests for relays sending IPv6 extend cells in circuit_send_next_onion_skin(). Clients also use this code, check that they can only extend over IPv4 (for now). Part of 33222.
2020-05-14test: Move the origin circuit function to test helpersteor
Part of 33222.
2020-05-14test/circuitstats: Refactor common codeteor
Refactor common circuitstats test code into its own function. Part of 33222.
2020-05-14test/circuitstats: Fix a bunch of coding style issuesteor
Part of 33222.
2020-05-13practracker: Allow a few extra lines in circuituseteor
Part of 33222.
2020-05-13test/circuitbuild: Add a test for origin_circuit_init()teor
Part of 33222.
2020-05-13changes: file for 33222 and 33226teor
2020-05-11doc: Some tor features may not work with MiddleNodesteor
And fix a formatting issue in the MiddleNodes man page entry. Part of 33226.
2020-05-11nodelist: Fix a comment and a log messageteor
2020-05-11routerlist: Choose nodes that can initiate IPv6 extendsteor
Part of 33226.
2020-05-11circuit: Add flags for IPv6 extendsteor
But don't implement the actual node selection yet. Part of 33226.
2020-05-11practracker: Accept extra or.h linesteor
2020-05-11protover: Add node functions for IPv6 extend supportteor
Part of 33226.
2020-05-11protover: Sort version flags by their underlying protocolsteor
Also fix some comment typos, mainly ">=" when the code says "=". Part of 33226.
2020-05-11protover: Declare support for Relay=3teor
Declare support for the new Relay=3 IPv6 extend protocol, in C and Rust. Part of 33226.
2020-05-07relay: Improve docs on inform_testing_reachability()teor
Document race conditions that we'll resolve in 34067 and 34137. Part of 33222.
2020-05-07relay: Rewrite inform_testing_reachability()teor
Rewrite inform_testing_reachability() to use separate buffers for IPv4 ORPort, IPv6 ORPort, and IPv4 DirPort. And use consistent APIs to fill those buffers. Part of 33222.
2020-05-07relay: Clarify a comment in selftest.cteor
2020-05-07Define and use TOR_ADDRPORT_BUF_LENNeel Chauhan
2020-05-07routerinfo: Make router_get_orport() return an error statusteor
Part of 33222.
2020-05-07Appease practracker: wrapping costs linesteor
2020-05-07Replace several C identifiers.teor
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ client_or_conn_should_skip_reachable_address_check router_or_conn_should_skip_reachable_address_check \ client_dir_conn_should_skip_reachable_address_check router_dir_conn_should_skip_reachable_address_check
2020-05-07Wrap long linesteor
2020-05-07Replace several C identifiers.teor
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ router_skip_orport_reachability_check router_should_skip_orport_reachability_check \ router_skip_dirport_reachability_check router_should_skip_dirport_reachability_check \ router_connect_assume_or_reachable client_or_conn_should_skip_reachable_address_check \ router_connect_assume_dir_reachable client_dir_conn_should_skip_reachable_address_check It was generated with --no-verify, so it probably breaks some commit hooks. The commiter should be sure to fix them up in a subsequent commit.
2020-04-30circuitbuild: Allow relays to send IPv6 extend cellsteor
Allow relays and bridges to send IPv4 or IPv6 extend cells. But keep restricting clients to IPv4 extend cells, because sending IPv6 extend cells would be an obvious version distinguisher. Part of 33222.
2020-04-30relay: Update some self-test comments for IPv6teor
Part of 33222.
2020-04-30relay: Log IPv4 and IPv6 ORPorts when testing reachabilityteor
When a relay starts testing reachability, log its IPv6 ORPort. The existing code logs the IPv4 ORPort and DirPort. The IPv4 ORPort is required. The other ports are only logged if they are present. Part of 33222.
2020-04-30relay: Launch IPv4 and IPv6 ORPort self-test circuitsteor
When launching relay ORPort reachability self-tests, launch tests to the IPv4 and IPv6 ORPorts (if available). Part of 33222.
2020-04-30relay: Refactor dirport self-test circuit launchteor
Remove some redundant variables, and improve some comments. Explain that there are no advertised IPv6 DirPorts. Part of 33222.
2020-04-30relay: Refactor reachability circuit launchesteor
Split OR and Dir reachability circuits into their own functions. Part of 33222.
2020-04-30relay: Remove unused DirPort self-test codeteor
DIRIND_ANON_DIRPORT never uses our ORPort, so we don't need to set it in the directory request. Part of 33222.
2020-04-30relay: Add an address family to self-test launchesteor
Add an address family argument to the functions that launch relay ORPort self-test circuits. Part of 33222.
2020-04-30relay: Minor selftest comment updatesteor
Part of 33222.
2020-04-30relay: Wrap long linesteor
Part of 33222.
2020-04-30relay: Clarify reachability status check functionsteor
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ check_whether_orport_reachable router_skip_orport_reachability_check \ check_whether_dirport_reachable router_skip_dirport_reachability_check It was generated with --no-verify, so it probably breaks some commit hooks. The commiter should be sure to fix them up in a subsequent commit. Part of 33222.
2020-04-30practracker: Accept some wrapped long linesteor
Part of 33222.
2020-04-30nodelist: Wrap long lines, and improve commentsteor
Part of 33222.
2020-04-30nodelist: Distinguish client and relay reachabilityteor
Change some function names to distinguish between: * client first hop reachability (ReachableAddresses) * relay port reachability self-tests This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ router_skip_or_reachability router_connect_assume_or_reachable \ router_skip_dir_reachability router_connect_assume_dir_reachable It was generated with --no-verify, so it probably breaks some commit hooks. The commiter should be sure to fix them up in a subsequent commit. 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.
2020-04-30relay: Fix a comment typo in the selftest.c headerteor
2020-04-29Merge remote-tracking branch 'tor-github/pr/1864/head'Nick Mathewson
2020-04-30practracker: Allow an extra line in tor_addr_parse_mask_ports()teor
We added a cast, and wrapped a line.
2020-04-30relay: Refactor can extend over IPv6 checksteor
Split "can extend over IPv6" and "has advertised IPv6 ORPort" into separate functions. They currently have the same result, but this may change in 33818 with ExtendAllowIPv6Addresses. Part of 33817.
2020-04-30channel: Refactor matches target address functionteor
Refactor channel_matches_target_addr_for_extend() to return a boolean result. Part of 33817.