Commit Graph

284 Commits

Author SHA1 Message Date
orignal
ff12421d60 shared_ptr for lookup messages 2015-06-22 15:47:45 -04:00
orignal
2cbd6e85c6 use shared_ptr for garlic messages 2015-06-21 22:29:50 -04:00
Mikhail Titov
490b65dfe2 Materialize temporary string obtained from boost path 2015-06-19 14:47:33 -05:00
orignal
4ed7e29896 use shared_ptr for I2NP messages through tunnels 2015-06-19 14:38:31 -04:00
orignal
d65257c7b0 pass I2NP as shared_ptr to netDB 2015-06-16 13:32:42 -04:00
orignal
20e43951e5 reduce CPU usage 2015-06-11 11:43:35 -04:00
orignal
2b797fcd54 use shared_ptr for NetDb's I2NPMessages 2015-05-11 15:17:43 -04:00
orignal
7f172964f6 check profile only once 2015-05-04 13:01:27 -04:00
orignal
a8b4f38865 router don't expire if less than 75 2015-04-15 07:30:37 -04:00
orignal
4d27399ce3 check profile for high bandwidth peer selection only 2015-04-13 18:51:31 -04:00
orignal
76c54ffdef always check profile for peer selection 2015-04-13 18:41:19 -04:00
orignal
ce99357ebe check for zero ident 2015-04-12 16:59:59 -04:00
orignal
562de3514a check database lookup type 2015-04-12 15:54:28 -04:00
orignal
128a8f3b48 delete obsolete profiles 2015-04-11 15:39:23 -04:00
orignal
1d2950b4a7 reduced CPU load at floodfill 2015-04-10 19:49:58 -04:00
orignal
9072a018dd reduced CPU load at floodfill 2015-04-10 18:13:11 -04:00
orignal
2a997d94bf GetClosestFloodfills added 2015-04-10 16:15:13 -04:00
orignal
950f250d66 NetDb/NetDbRequests split 2015-04-09 12:45:00 -04:00
orignal
d5e1d5db9c validate leaseset for zero leases 2015-04-08 10:34:16 -04:00
orignal
56822d9424 fixed null pointer exception 2015-04-07 17:22:14 -04:00
orignal
1e74ff8a85 use shared_ptr for CreateDatabaseStore 2015-04-07 15:15:27 -04:00
orignal
8c47bf9dd3 use shared_ptr for local LeaseSet 2015-04-07 15:02:00 -04:00
orignal
fd3dab35cc collect and save participation agreed/declined stats 2015-03-24 18:48:16 -04:00
orignal
1caacaacf0 UpdateStats for RouterContext 2015-03-18 15:36:07 -04:00
orignal
0b754ec65d publish number of leasets and routers for floodfill 2015-03-18 15:06:15 -04:00
orignal
47c3d5ed23 don't accept tunnels if bandwidth is exceeded 2015-03-18 13:07:11 -04:00
orignal
60351f2677 send exporatory message directly if connected to a floodfill 2015-03-17 20:56:51 -04:00
orignal
c7edc36106 reduce memory usage 2015-03-12 16:26:08 -04:00
orignal
ccf689ffd5 connect to introducer if not any yet 2015-02-26 21:05:35 -05:00
orignal
582daffd7f select peer test capable routers 2015-02-26 14:17:16 -05:00
orignal
58ebd8cc59 1 hours expiration of RI in case of floodfill 2015-02-24 11:58:39 -05:00
orignal
93c2c13f96 fixed memory leak 2015-02-12 14:03:59 -05:00
orignal
b11fd250c1 fixed race condition 2015-02-12 11:40:42 -05:00
orignal
d01f3b094b allow netDb cleanup after every 500 messages 2015-02-10 09:30:48 -05:00
orignal
8492e87d29 fxied race condition 2015-02-09 22:19:29 -05:00
orignal
b9e3931e80 use shared_ptr for inbound tunnels 2015-02-05 18:53:43 -05:00
orignal
7945126e86 use unique_ptr for requested destination 2015-02-05 13:36:28 -05:00
orignal
778d1afda0 cleand destination requests every 15 seconds 2015-02-04 15:34:52 -05:00
orignal
cd8e9e59fa don't request same RouterInfo twice 2015-02-03 16:14:33 -05:00
orignal
c5a3832eae handle exploratory lookups 2015-02-02 22:34:55 -05:00
orignal
95dbc20350 log more disgnostics data 2015-02-02 20:15:49 -05:00
orignal
e3764bef37 fixed incorect reply data parsing for DatabaseStore 2015-02-02 13:06:02 -05:00
orignal
ba11971513 don't delete updated RouterInfo 2015-02-02 09:40:03 -05:00
orignal
8ad9f2681c send 3 closest floodfills 2015-02-01 19:58:26 -05:00
orignal
b46c3036d8 flood 2015-02-01 18:30:27 -05:00
orignal
79af7c22d9 send DatabaseStore reply 2015-01-30 15:13:09 -05:00
orignal
938fa00469 publishing with flood 2015-01-28 21:01:16 -05:00
orignal
2ed69ef602 clean up expired LeaseSets 2015-01-28 14:20:28 -05:00
orignal
b3e08b2cf4 shared_ptr for tunnels 2015-01-27 14:55:46 -05:00
orignal
d1d6797d3e store LeaseSet as shared_ptr 2015-01-27 11:27:58 -05:00
orignal
027c43c99c Reseed through I2PControl 2015-01-19 13:57:37 -05:00
orignal
72a4f8a9a1 fixed crash on shutdown 2015-01-14 20:27:19 -05:00
orignal
ad9d7931f5 RequestComplete for RouterInfo 2015-01-14 16:11:09 -05:00
orignal
e3e0702813 fxied crash at startup 2015-01-11 17:40:11 -05:00
orignal
4d25634b66 less agressive exploratory 2015-01-10 16:08:13 -05:00
orignal
717940d969 some cleanup 2015-01-10 09:07:07 -05:00
orignal
2a76f1decd publish own RouterInfo every 40 minutes if nothing changed 2015-01-08 16:14:05 -05:00
orignal
8812a45607 DatabaseLookup for RouterInfo 2015-01-04 17:25:16 -05:00
orignal
fd9a8fd2b1 eliminated cast to DatabaseStoreMsg 2015-01-02 21:11:40 -05:00
orignal
29d1aa0146 more fixes of misalignment 2015-01-01 23:00:33 -05:00
Francisco Blas (klondike) Izquierdo Riera
84f7966a0b Fix even more alignment problems 2014-12-31 19:48:46 +01:00
Francisco Blas (klondike) Izquierdo Riera
1636187e26 Avoid aliasing problems by using special buf endian handling functions wrapping memcpy 2014-12-29 23:04:02 +01:00
orignal
86a7f96a46 take tunnels from exploratory pool only 2014-12-27 20:36:32 -05:00
orignal
bbe403fb40 main netdb can request router info only 2014-12-25 21:13:51 -05:00
orignal
78c06bdd22 manage non-reponded database requests 2014-12-24 11:20:38 -05:00
orignal
bb5e520a79 reduce minimal # of routers to 50 2014-12-22 15:14:49 -05:00
orignal
f357a5864c pass local destination by pointer 2014-12-15 21:24:01 -05:00
orignal
82d5bf2f8a load certificates before reseed 2014-12-15 12:38:35 -05:00
orignal
56a95fa9b5 check for RI size 2014-12-11 22:31:39 -05:00
orignal
6ac846f95d SU3 resseed first 2014-12-11 21:14:04 -05:00
orignal
3643d2f1da reseed from SU3 2014-12-11 15:41:04 -05:00
orignal
a0893eabfa fixed build error 2014-12-10 07:28:49 -05:00
orignal
e1c25fedb0 wait for confirmantion of publishing 2014-11-28 13:01:35 -05:00
orignal
dcefe7d221 fixed typo 2014-11-21 13:49:49 -05:00
orignal
ed3aaefe96 delete delete routers from memory 2014-11-21 13:29:19 -05:00
orignal
6042aefd17 delete dead floodfill 2014-11-21 13:02:46 -05:00
orignal
d8b9968aed use shared pointer for RI in requested destination 2014-11-21 11:37:17 -05:00
orignal
8a357ac46c store shared pointer to RI in tunnel config 2014-11-21 10:46:11 -05:00
orignal
0f4e4a7944 return shared_ptr to RI 2014-11-20 16:20:02 -05:00
orignal
96387aecbd store RIs as shared pointers 2014-11-18 11:08:10 -05:00
orignal
c9abb62988 set unreachable trough NetDb 2014-10-24 15:39:53 -04:00
orignal
7b768ccb26 moved transports to 'transport' namespace 2014-10-21 12:25:53 -04:00
orignal
a046af1806 don't use netDb subcriptions anymore 2014-10-15 12:07:06 -04:00
orignal
9b2e275c45 try closest floodfills sequentially 2014-10-14 20:52:40 -04:00
orignal
09dc649101 donn't calculate routing keys for routers anymore 2014-10-14 10:41:40 -04:00
orignal
3a4b6bd7b0 separate requsted and unsolicited LeaseSets 2014-10-13 17:45:07 -04:00
orignal
911ad52989 moved local LeaseSet update from Stream to RoutingSession 2014-10-08 12:11:39 -04:00
orignal
49d67bada0 AES/ElGamal session tags per local destination 2014-10-07 16:18:13 -04:00
orignal
93c1a0760d AES/ElGamal tags per local destination 2014-10-06 20:18:18 -04:00
orignal
0f3a68cd8e fixed race condition 2014-10-05 21:59:05 -04:00
orignal
9750fb73b5 fixed race condition 2014-10-04 16:27:21 -04:00
orignal
6a8c18f2fc don't pick next peer same as previous 2014-10-02 14:43:42 -04:00
orignal
d1a3f11c7a check tunnel where DatabaseStore message comes from 2014-09-29 16:41:41 -04:00
orignal
05148a2579 request LeaseSet through destination's tunnels 2014-09-26 19:22:13 -04:00
orignal
79d2f69837 select high bandwidth routers for client tunnels 2014-09-25 21:08:20 -04:00
orignal
08ff685de8 generic GetRandomRputer 2014-09-24 21:45:19 -04:00
orignal
f30a466bec stop netdb tread immediately on termination 2014-09-23 12:02:32 -04:00
orignal
98361dc8f9 fixed race condition 2014-09-21 22:00:42 -04:00
orignal
cade0e6afa fixed race condition 2014-09-13 12:39:02 -04:00
orignal
2640dff22a improved exploratory 2014-08-28 19:41:02 -04:00
orignal
a4526db9bf improved exploratory 2014-08-28 13:51:26 -04:00
orignal
a096a3931d send reply to DatabaseLookup through exploratory pool or directly only 2014-08-27 10:13:17 -04:00
orignal
481b54a817 send our router information with RI request only 2014-08-24 22:34:13 -04:00
orignal
d231e59f0c speed-up destination request 2014-08-24 21:17:21 -04:00
orignal
b146c5782b correct lenght for LeaseSet 2014-08-22 10:33:01 -04:00
orignal
b671de27ce store tunnel pool with RoutingDestination 2014-08-20 21:47:28 -04:00
orignal
7e0a2ae5ab publish local LeaseSet 2014-08-20 11:12:53 -04:00
orignal
4c2f403740 don't use unreachable RI after 1 hour 2014-08-19 11:01:11 -04:00
orignal
e7126908f9 exploratory improvement 2014-08-10 09:04:17 -04:00
orignal
acd21a04ae delete expired LeaseSets 2014-07-31 12:59:43 -04:00
orignal
5e8dd82b6b fixed crash 2014-07-30 07:32:46 -04:00
orignal
4236299879 handle excluded peers in DatabaseLookup 2014-07-28 22:28:11 -04:00
orignal
c55ad954bf send encrypted reply to DatabaseLokkup if requested 2014-07-28 14:25:14 -04:00
orignal
3d669c95d9 send floodfill in DatabaseSerachReply 2014-07-24 22:01:07 -04:00
orignal
3961fdc2e1 don't load non-reachable routers 2014-07-24 20:47:12 -04:00
orignal
d512c90193 send RouterInfo if found by DatabseLookup 2014-07-24 15:59:00 -04:00
orignal
5492deff21 moved handling of DatabaseLookup to netDb's thread 2014-07-23 11:10:03 -04:00
orignal
028c70d6ee load RI buffer from file by request 2014-07-23 10:56:41 -04:00
orignal
3a8d4403f6 reduce memory usage by deleting RI's buffer after parsing and saving 2014-07-21 22:59:57 -04:00
orignal
f3c6dd4d3d don't copy RouterInfos and LeaseSets 2014-07-21 20:14:11 -04:00
orignal
ad65e52ce0 moved save to file to RI 2014-07-10 15:33:42 -04:00
orignal
b02c777390 delete destination if not requested again 2014-07-10 08:13:47 -04:00
orignal
ab5576c744 delete expired tunnels 2014-07-09 21:43:33 -04:00
orignal
3e25759ada request and process encrypted LeaseSet 2014-07-08 07:45:16 -04:00
orignal
a01e2213eb delete obsolete requested destination 2014-07-07 15:35:42 -04:00
orignal
46d2b38760 keyspace rotation 2014-07-03 14:47:12 -04:00
orignal
f2f4a0b04e cleanup requested destinations 2014-07-03 13:41:36 -04:00
orignal
b95caaf219 exclude hidden routers from tunnels 2014-06-18 10:41:59 -04:00
orignal
566909a50c explore 5 addresses at the time 2014-06-16 22:30:34 -04:00
orignal
d6b97670c4 exploratory if tunnels are not created yet 2014-06-16 21:23:22 -04:00
orignal
1862896532 request RouterInfo if outdated 2014-04-05 21:25:54 -04:00
orignal
24f0ff6c00 pick tunnels from exploratory pool for exploratory 2014-04-03 16:27:37 -04:00
orignal
219f992d9e cleanup exluded routers list for LeaseSets 2014-03-23 11:12:11 -04:00
orignal
38cb57a4c4 request LeaseSet from 3 floodfills 2014-03-22 16:05:58 -04:00
orignal
59d195c6da find router with specified caps 2014-03-19 15:58:57 -04:00
orignal
fb9d351600 store floodfills separately 2014-03-19 14:08:09 -04:00
orignal
56836470cf pulish our RouterInfo to 3 floodfills 2014-03-16 08:00:34 -04:00
orignal
66ff021938 find address 2014-03-13 16:26:04 -04:00
orignal
6732ba21f9 inbound tunnel where an I2NP messages has been received from 2014-03-12 20:13:49 -04:00
orignal
8d6c08ec78 use ElGamalEcryption for garlic encryption 2014-02-20 18:42:55 -05:00
orignal
759fd0815d limit depth of exploratory sent directly 2014-02-14 22:11:49 -05:00
orignal
1545a21682 subscribe to LeaseSet 2014-02-14 16:10:25 -05:00
orignal
ce722e7a5e publish 2014-02-12 22:02:39 -05:00
orignal
103be652ab improve exploratory 2014-02-11 22:19:51 -05:00
orignal
8963c0b309 save new RouterInfos to ~/.i2pd 2014-02-01 15:57:46 -05:00
Meeh
d87a79b226 Load netDb from data directory 2014-02-01 16:10:15 +01:00
orignal
0e5bbfa21c avoid unnececssary recusion 2014-01-31 13:08:33 -05:00
orignal
8d98722b46 fixed compilation error in gcc 4.6 2014-01-31 07:32:34 -05:00
Meeh
86355cfe09 Adding reseed support. v1, only http so far. 2014-01-31 07:22:11 +01:00
orignal
c361b7d914 use base64 alphabet directly 2014-01-29 17:43:20 -05:00