arvidn
98e02bf5da
fix new clang warnings
2025-07-07 13:15:03 +02:00
xavier2k6
790b6629f6
Fix some typos
2024-09-29 14:13:46 +02:00
arvidn
27da183210
fix warning
2023-08-25 19:45:45 +02:00
luzpaz
63373cf012
Fixes various typos
...
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn
c4c0ae50b9
add invariant check to traversal_algorithm in DHT
2023-03-19 19:31:58 +01:00
arvidn
550d3c7d9f
update copyright headers
2022-06-22 21:42:55 +02:00
arvidn
63c1777512
use iostream in test_dht for output, rather than a hodgepodge of snprintf and vector
2021-08-29 17:42:01 +02:00
arvidn
861a6082ee
merged RC_1_2 into RC_2_0
2021-03-13 00:24:33 +01:00
Arvid Norberg
534a57c629
fix typo in DHT test
2021-03-10 16:46:52 +01:00
arvidn
6fbaa71097
merged RC_1_2 into RC_2_0
2021-01-21 15:47:48 +01:00
arvidn
7981fc31bc
fix DHT upload rate limit overflow when set very high, or invoked very rarely
2021-01-21 14:27:17 +01:00
arvidn
b0b39847da
fix warning in DHT test
2020-12-27 02:47:57 +01:00
arvidn
5935f63ead
update copyrights
2020-09-01 05:14:17 -07:00
arvidn
a335b656e4
fix non-determinism in DHT test
2020-08-25 07:20:17 -07:00
arvidn
6377deeaa3
merge RC_1_2 into RC_2_0
2020-08-04 22:35:30 +02:00
arvidn
4669383ff3
fix iterator issue in test_dht
2020-08-04 09:21:00 -07:00
Fonic
c6a0313744
Add node_id to dht_sample_infohashes_alert
...
Add node_id to dht_sample_infohashes_alert to enable receiver of alert
to determine which node sent the reply to an earlier request for info
hash samples.
2020-04-11 19:42:49 +02:00
arvidn
50124ec7f7
merged RC_1_2 into master
2020-03-03 14:23:52 +01:00
FranciscoPombal
0eee042bf9
Fix some more unlikely integer truncation
2020-02-28 09:10:44 +01:00
arvidn
bee0043d24
merged RC_1_2 into master
2020-02-26 12:10:32 +01:00
FranciscoPombal
091dbd6494
Fix possible output truncation in test_dht
2020-02-23 18:15:41 +01:00
arvidn
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
0c199a869c
remove dht::settings as an internal interface with the DHT node, just use aux::session_settings directly. Simplifies some code and avoids conversions. keep deprecated dht_settings for backwards compatibility
2019-09-01 03:41:57 +02:00
arvidn
c6ffcdde4c
unify the DHT settings to use the main settings_pack
2019-09-01 03:41:57 +02:00
arvidn
07971cd3e5
unify the internal namespace to be called aux, not detail
2019-08-29 00:15:07 +02:00
arvidn
d3f7a363c2
update copyright year
2019-08-29 00:13:04 +02:00
arvidn
736b8b0aa6
update kademlia find_node and torrent_info flags to be type-safe
2019-08-17 22:17:17 +02:00
Arvid Norberg
048a5b2635
make routing_table::find_node() return the nodes instead of using an out-parameter
2019-08-13 21:27:31 +02:00
Arvid Norberg
eb35d55061
make it a bit more likely to split the last bucket in the DHT routing table
2019-08-13 21:09:26 +02:00
Arvid Norberg
ff113a262c
make it a bit more likely to split the last bucket in the DHT routing table
2019-08-12 15:08:49 -07:00
arvidn
86e11142a1
merged RC_1_2 into master
2019-08-10 21:11:10 -07:00
Arvid Norberg
bd0d011536
make test_dht deterministic
2019-07-31 19:04:29 -07:00
arvidn
b1b03a0d77
factor out and unit test parts of the DHT routing table logic that handles the affinity of nodes to insert. Specifically, make sure the even distribution within routing table buckets works correctly
2019-07-30 07:56:18 -07:00
arvidn
3995ffeafd
similar to how low RTT DHT nodes are preferred over high RTT nodes, also have an affinity for nodes with node IDs derived from their IP
2019-07-28 16:13:16 -07:00
arvidn
24df242a9d
merged RC_1_2 into master
2019-04-24 07:30:57 +02:00
Steven Siloti
aec5c50282
Track the mapped port for each NAT mapping transport ( #3793 )
...
* Track the mapped port for each NAT mapping transport
Each transport needs to be tracked separately so that a failed mapping request
doesn't cause the listen port for a socket to be cleared to zero.
* add template specialization to allow enums as indexes
* use aux::array for port mappings
2019-04-22 01:50:44 +02:00
arvidn
87a689a0ad
merged RC_1_2 into master
2019-03-30 17:22:46 +01:00
arvidn
64600f444b
improve sanitizer rule in Jamfile. Some fixes for new clang sanitizr 'implicit-conversion'
2019-03-26 10:14:06 +01:00
arvidn
b2e681d5da
merged RC_1_2 into master
2019-03-18 19:12:14 +01:00
arvidn
3891f77253
fix naming in test_dht. don't include deprecated header (lazy_entry) unless required
2019-02-21 23:05:42 +01:00
arvidn
9263496d5f
merged RC_1_2 into master
2019-02-19 18:41:21 +01:00
arvidn
7f2a78d0c9
make random_shuffle() take a range instead of two iterators. use random_bytes() instead of std::generate() and random_byte(). Remove unused hasher.hpp includes
2019-02-19 01:48:08 +01:00
arvidn
d140d1e20d
update addresses
2019-02-11 20:19:08 +01:00
arvidn
5383854768
make span's and sha1_hash's index and size types signed (instead of unsigned). Specifically std::ptrdiff_t. In line with the direction of gsl span and reduce signed->unsigned casts
2018-11-16 14:06:22 +01:00
arvidn
6be8b395da
some cleanup turning memcmp() and memcpy() into span comparisons and std::copy(). some more use of random_bytes() instead of loops.
2018-11-05 18:52:45 +01:00
Arvid Norberg
b90564d418
remove the IPv6 enable/disable build config
2018-08-19 22:20:54 +02:00
arvidn
28bd7102be
fix some conversion warnings by using std::abs() instead of fabs()
2018-08-09 16:11:25 +02:00
arvidn
4633258fbe
make the DHT announce flags a strong type
2018-07-16 12:04:16 +02:00
Steven Siloti
961cf62cad
dht: announce with per-interface listen port
2018-07-12 08:36:57 +02:00
Steven Siloti
96d215a32a
only allow pinged nodes into the routing table ( #3006 )
...
This is an attempt to prevent bogus nodes entering the routing table and
being propogated to other nodes.
2018-05-08 12:47:29 +02:00