Commit graph

281 commits

Author SHA1 Message Date
orignal 2fa4237acd renew connected receintly timestamp, add endpoint to the list if hole punch is being sent 2024-09-18 14:35:59 -04:00
orignal a723405fb0 check max RouterInfo size 2024-09-18 08:38:29 -04:00
orignal f20391d460 check if we connected recently to an endpoint before sending peer test 2024-09-17 21:49:23 -04:00
orignal 855fd4d471 eliminate extra parsing of RouterInfo coming as RouterInfo block 2024-09-06 09:49:24 -04:00
orignal cc59003560 removed C++17 check 2024-09-02 18:22:33 -04:00
orignal 11328a429d set minimal resend interval. Resend attempt after only Ack 2024-08-14 10:13:35 -04:00
orignal b306bf2db9 don't handle connect timer for already terminated session 2024-08-09 08:14:39 -04:00
orignal 8c0a1197d7 drop incoming SSU2 session from duplicated router 2024-07-08 10:39:18 -04:00
orignal 4e5f5c218a mark router as dup0licted only if address mismatch 2024-07-08 08:00:36 -04:00
orignal 64cc59d1e9 recognize duplicated routers and store duplicated flag in profile 2024-07-07 11:26:17 -04:00
orignal 0c943f4405 use received RouterInfo if older than one in netdb 2024-07-06 10:28:18 -04:00
orignal ff8941af71 check if address is still introducer before trying to introduce 2024-06-27 18:02:17 -04:00
orignal 6caec6b551 check if updated router is still introducer. Remove non-introducer sessions from introducers list 2024-06-13 18:10:45 -04:00
orignal f990a2f69f don't reply with relay tag if we are not on introducer on that address 2024-06-09 15:07:12 -04:00
orignal 0b97b4294c don't request relay tag for every session if we have enough introducers 2024-06-08 19:28:05 -04:00
orignal 6a590bf970 use std::mt19937 instead rand() 2024-06-07 22:10:52 -04:00
orignal bc8adf1433 move unsent I2NP messages to new session if replaced 2024-06-01 20:02:04 -04:00
orignal a1322d4667 move unsent I2NP messages to new session if replaced 2024-06-01 17:46:18 -04:00
orignal acbd3f897b fixed race condition between local buffer creation and sending it through the transports 2024-05-26 15:33:37 -04:00
orignal 124698854f skip resent recently sessions during resend 2024-05-14 18:17:47 -04:00
Vort ac9d92c681 select maximum SSU2 queue size depending on RTT value 2024-03-26 10:18:56 +02:00
orignal f2085ecc8d fixed warning 2024-03-15 19:17:25 -04:00
Vort d74033dd2b tune RTT calculations 2024-03-15 09:06:33 +02:00
Vort 0236769134 lower SSU2 resend traffic spikes 2024-03-14 19:41:16 +02:00
orignal 530a078535 don't request temination if session was not established 2024-03-13 13:56:10 -04:00
Vort 2d06c0cbe6 add expiration for messages in SSU2 send queue 2024-03-09 19:09:05 +02:00
orignal 1292ec67c0 check if remote router supports peer test 2024-03-02 18:02:55 -05:00
orignal f8722f17c6 pick peer test session only if Charlie's address supports peer testing 2024-03-01 21:59:52 -05:00
orignal 38cc01e13d check own peer test cap for peer test msg 2 2024-03-01 14:33:11 -05:00
orignal 6ca266ff3b reject peer test msg 2 if peer testing is not supported 2024-03-01 14:03:13 -05:00
Vort adba3987f8 logging fixes 2024-02-10 17:10:21 +02:00
orignal 96cf6ca531 drop earlier if outgoing queue is semi-full 2024-02-01 18:14:45 -05:00
orignal 0ca782ed71 drop unsent messages if session disconnects 2024-01-30 18:02:14 -05:00
orignal f008478505 handle I2NP messages drops 2024-01-29 19:54:43 -05:00
orignal 70639f1139 don't adjust clock if offsets came from same router 2024-01-24 19:05:38 -05:00
orignal 9f217f8a11 don't send expired I2NP messages 2024-01-21 18:59:04 -05:00
orignal ca9782dd0d handle 'reservedrange' param properly 2024-01-11 15:39:42 -05:00
orignal c5cab05a6b reset peding time offset if correct time was received 2024-01-02 19:42:49 -05:00
orignal d4c47d90cb adjust time offset after second time discrepancy 2023-12-30 17:16:28 -05:00
orignal 0cc91dd2d2 don't pick too active peer 2023-10-15 08:31:55 -04:00
Vort 9bac680f2a improve transport session logging 2023-08-05 18:25:01 +03:00
Vort 68f4961f1a separate test status from network status 2023-07-30 15:44:16 +03:00
orignal c7efd465fa padding for path response 2023-07-21 18:25:28 -04:00
orignal 6e9a3422e9 correct min size for keepalive 2023-07-21 07:59:09 -04:00
orignal 0754255c1f drop incoming session from too old or from future routers 2023-07-17 21:08:26 -04:00
Vort ea7cf1cf69 fix termination block processing and size check 2023-07-15 18:44:37 +03:00
orignal 8a52295882 make router real upon successive outgoing NTCP2 session. Eliminate static keys table 2023-05-06 16:43:09 -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
orignal 4ce2ef1d83 make router unreachable if AEAD fails in SessionCreated 2023-05-03 07:43:28 -04:00
orignal 7c535159bc static keys table 2023-04-30 20:05:35 -04:00
weko 354a04f0f6 Up level for some logs to critical 2023-03-31 11:29:04 +00:00
orignal cd1af85e39 bypass slow transport sessions 2023-03-29 15:54:53 -04:00
Dimitris Apostolou d91d734b5c Fix typos 2023-03-26 01:48:22 +00:00
orignal f41563a700 check packet number for SessionConfirmed 2023-03-19 17:42:53 -04:00
orignal 084663d6ea mediam size I2NP messages 2023-03-18 15:32:05 -04:00
orignal 5ad9c8e740 create I2NP tunnel message for first fragment 2023-03-13 19:19:57 -04:00
orignal 4db643aa8e limited number of acked packets to 511 2023-03-02 16:18:25 -05:00
orignal 02a36a9fa8 don't populate buffer of unreachable router 2023-02-14 15:44:35 -05:00
orignal d79bdc9f66 send datetime block after approximately every 250 packets 2023-02-11 20:11:34 -05:00
R4SAS 86fc12e395
[style] clean code
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-02-11 09:41:51 +03:00
orignal ac94341203 disconnect established session if clock skew detected 2023-02-10 11:48:11 -05:00
Vort 0829b186b7 Fix debug log output 2023-02-10 01:57:43 +02:00
orignal d1c98c58b9 update status before deleting session 2023-02-06 19:31:31 -05:00
orignal 3c02cade58 compare only first 8 bytes for temporary addreses 2023-02-05 19:19:20 -05:00
orignal 21123e2afa compare published address and actual endpoint 2023-02-05 18:26:09 -05:00
orignal f1415c2234 compare published address and actual endpoint 2023-02-05 15:42:46 -05:00
orignal 54fb234424 limit number of acked packets to 510 2023-02-03 19:17:46 -05:00
orignal 02e7f6b0c3 cleanup out of sequence packet nums in one call 2023-02-02 13:52:48 -05:00
orignal e9f0ed6473 cleanup out-of-sequnce list more aggressivly 2023-02-01 19:05:04 -05:00
orignal 4960587f46 cleanup out-of-sequnce list more aggressivly 2023-02-01 18:37:31 -05:00
orignal e8be39af17 memrory pool for SSU2IncompleteMessage 2023-01-17 21:32:36 -05:00
orignal bc888167a7 use linked list for out of sequence fragments 2023-01-16 21:40:23 -05:00
orignal 993dc72ce6 use separate pointer to second fragment of incomplete message 2023-01-15 22:50:54 -05:00
orignal 324ace103b memoery pool for fragments 2023-01-14 17:05:09 -05:00
orignal d530269e4f try to insert received msgid instead lookup 2023-01-13 19:23:26 -05:00
orignal a3c305032a don't set Firewalled upon SessionCreated if ports mismatch 2023-01-08 08:25:23 -05:00
orignal 1cc68ea402 differentiate symmetric and full cone NAT 2023-01-07 12:06:26 -05:00
orignal a6f9a56e40 support C++20 2023-01-06 14:08:39 -05:00
orignal 55704ece3a drop duplicated I2NP messages 2023-01-05 15:33:41 -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
R4SAS 22179400c7
2.45.0
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2023-01-03 18:16:34 +00:00
orignal 7b341d5d30 update and show send queue size for transports 2023-01-01 16:03:53 -05:00
Dimitris Apostolou 9f9e8bfa14
Fix typos 2022-12-27 10:44:23 +02:00
orignal b6f83dfe9f set error before status 2022-12-22 08:36:07 -05:00
orignal 36501fe31e change network status back to OK if port in msg 7 matches 2022-12-21 18:14:19 -05:00
orignal d6c101d261 try to handle RelayIntro again is Alice's RouterInfo not found 2022-12-19 13:28:21 -05:00
orignal eeea02d834 rounded to seconds timestamps 2022-12-19 12:56:19 -05:00
orignal df737a65b2 SessionRequest must be min 88 bytes 2022-12-15 15:08:56 -05:00
orignal f6ca7c19af allow zero length padding 2022-12-12 14:18:36 -05:00
orignal 8ad5696e50 don't send termination again if termination received block received 2022-12-06 21:40:33 -05:00
orignal 2bb5ff7184 eliminate RTT self-reduction 2022-12-05 15:48:11 -05:00
orignal 50abeea82a print endpoint if more than two fragments of SessionConfirmed 2022-12-04 17:08:38 -05:00
orignal 8db352b4d0 recognize symmetric NAT from peer test msg 7 2022-12-04 16:30:45 -05:00
orignal 2a6f906177 print separate message for introducer timeout 2022-11-27 17:14:33 -05:00
orignal 64c3282aae check minimal message size 2022-11-27 09:13:24 -05:00
Dimitris Apostolou 73b9c0302b
Fix typos 2022-11-25 22:37:52 +02:00
orignal ccfeca728e use only SSU2 for network status 2022-11-22 22:03:19 -05:00
orignal e5553f7528 milliseconds for peer test send time 2022-10-11 18:21:04 -04:00
orignal 6e3cec653d resend PeerTest msg 2 2022-10-11 15:27:19 -04:00
orignal 55976fd9dc resend PeerTest msg 1 2022-10-10 16:34:08 -04:00