Commit graph

220 commits

Author SHA1 Message Date
orignal 02895d4cf5 respond with confirmied router to exploratory lookup 2024-04-23 18:30:56 -04:00
orignal 6ce2c30522 build client tunnels through confimed routers only if low rate 2024-04-22 13:03:59 -04:00
orignal f67c38d8d2 fixed typo 2024-04-18 18:06:24 -04:00
orignal ffee29272f avoid two firewalled routers in the row 2024-04-14 20:09:06 -04:00
orignal 3873e60cbb try to send database store reply directly to IBGW 2024-03-04 14:30:49 -05:00
orignal 2dbf094433 try to send lookup reply directly to IBGW 2024-03-04 13:34:57 -05:00
orignal f1058410fb don't request banned router 2024-03-03 07:42:39 -05:00
orignal ca45fe73e9 never delete conneted router from netdb 2024-02-27 16:10:17 -05:00
Vort b092e712ec make more attempts to select not bad hop 2024-02-20 19:05:19 +02:00
orignal 900153765a move router's tags cleanup to router's thread 2024-02-16 18:56:04 -05:00
orignal d96803a290 always request through tunnels in case of restricted routes 2024-02-09 15:24:48 -05:00
orignal 592d6ae4f4 check log level before calculating base32 or base64 of ident 2024-02-08 21:56:25 -05:00
orignal 1b23aa2d7b increase request timeout 2024-02-08 21:44:12 -05:00
orignal f980277552 don't flood failed router 2024-02-08 19:55:54 -05:00
orignal e40b656ecf Drop for tunnel and encrypted messages 2024-01-30 15:41:57 -05:00
orignal f008478505 handle I2NP messages drops 2024-01-29 19:54:43 -05:00
orignal 75c2cb751f lock mutex before deleting RouterInfo's buffer 2024-01-25 18:51:46 -05:00
orignal d8f6c4a93d correct encryption and path for follow on lookup request 2024-01-14 17:16:31 -05:00
orignal 5cf1961fa4 drop updated routers from future 2024-01-06 11:31:01 -05:00
orignal 8319dd6b25 drop exploratory and leaseset lookups for non-floodfill router 2023-12-30 19:49:16 -05:00
orignal c215f2e8d1 check router for null pointer 2023-11-23 13:06:50 -05:00
orignal a3f62e1d71 check actual distance with router to reduce expiration time 2023-10-31 13:20:04 -04:00
orignal 575268d360 reduce expiration time for low bandwidth and far routers 2023-10-30 20:02:48 -04:00
orignal c112276eea memory poll for RouterProfile 2023-08-26 10:57:05 -04:00
orignal 902899ae24 don't pick completely unreachable peers 2023-07-17 19:49:42 -04:00
orignal c620fc1232 clear unreachable flag upon succesive connect 2023-07-17 18:44:51 -04:00
orignal 17c4038c60 select router with ipv4 for endpoint 2023-07-11 13:16:35 -04:00
Chad Fraleigh 638e9b4d7f
Fixed division by zero due to thread race condition. 2023-07-08 17:07:04 -07:00
r4sas 09f233dbfb
NetDB: ignore LeaseSet store request if not floodfill
Signed-off-by: r4sas <r4sas@i2pmail.org>
2023-06-06 01:00:07 +03:00
orignal c757b6d020 reset floodfill cap for unknown floodfills 2023-05-05 18:22:11 -04:00
orignal b6de474fda don't include unconfirmed floodfill to the list if we have enough floodfills already 2023-05-05 16:14:54 -04:00
SidorKozlov 3b13a3f2a1 Configurable minimum successful tunnels 2023-05-03 16:13:03 +02:00
orignal 4ce2ef1d83 make router unreachable if AEAD fails in SessionCreated 2023-05-03 07:43:28 -04:00
orignal ead6a6dca3 correct parsing of caught RouterInfo at IBGW and OBEP 2023-04-27 21:37:30 -04:00
orignal 76adac31c3 enrcrypt lookup if being sent through a tunnel 2023-04-24 19:25:26 -04:00
orignal b77ae08388 exclude previously non-reachable transports 2023-04-18 14:35:13 -04:00
orignal 4ebc7c970a bypass medium congestion(D) routers for client tunnels 2023-04-10 23:04:38 -04:00
orignal d580c0155a fixed typo 2023-04-05 21:49:49 -04:00
orignal 9475a22728 update introducers. cleanup unreachable routers 2023-04-05 21:30:36 -04:00
orignal 220ef283de rename SendTunnelDataMsg to SendTunnelDataMsgTo for router tunnel delivery types 2023-04-04 13:48:00 -04:00
orignal 922e5915b1 rename SendTunnelDataMsg to SendTunnelDataMsgs for multiple messages 2023-04-04 13:19:08 -04:00
orignal 55b2f2c625 memory pool for IdentityEx 2023-03-16 21:32:53 -04:00
orignal d50cf0ad83 recognize congestion caps 2023-03-03 20:21:56 -05:00
Vort 6610af08c2 Correct processing of reseed.floodfill option 2023-03-03 21:26:38 +02:00
orignal f84d88ac63 publish own RouterInfo in router's thread 2023-02-24 18:28:30 -05:00
orignal d40cd00cdb use DHT table for floodfills 2023-02-22 15:58:20 -05:00
orignal 8544283110 don't expire connected routers 2023-02-21 21:33:30 -05:00
orignal abf687ff09 store RouterInfo in DHT 2023-02-21 19:08:12 -05:00
orignal b8a99878b6 don't create profile for every new non-floodfill 2023-02-19 10:30:07 -05:00
orignal 02a36a9fa8 don't populate buffer of unreachable router 2023-02-14 15:44:35 -05:00
orignal 532a29b0c4 don't reply with unreachable router 2023-02-13 19:18:02 -05:00
orignal c2faa5c614 don't try to save RouterInfo if no buffer 2023-02-12 19:10:22 -05:00
orignal d15581d95e delete invalid router after update 2023-02-12 18:02:16 -05:00
orignal 48a3c767e5 in-meory storage for router profiles 2023-02-11 16:22:02 -05:00
R4SAS 86fc12e395
[style] clean code
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-02-11 09:41:51 +03:00
Vort 0829b186b7 Fix debug log output 2023-02-10 01:57:43 +02:00
orignal aac9a8d18f check if clock was adjusted backwards 2023-02-09 18:32:18 -05:00
orignal 4930157e93 don't innsert back unreachable router 2023-02-06 16:18:16 -05:00
orignal 80a55c5b75 store unrechable in profile 2023-02-06 13:19:41 -05:00
orignal c18e8f6c78 drop too long LeaseSet without processing 2023-01-07 10:54:49 -05:00
R4SAS 503f522cc3
[style] clean trailing spaces and tabs
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-01-03 21:25:19 +03:00
orignal e4ddc883d2 drop future RouterInfo and LeaseSet upon receive 2022-12-20 18:41:19 -05:00
orignal 5ac01ddce8 delete routers with timestmep from future 2022-12-20 15:23:54 -05:00
orignal 3458665df8 don't delete unreachable routers if tunnel creation success rate is too low 2022-12-11 17:03:53 -05:00
orignal 53ca5dc67a memory pool for address vectors 2022-12-07 14:08:27 -05:00
orignal 709c451400 disable MemoryPool for RouterInfo's address 2022-12-04 17:49:59 -05:00
orignal aa9a9ef18d memory pool for addreses 2022-11-25 19:18:53 -05:00
orignal fb8be32c28 removed SSU and NTCP transports 2022-11-23 15:45:00 -05:00
orignal a298588943 SSU2 only introducers 2022-11-23 13:44:03 -05:00
orignal 9e02c99db5 check and limit LeaseSet's buffer size 2022-11-22 15:40:48 -05:00
R4SAS 96c4463d39
clean code
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-10-09 20:24:43 +03:00
orignal 1a32c55ca3 delete routers with expired SSU2 introducers 2022-08-31 13:10:52 -04:00
orignal 8f5768f85b memory pool for leases 2022-08-09 19:40:07 -04:00
orignal fc63ca6982 correct excluded routers size for exploratory request 2022-07-30 14:28:09 -04:00
orignal 3683ec6a95 fixed race condition 2022-07-22 15:16:42 -04:00
orignal cf0d3b5f61 create new list of SSU2 introducers 2022-07-19 18:38:58 -04:00
orignal a3e19931f0 insert RouterInfo from SessionConfirmed into netdb immediately 2022-07-19 14:06:00 -04:00
orignal e8c58270c4 Populate router's buffer before sending RouterInfo block 2022-06-15 13:10:49 -04:00
orignal 87a434c377 start peer test for SSU2 2022-06-01 21:51:02 -04:00
R4SAS 6b4ffcff5a cleanup code (spaces, tabs)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-05-20 17:44:29 +00:00
orignal bc8e4494c4 random new profiles cleanup interval 2022-05-07 09:56:58 -04:00
R4SAS c3a064f980
change int type
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-05-07 03:40:59 +03:00
R4SAS eb3feb7dbd [profiles] add daily cleanup
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-05-07 03:19:32 +03:00
orignal ee1c4f4fdc internal numeric id for families 2022-03-24 15:50:20 -04:00
orignal a92c29e04c drop routers older than 6 months on start 2022-02-13 15:42:06 -05:00
orignal a2de5564ac moved m_Properties to LocalRouterInfo 2022-01-15 18:54:02 -05:00
orignal e4ab0acc92 create RouterInfo from shared pointer to Buffer 2022-01-03 16:27:28 -05:00
orignal c6b2ce93c4 Memory pool for RouterInfo address 2022-01-01 15:12:59 -05:00
orignal f567417bb3 memory pool for RouterInfo buffer 2021-12-30 15:16:13 -05:00
R4SAS edc0162163
clean line trailing spaces and tabs
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2021-11-27 23:30:35 +03:00
R4SAS 94661f697b
[log] update log messages (closes #1693)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2021-11-27 22:53:53 +03:00
Dimitris Apostolou 8ee9c437e1
Fix typos 2021-11-13 19:07:50 +02:00
orignal f8c390cdd3 pick compatible tunnels 2021-11-06 15:44:56 -04:00
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.
2021-10-19 22:27:12 +02:00
orignal 48131f4597 don't store full path with RouterInfo 2021-10-07 15:08:33 -04:00
orignal 20652f7995 resseed if too few floodfills 2021-09-09 15:12:53 -04:00
orignal c763472914 select ECIES routers only for peer tests and introducers 2021-09-05 08:41:32 -04:00
orignal 349022ae42 don't select ElGamal routers for tunnels 2021-09-03 13:30:01 -04:00
orignal 541464b705 don't delete floodfill if number of remaining floodfills is less than minimal 2021-08-26 15:13:58 -04:00
orignal 64ec7dd559 narrow down random range 2021-08-03 19:26:09 -04:00