tor/src
David Goulet 2f3b4e3888 addr: Refactor is_local_addr() to support IPv6
Series of changes:

  1. Rename function to reflect the namespace of the file.

  2. Use the new last resolved cache instead of the unused
     last_resolved_addr_v4 (which is also removed in this commit).

  3. Make the entire code base use the new resolved_addr_is_local() function.

You will notice that this function uses /24 to differentiate subnets where the
rest of tor uses /16 (including documentation of EnforceDistinctSubnets).
Ticket #40009 has been opened for that.

But that the moment, the function keeps looking at /24.

Part of #33233

Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-06-24 13:51:37 -04:00
..
app addr: Refactor is_local_addr() to support IPv6 2020-06-24 13:51:37 -04:00
config python: Add __future__ imports for python 3 compatibility 2019-12-12 15:58:51 +10:00
core addr: Refactor is_local_addr() to support IPv6 2020-06-24 13:51:37 -04:00
ext Merge branch 'maint-0.4.3' 2020-05-06 16:55:41 -04:00
feature addr: Refactor is_local_addr() to support IPv6 2020-06-24 13:51:37 -04:00
lib Merge remote-tracking branch 'tor-github/pr/1888/head' 2020-06-09 15:44:58 -04:00
rust rust/protover: Fix protocol version support error handling 2020-05-18 21:50:35 +10:00
test addr: Refactor is_local_addr() to support IPv6 2020-06-24 13:51:37 -04:00
tools net: Make all address bytes functions take uint8_t * 2020-04-30 06:54:42 +10:00
trunnel Update Trunnel for new machine_ctr field. 2020-06-08 18:05:34 -05:00
win32 Bump to 0.4.4.1-alpha-dev 2020-06-16 19:38:38 -04:00
arch_goals.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00
include.am Move winprocess_sys into a new low-level hardening module 2020-02-24 07:49:39 -05:00
mainpage.md doxygen: add a link to src-ref on mainpage.md. 2020-05-19 09:44:36 -04:00