arvidn
fe1ab09890
merged RC_2_0 into master
2023-04-17 21:40:10 +02:00
arvidn and Arvid Norberg
5b11bd9382
treat CGNAT address range as local IPs
2023-04-16 14:42:20 +02:00
arvidn and Arvid Norberg
2db8b54c08
update copyright headers in source files
2021-06-13 21:04:55 +02:00
arvidn and Arvid Norberg
0d3f80bedd
update copyright and license headers (of a few new files merged from RC_2_0)
2021-03-29 19:35:45 +02:00
Alden Torres and GitHub
a2f89e870b
moved enum_net.hpp, peer_class_set.hpp and proxy_base.hpp to aux ( #5864 )
2021-01-15 18:51:47 +01:00
Alden Torres and Arvid Norberg
a10911cdd5
replaced boost::optional with std::optional
2020-09-27 15:34:11 -07:00
arvidn and Arvid Norberg
19e8c2f3ea
remove full BSD license from all source files. reference LICENSE file in the root instead
2020-09-02 00:56:54 -07:00
arvidn and Arvid Norberg
5935f63ead
update copyrights
2020-09-01 05:14:17 -07:00
arvidn
a4f66d7470
merged RC_1_2 into RC_2_0
2020-08-16 01:00:21 +02:00
arvidn and Arvid Norberg
baface8893
fix strncpy
2020-08-15 03:56:25 -07:00
arvidn
0608442048
Merge branch 'RC_1_2' into RC_2_0
2020-07-24 20:36:52 +02:00
arvidn and Arvid Norberg
521babb678
change has_default_route() to has_internet_route() and make it not just look for a default route, but any route of a global internet IP
2020-07-24 07:11:50 -07:00
arvidn
50124ec7f7
merged RC_1_2 into master
2020-03-03 14:23:52 +01:00
arvidn and Arvid Norberg
1e4083b3fb
rely less on the ability to enumerate the routing table reliably. Any IP address
...
explicitly specified is assumed to represent an externally available IP, unless
marked with the l-flag. If a device name or an unspecified address is used, they
are expanded and only for such expanded entries is there a heuristic to
determine which addresses are externally available and which are local. The
default is to assume it's local only, unless it has a globally routable IP
address or a default route can be found for the device.
2020-03-03 11:43:52 +01:00
arvidn and Arvid Norberg
fdf4514d4f
remove is_loopback. use member function is_loopback instead
2020-02-28 19:03:02 +01:00
arvidn and Arvid Norberg
8c1939fa7d
remove is_any. use is_unspecified instead
2020-02-28 19:03:02 +01:00
arvidn
0bb7c983af
Merge branch 'RC_1_2' into test-merge
2020-02-27 09:21:33 +01:00
arvidn
bee0043d24
merged RC_1_2 into master
2020-02-26 12:10:32 +01:00
arvidn and Arvid Norberg
0a4a06ce74
apparently on VPNs it's common for the gateway for a route to be outside of the netmask of the network it's a router for. fix that in get_gateway
2020-02-08 23:03:10 +01:00
arvidn and Arvid Norberg
84186c6c2a
factor out ip address helpers from broadcast_socket and move broadcast socket into the test support library, as it's only used by tests now
2020-01-23 23:59:01 +01:00
arvidn
a8c41c0c31
merge RC_1_2 into master
2020-01-19 09:58:24 +01:00
arvidn and Arvid Norberg
a53d3a8746
factor out get_gateway function and add unit tests. IPv6 gateways are not addressed in the same network, so we can't use match_addr_mask(). Assume all local IPv6 addresses do not have a gateway
2020-01-19 08:27:33 +01:00
arvidn and Arvid Norberg
4ceb2ea467
limit tracker announces and SOCKS5 connection attempts to listen_socket_t that actually can reach the target
2020-01-19 08:27:33 +01:00
arvidn
b51d09d27a
merged RC_1_2 into master
2020-01-07 01:04:02 +01:00
arvidn and Arvid Norberg
96695fa714
fix build_netmask to treat the count as a prefix and add tests
2020-01-06 20:23:13 +01:00
arvidn and Arvid Norberg
d3f7a363c2
update copyright year
2019-08-29 00:13:04 +02:00
arvidn and Arvid Norberg
d140d1e20d
update addresses
2019-02-11 20:19:08 +01:00
Arvid Norberg and Arvid Norberg
b90564d418
remove the IPv6 enable/disable build config
2018-08-19 22:20:54 +02:00
Alden Torres and Arvid Norberg
8d379dd944
fixing warnings in tests code, part3
2018-01-25 09:09:21 +01:00
arvidn and Arvid Norberg
d138f02424
introduce lt namespace alias
2017-04-23 23:43:58 -04:00
Alden Torres and Arvid Norberg
1280c7f7ae
is_ip_address refactor and minor code cleanup ( #1828 )
...
is_ip_address refactor and minor code cleanup
2017-03-18 11:07:17 -04:00
arvidn
666b6dc788
split out some more tests from test_primitives
2015-08-24 17:40:29 +02:00