- 07 May, 2020 1 commit
-
-
Jigsaw52 authored
-
- 05 May, 2020 1 commit
-
-
- 04 May, 2020 5 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
- 01 May, 2020 4 commits
-
-
Nick Mathewson authored
Do not try to stuff "HS_DESC_DECODE_GENERIC_ERROR" (-1) into a socks5_reply_status_t (enum). It doesn't actually make sense, and isn't one of our documented extensions. (This can only happen on a nonfatal assertion that we haven't seen, so it probably isn't happening in practice.) Fixes another case of bug 34077; bugfix on 0.4.3.1-alpha.
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
Fixes 34077 for 0.4.1; bugfix on 0.4.0.3-alpha. (Specifically, GCC first gives this warning for 9eeff921)
-
- 30 Apr, 2020 4 commits
- 29 Apr, 2020 25 commits
-
-
Nick Mathewson authored
-
teor authored
We added a cast, and wrapped a line.
-
teor authored
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.
-
teor authored
Refactor channel_matches_target_addr_for_extend() to return a boolean result. Part of 33817.
-
teor authored
Rename the function, and give it a boolean return value. No behaviour change. Part of 33817.
-
teor authored
Part of 33817.
-
teor authored
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ tor_addr_get_ipv6_bytes tor_addr_copy_ipv6_bytes
-
teor authored
-
teor authored
Flatten the logic in circuit_choose_ip_ap_for_extend(). Part of 33817.
-
teor authored
Part of 33817.
-
teor authored
Refactor circuit_open_connection_for_extend(), splitting out the IP address choice code into a new function. Adds unit tests. No behaviour changes in tor. Part of 33817.
-
teor authored
Add IPv4-only and IPv6-only tests for circuit_open_connection_for_extend(). Part of 33817.
-
teor authored
When an EXTEND2 cell has an IPv4 and an IPv6 address, choose one of them uniformly at random. Part of 33817.
-
teor authored
Re-use the newly created extend_info to launch the connection in circuit_open_connection_for_extend(). No behaviour change. Part of 33817.
-
teor authored
Some tests use IF_BUG_ONCE(), which is fatal when ALL_BUGS_ARE_FATAL, after the fixes in 33917. Also run "make autostyle" on these changes. Part of 33817.
-
teor authored
... and DISABLE_ASSERTS_IN_UNIT_TESTS. Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. Implements these modes for IF_BUG_ONCE(). (It used to log a non-fatal warning, regardless of the debugging mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha.
-
teor authored
Search for existing connections using the remote IPv4 and IPv6 addresses. Part of 33817.
-
teor authored
Part of 33817.
-
teor authored
It isn't used outside channel.c. Part of 33817.
-
teor authored
Allow extend cells with IPv6-only link specifiers. Warn and fail if both IPv4 and IPv6 are invalid. Also warn if the IPv4 or IPv6 addresses are unexpectedly internal, but continue with the valid address. Part of 33817.
-
teor authored
Disable SafeLogging for some extend tests, so we can check the actual addresses. Part of 33817.
-
teor authored
Always log the address family in extend protocol warnings. If SafeLogging is 0, also log the address and port. Diagnostics for 33817.
-
teor authored
Add fmt_addrport_ap(), a macro that takes a tor_addr_port_t, and uses it to call fmt_addrport(). Add fmt_addr_family(), a function that returns a string constant describing the address family. Utility functions for 33817.
-
teor authored
-
teor authored
No behaviour change. Part of 33817.
-