orignal
f8c390cdd3
pick compatible tunnels
3 years ago
Simon Vetter
a348e10620
libi2pd: fix undefined behaviour and memory overruns
...
This fixes the following issues (flagged by cppcheck):
[libi2pd/ECIESX25519AEADRatchetSession.cpp:537]: (error) Buffer is accessed out of bounds: m_NSREncodedKey
[libi2pd/Identity.cpp:22]: (error) Buffer is accessed out of bounds: keys.publicKey
[libi2pd/Identity.cpp:22]: (error) Buffer is accessed out of bounds: publicKey
[libi2pd/NetDb.cpp:70] -> [libi2pd/NetDb.cpp:69]: (error) Iterator 'it' used after element has been erased
[libi2pd/SSUData.cpp:186] -> [libi2pd/SSUData.cpp:187]: (warning) Shifting 32-bit value by 63 bits is undefined behaviour.
3 years ago
orignal
48131f4597
don't store full path with RouterInfo
3 years ago
orignal
20652f7995
resseed if too few floodfills
3 years ago
orignal
c763472914
select ECIES routers only for peer tests and introducers
3 years ago
orignal
349022ae42
don't select ElGamal routers for tunnels
3 years ago
orignal
541464b705
don't delete floodfill if number of remaining floodfills is less than minimal
3 years ago
orignal
64ec7dd559
narrow down random range
3 years ago
orignal
367df4d0db
RAND_bytes from random router selection
3 years ago
orignal
e68cff8bba
try routers before random router
3 years ago
orignal
513493fa78
fixed typo
3 years ago
orignal
a6937c792f
more precise router selection
3 years ago
orignal
a37cf058cd
router with expired introducer is still valid
3 years ago
orignal
41bfc7899d
keep own RouterInfo in netdb
3 years ago
orignal
1e9eb30aa3
garlic encryption of inbound tunnel build message
3 years ago
orignal
81c83f0d54
pick ECIES routers only for non-x64
3 years ago
orignal
db93a7315f
find new introducers to connect
3 years ago
orignal
060e30d283
select ipv6 random introducer
4 years ago
orignal
d5b61ed544
select different routers for peer test
4 years ago
orignal
ac47c9c673
don't check U cap
4 years ago
orignal
0f166973ca
check ureachable cap and actual introducers separately
4 years ago
orignal
823b499a02
remove already expired LeaseSets
4 years ago
orignal
25eae3c116
return relay tag for ipv6 introducer
4 years ago
orignal
9e050d1a23
peer test for ipv6
4 years ago
orignal
b994af9209
check reachability of floodfill to request from
4 years ago
orignal
def9873a70
request multiple introducers at the time
4 years ago
orignal
f70ee480ba
check connectivity between peers for tunnel
4 years ago
orignal
1d7639b3f4
caps per address
4 years ago
orignal
765ab60753
try to reseed if no compatible routers in netdb
4 years ago
orignal
313921da56
publish and request through exploratory tunnel if floodfill is not reachable
4 years ago
R4SAS
3100d4f902
move thread naming to util
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
R4SAS
36473e3889
add naming to threads
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
orignal
3dfb44de31
exclude DSA floodfills
4 years ago
orignal
c69c4ae8a0
don't publish too fast
4 years ago
orignal
b4369470cb
publish updated RouterInfo
4 years ago
orignal
1f6be38145
wait for publish confirmation or publish to another floodfill
4 years ago
orignal
ffa0f0afd9
check network status
4 years ago
orignal
e2a1cd12c3
don't delete unreachable routers if too few
4 years ago
orignal
8483464aab
don't attach our RouterInfo to router's request
4 years ago
R4SAS
8bae4975fb
add copyright headers
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
R4SAS
7a5146ea74
fix code syle(spaces->tabs, tabulations)
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
4 years ago
orignal
bdd75e1171
build client tunnels through router with version >= 0.9.36
4 years ago
orignal
6b596bd05f
check ECIES flag for encrypted response
5 years ago
orignal
4e1319d874
handle ECIESFlag in DatabaseLookup at floodfill
5 years ago
orignal
d7d964bf57
GarlicRoutingSession/ElGamalAESSession split
5 years ago
orignal
54071b0e5d
set and handle unpublished LeaseSet flag
5 years ago
orignal
8e919ddc8e
use monotonic clock for uptime
5 years ago
orignal
f6f45eab39
flood encrypted LeaseSet2 with store hash
5 years ago
orignal
354c9187db
detect our ipv6 address
5 years ago
orignal
7b9033d678
allocate actual RouterInfo's buffer size
5 years ago
orignal
f6199c6c17
print store hash for encrypted LeaseSet
6 years ago
Dimitris Apostolou
6a497a23d9
Fix typos
6 years ago
orignal
09b1b120d7
update LeaseSet2 if store type changed
6 years ago
orignal
0646461342
check published timestamp for LeaseSet2
6 years ago
orignal
846eac29dc
filter out unspecified addresses. Check floodfill status change
6 years ago
R4SAS
d8a4954bf1
[NetDb] check PersistProfiles on load
...
* tabulation fixes
6 years ago
orignal
65c2c7d80b
re-create LeaseSet if store type has changed
6 years ago
orignal
884cf756ed
remove invalid leasesets
6 years ago
orignal
5398b651f7
handle LS2 in destinations
6 years ago
orignal
c54e6bafdb
process meta LS2
6 years ago
orignal
12af68bdb5
initial support of LeaseSet2
6 years ago
orignal
c0e263abd3
default value for m_PersistProfiles
6 years ago
R4SAS
79c0c11e80
configure persist of peer profiles
...
* If persist.profiles = false, peer profiles not stored on disk
* remove inet_pton for windows
* update configs
6 years ago
orignal
ca671551c8
flood NTCP2 RouterInfo if requested
6 years ago
orignal
42ed312384
handle NTCP2 RouterInfo flag
6 years ago
orignal
d7081c5f23
handle RouterInfo from NTCP2 in netdb's thread
6 years ago
orignal
c8f4ace5c4
update timestamp before publishing
6 years ago
yangfl
52f3081a40
fix typo
6 years ago
orignal
7db2e9dc4a
don't verify signature twice
7 years ago
Jeff Becker
4a77a03033
* Add LeaseSetBufferValidate which checks lease validity and extracts timestamp
...
* check for leases with LeaseSetBufferValidate before update in floodfill code as to prevent malicous nodes removing good LS
7 years ago
Jeff Becker
3820b51960
Revert "check for valid LS before updating"
...
This reverts commit e070ce4e34
.
7 years ago
Jeff Becker
e070ce4e34
check for valid LS before updating
7 years ago
yangfl
50ba52756f
fix mixing tabs and spaces
7 years ago
yangfl
46f62e1af9
remove trailing whitespaces
7 years ago
yangfl
18b6353803
fix typo
7 years ago
Darknet Villain
06b2b26e39
NetDb: If NetDb is empty, throw exception instead of killing NetDb thread
7 years ago
Jeff Becker
e238f7ed37
NetDb.h -> NetDb.hpp for case insensative file systems clashing with libc's netdb.h
8 years ago
Jeff Becker
4cc3b7f9fb
restructure build to separate the 3 main components into 3 subdirectories
...
libi2pd for core libs
libi2pd_client for i2pd client libs
daemon for i2pd daemon libs
8 years ago