Samanta Navarro
4a0cd79588
Fix typos.
...
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-11-12 11:44:09 -05:00
Roger Dingledine
4f114f59e6
fix typos
...
no actual changes
2020-10-01 19:32:32 -04:00
Nick Mathewson
3cb9a9b8ce
Remove the connection_t.outbuf_flushlen field
...
This was once used for rate-limiting, but now it's only for
accounting. It hasn't served a useful purpose in a long time.
Closes ticket 33097.
2020-07-29 13:33:35 +00:00
Nick Mathewson
44da920670
Add a tor_addr_port_copy() function.
2020-07-17 11:42:49 -04:00
David Goulet
15860c8846
addr: Use tor_addr_t instead of uint32_t for IPv4
...
This changes a LOT of code but in the end, behavior is the same.
Unfortunately, many functions had to be changed to accomodate but in majority
of cases, to become simpler.
Functions are also removed specifically those that were there to convert an
IPv4 as a host format to a tor_addr_t. Those are not needed anymore.
The IPv4 address field has been standardized to "ipv4_addr", the ORPort to
"ipv4_orport" (currently IPv6 uses ipv6_orport) and DirPort to "ipv4_dirport".
This is related to Sponsor 55 work that adds IPv6 support for relays and this
work is needed in order to have a common interface between IPv4 and IPv6.
Closes #40043 .
Signed-off-by: David Goulet <dgoulet@torproject.org >
2020-07-14 10:36:08 -04:00
Nick Mathewson
cca3164f8d
Add a convenience function to check for unspec address.
2020-07-02 09:51:04 -04:00
Nick Mathewson
354f085e5f
Merge remote-tracking branch 'tor-github/pr/1888/head'
2020-06-09 15:44:58 -04:00
Nick Mathewson
1fb9be5396
Merge remote-tracking branch 'tor-github/pr/1902/head'
2020-06-05 10:08:27 -04:00
rl1987
3e4814edeb
Fix some checks of tor_inet_ntoa() return value
...
Also, fix a format string.
2020-06-05 11:49:24 +03:00
c
8b568b50a5
config: Styling fix + use fmt_addr()
...
Conform to C99 as suggested by nickm on #32888 and use fmt_addr() rather
than tor_addr_to_str_dup()
2020-06-04 13:15:27 +00:00
c
1934e399af
config: Add interface address debug logging
...
Add logging for "the local network interface addresses" as requested by
ticket #32888 .
2020-06-03 14:42:53 +00:00
rl1987
7a004fce8d
Tweak format string
2020-05-21 14:26:08 +03:00
rl1987
d8e24684b6
Check for possible failures of tor_inet_ntop/tor_inet_ntoa in fmt_addr32 and tor_dup_ip
2020-05-21 13:41:15 +03:00
teor
504b16fb75
relay: Rewrite inform_testing_reachability()
...
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-07 20:59:10 +10:00
Neel Chauhan
0daa1da3ba
Define and use TOR_ADDRPORT_BUF_LEN
2020-05-07 20:38:25 +10:00
Nick Mathewson
82effefb69
Merge branch 'maint-0.4.3'
2020-05-06 16:47:03 -04:00
Nick Mathewson
fecc5fd38d
Merge branch 'maint-0.4.2' into maint-0.4.3
2020-05-06 16:47:03 -04:00
Nick Mathewson
d04b708b4b
Merge branch 'maint-0.4.1' into maint-0.4.2
2020-05-06 16:47:03 -04:00
Nick Mathewson
3e42464f5a
Merge branch 'bug34078_prelim_035' into bug34078_prelim_041
2020-05-06 15:18:36 -04:00
Nick Mathewson
8798c0a94a
address.c: add a single (harmless) missing break;
2020-05-06 15:08:02 -04:00
teor
2a0e48385d
relay: Launch IPv4 and IPv6 ORPort self-test circuits
...
When launching relay ORPort reachability self-tests, launch tests to the
IPv4 and IPv6 ORPorts (if available).
Part of 33222.
2020-04-30 23:27:13 +10:00
teor
6dc9930d3a
Merge branch 'pr1870_squashed'
2020-04-30 22:22:09 +10:00
Neel Chauhan
7bf257b129
Define and use TOR_ADDRPORT_BUF_LEN
2020-04-30 22:21:48 +10:00
Nick Mathewson
49800cf539
Merge remote-tracking branch 'tor-github/pr/1864/head'
2020-04-29 19:16:40 -04:00
teor
cd7e2fc210
net: Make all address bytes functions take uint8_t *
...
Part of 33817.
2020-04-30 06:54:42 +10:00
teor
f62b051e87
Rename tor_addr_get_ipv6_bytes to tor_addr_copy_ipv6_bytes
...
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
2020-04-30 05:54:39 +10:00
teor
16f3f6a1af
relay/circuitbuild: Re-use IPv6 connections for circuits
...
Search for existing connections using the remote IPv4 and IPv6
addresses.
Part of 33817.
2020-04-29 22:43:09 +10:00
teor
a72e017e7f
net: Add fmt_addrport_ap() and fmt_addr_family()
...
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.
2020-04-29 22:43:09 +10:00
teor
e9d04b05c6
net: Remove an extra space in address.h
2020-04-29 22:43:09 +10:00
teor
bd6ab90ad4
core/or: Support IPv6 EXTEND2 cells
...
Allow clients and relays to send dual-stack and IPv6-only EXTEND2 cells.
Parse dual-stack and IPv6-only EXTEND2 cells on relays.
Relays do not make connections or extend circuits via IPv6: that's the
next step.
Closes ticket 33901.
2020-04-29 22:43:09 +10:00
Nick Mathewson
4dd4dbf046
Merge remote-tracking branch 'onionk/inbufoverflow1-043' into ticket33131_044
2020-04-24 08:15:53 -04:00
David Goulet
6ab11bbf30
hs-v3: Report SOCKS ExtendedErrors when all intro timed out
...
Signed-off-by: David Goulet <dgoulet@torproject.org >
2020-04-08 07:56:54 -04:00
teor
1720a2191d
address: Simplify tor_addr_is_valid()
...
And rewrite the function comment.
Part of 33679.
2020-04-07 23:11:17 +05:30
MrSquanchee
cbd3f88831
Added tests for tor_addr_is_null/valid()
...
Added tests for tor_addr_is_valid(),
and added tests for tor_addr_is_null(),
which is not modfied.
Ticket 33679
2020-04-07 23:11:17 +05:30
teor
065ccda4f6
Merge branch 'pr1838_squashed'
2020-04-07 17:36:17 +10:00
Roger Dingledine
46f4f82ac9
correct tor_addr_family() function comment
...
kind of a losing game to remember to update that comment when
we add another possible family, but hey, maybe it will be a while
until we add one more.
2020-03-27 03:46:54 -04:00
Nick Mathewson
3f6e37b1bc
Add a SUBSYS_DECLARE_LOCATION() to every subsystem.
2020-03-26 11:20:20 -04:00
cypherpunks
9e988406c7
net, tls: use BUF_MAX_LEN
2020-03-24 05:56:15 +00:00
cypherpunks
bb3eda8617
net, tls: use INT_MAX - 1 in checks for buf_t
...
No functionality change.
2020-03-24 05:54:37 +00:00
Nick Mathewson
686494f0f7
Merge branch 'clang_format_prep_3'
2020-03-05 08:23:32 -05:00
Nick Mathewson
67d59d7d1f
Re-order most subsystems to correspond to dependency order.
2020-02-13 12:53:15 -05:00
Nick Mathewson
384a771fcc
Merge branch 'ticket32362_squashed'
2020-02-11 08:47:19 -05:00
Neel Chauhan
777d90fa23
Check for leading zeros in tor_inet_aton()
2020-02-11 08:47:13 -05:00
Nick Mathewson
d9e211ab70
Use semicolons after HT_PROTOTYPE and HT_GENERATE.
2020-02-10 12:54:43 -05:00
Nick Mathewson
fbc1eaa0af
Try to shorten an #error in address.c
2020-02-06 17:21:34 -05:00
teor
ff52051754
address: Fix comments in address.h
...
And improve inline function spacing, and function declaration
spacing.
Comment-only change.
2020-02-04 14:36:04 +10:00
Nick Mathewson
4f02812242
It's 2020. Update the copyright dates with "make update-copyright"
2020-01-08 18:39:17 -05:00
Neel Chauhan
ee015d36f8
Space the a-d unsigned ints in tor_inet_aton()
2020-01-06 20:20:38 -08:00
Neel Chauhan
b062e0f0a4
Fix spacing in tor_sscanf() call in tor_inet_aton()
2019-12-20 14:11:03 -05:00
Neel Chauhan
01c6fde326
Fix spacing in tor_inet_aton() function header
2019-12-20 14:10:43 -05:00