Commit Graph

311 Commits (62d7192a5059626396d6f0aa6b65380fde79db69)

Author SHA1 Message Date
Jeff Becker 6fd714d193
contrib/testnet: fix up testnet config generator to make super centralized topology
llarp/context.cpp, llarp/nodedb.{h,c}pp: load netdb AFTER whitelist
llarp/router/router.cpp: explore always
llarp/router/{i,}rc_lookup_handler.{h,c}pp explore with whitelist, update routers with lookup before stale
5 years ago
Jeff Becker 9322df013b
check with rc handler before insert 5 years ago
Jeff Becker 2af64671bf
make it compile 5 years ago
Jeff Becker 0526fef37b
store RCs if valid 5 years ago
Jeff Becker 09f5f6dfa7
disable iterative lookup 5 years ago
Jeff 0e2c5736a8
Merge pull request #1034 from majestrate/dht-timeout-fixes-2020-01-10
dht timeout tweak
5 years ago
Jeff Becker 78cdf8f96b
variable lookup timeout on participants 5 years ago
Jeff Becker 8bb492da6e
dht timeout tweak 5 years ago
Jeff Becker b2784dd5ec
explore faster 5 years ago
Jeff Becker a3e7324e9a
make it compile 5 years ago
Jeff Becker c3b14b32b4
relays do profiling and not hand out "shit" routers in explore 5 years ago
Jeff Becker 8b8d636ded
make format 5 years ago
Thomas Winget e53e3db171 make dht context use new libuv timers 5 years ago
Stephen Shelton 66a058a2af Make format 5 years ago
Stephen Shelton 93b8832026
Merge branch 'dev' into private-keys-backup-support 5 years ago
Jeff Becker 56dce90de9
add trace log level for tracking logic thread jobs 5 years ago
Stephen Shelton db56e17c23 Rename bencode function for clarity 5 years ago
Jeff Becker d54dc7a988
prune dht peers every router tick 5 years ago
Michael edd0ec398f
Move thread stuff to subdirectory 5 years ago
Michael 1aec0dfa2b
Move logging to subdirectory 5 years ago
Jeff Becker b904a4ee22
fix explore 5 years ago
Michael 777261cb20
Use ToString over ToHex 5 years ago
Michael 094b697b01
Replace StatusObject with underlying JSON type 5 years ago
Michael 16cdfbd5f0
clang-tidy modernize pass 5 years ago
Michael f9e9227e19
Fix gcc trunk warnings 5 years ago
Jeff Becker 7e9ef19f69
use std::min 5 years ago
Jeff Becker f4ac918b7e
remove -1 5 years ago
Jeff Becker d595b51b0b
fix dht exploration ;~; 5 years ago
Jeff Becker e1dd7ad97f
revert dht stuff 5 years ago
Jeff Becker db2206664a
fix crashes in testnet 5 years ago
Jeff Becker 9a8470bcc1
* const correctness
* use std::map's upper_bound to find many closer entries
* randomize key for exploration to allow many explore jobs in paralell
5 years ago
Thomas Winget baf8019fe5 Refactor Router code into more classes
This commit refactors functionality from the Router class into separate,
dedicated classes.
There are a few behavior changes that came as a result of discussion on
what the correct behavior should be.
In addition, many things Router was previously doing can now be provided
callback functions to alert the calling point when the asynchronous
action completes, successfully or otherwise.
5 years ago
Jeff Becker 1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply 5 years ago
Jeff Becker f62446e1a4
make it compile 5 years ago
Jeff Becker a0f32fde13
reduce logging 5 years ago
Jeff Becker 12d4bfc379
always ask peers for next closest 5 years ago
Jeff Becker 16e20a9e79
try fixing bootstrap 5 years ago
Michael 488695047f
Remove redundant else blocks 5 years ago
Michael d6751e3eeb
Move subset of messages to right directory 5 years ago
Michael b89689fec3
Refactor path build code 5 years ago
Michael 491fee206b
Port code to use CryptoManager over passing Crypto pointers 5 years ago
Michael 3f53965b71
Remove all use of IBEncodeMessage 5 years ago
Jeff 28623766c1
Merge pull request #617 from majestrate/master
changes after consensous
5 years ago
Michael 7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection 5 years ago
Jeff Becker 73f1d34239
make format and revert stupid alloc changes 5 years ago
Jeff Becker 8bee0a3d5e
fix 5 years ago
Jeff Becker 06be908369
use 1 for dht exploration 5 years ago
Jeff Becker 018dd008ec
add custom single threaded allocator for utp buffers
fix up test net stuff
5 years ago
Jeff Becker e80f7419b0
check for allowed by network 5 years ago
Jeff Becker 15fd9c1bef
explicit not found for non staked nodes 5 years ago
Jeff Becker 779b1f4df5
more timeout tweaks and disable profiling on service nodes 5 years ago
Jeff Becker 69ffef30bb
increase dht request timeout from 5s to 30s 5 years ago
Jeff Becker d423ee02d2
use shared_ptr 5 years ago
Michael 9ee525a006
Fix shadowing warnings 5 years ago
Michael 4143472a17
Add cmake module to target a library as 'system', and fix a few warnings 5 years ago
Michael 3a8715d8e4
Fix introset tests 5 years ago
Michael 98e691f315
Tidy up more parts of the service/ directory 5 years ago
Michael e33a33635c
Remove usage of raw new from service classes 5 years ago
Michael c39c931d03
Remove IStateful virtual inheritance 5 years ago
Jeff Becker 94eb37d490
bundle RC in build record to improve build success rates. 5 years ago
Jeff Becker 0906888bff
fix findrouter 5 years ago
Jeff Becker 5938cec770
fix gotrouter handling 5 years ago
Jeff Becker 05dc2fb679
decay profiles unconditionally 5 years ago
Jeff Becker 66432afdda
proper explore for clients 5 years ago
Jeff Becker 90e92c66c2
insert bootstrap nodes into nodedb and explore more 5 years ago
Jeff Becker c26145f70e
* fix up integration tests
* make recursive router lookup backtrack
5 years ago
Jeff Becker e08986e457
fix previous commit 5 years ago
Jeff Becker 3a4d8f16a7
more 5 years ago
Jeff 1deafe444a serve non connected dht nodes 5 years ago
Jeff Becker 6c5a015f4f
unconditional reply 5 years ago
Jeff Becker 1694337cab
ONLY CHECK FOR ACTIVE DHT NODES 5 years ago
Jeff Becker 482dce28bd
make it work 5 years ago
Michael 13a9f65520
Fully define interface for dht::Context 5 years ago
Michael a00d6afc5e
Convert llarp_buffer_t to be a class with methods 5 years ago
Michael 048fa83c39
Finish replacement of Router with AbstractRouter 5 years ago
Jeff Becker 46222df421
refactor 5 years ago
Jeff Becker 66753430ad
fix it 5 years ago
Jeff Becker e1522faeaa
add introspection rpc endpoint 5 years ago
Jeff Becker e24b595191
more dht fixing, only pick the most up to date entity for reply 5 years ago
Jeff Becker d7f715c632
don't send more than 1 introset in reply 5 years ago
Jeff f0dc5f2b48 unbreak build 5 years ago
Jeff 0f777d822b Merge branch 'staging' of ssh://github.com/majestrate/loki-network into staging 5 years ago
Jeff ba8313e57e limit replies on introset lookup, pick newest 5 years ago
Michael 729cd045f1
Convert llarp::Router into an abstract base class 5 years ago
Michael 1ba6507a2f
Tests for dht::ServiceAddressLookup 5 years ago
Michael b1213c7a7c
Tests for dht::TagLookup 5 years ago
Ryan Tharp 4bf4faa956 make format 5 years ago
Michael f3b0af9d2f
Create CopyableBuffer type 5 years ago
Michael 2de621b0ad
Disable copy constructing llarp_buffer_t 5 years ago
Ryan Tharp c3bf68b502
Merge branch 'staging' into dht_tests 5 years ago
Michael f24f554a01
Convert llarp::Crypto into an abstract base class 5 years ago
Michael 1f95f1e78f
More unit tests of dht internals 5 years ago
Michael 3f320009d7
Introduce abstract class for dht::Context 5 years ago
Michael 40449df0f1
Split classes out of dht::Context 5 years ago
Michael ccb5f6b696
Add tests for dht::TXOwnere 6 years ago
Michael 2d395cc3f9
Move code to correct home 6 years ago
Michael 550669e318
Fix typo in class name 6 years ago
Michael 80bd41916e
More tidying of dht code 6 years ago
Michael 03d56c1591
Add test suites for dht bucket, kademlia and key 6 years ago
Michael 7296ebcbe8
Tidy dht code 6 years ago
Michael da6cdfc0b2
More refactoring to continue to make dependency graph acylic 6 years ago
Michael 6e38e85a79
Produce hierarchy of 'libraries' inside libllarp 6 years ago
Michael 79157414f3
Split crypto.hpp into 3 different files 6 years ago
Michael 04e0fe3ad7
Move crypto code to a subdirectory 6 years ago
Michael 081d4dfa32
Reorganise source into more folders 6 years ago
Michael e5eda0fb8f
Move lokinet unspecific components to a util/ library 6 years ago
Michael 167d5aca6d
Add test suite for bencode 6 years ago
Michael 516466f5be
Mark more AlignedBuffer constructors as explicit 6 years ago
Michael ea19093a20
Remove const byte* conversion operators from llarp::AlignedBuffer 6 years ago
Michael 58364a01c8
Remove array conversion operators from llarp::AlignedBuffer 6 years ago
Michael 334161c9bb
Remove data() conversions from llarp::AlignedBuffer 6 years ago
Michael 8f053106e6
Add tests for llarp::dht::Key_t 6 years ago
Jeff Becker 49c898ed92
Merge remote-tracking branch 'origin/master' into staging 6 years ago
Jeff 4b2a1ea9f3 make format and attempt to fix #158 6 years ago
Jeff Becker 8c8172aeb1
Merge remote-tracking branch 'origin/master' into dev 6 years ago
Jeff Becker 3e37165749
Merge remote-tracking branch 'origin/master' 6 years ago
Jeff Becker e7f5eeff51
use fewer allocations 6 years ago
Michael 037cb87523
Convert llarp::AlignedBuffer to be backed by std::array 6 years ago
Jeff Becker 6fc42dc7ad
fixes 6 years ago
Jeff Becker cca19290de
session renegotiation, RC expiration, more utp unit tests, network isolation. 6 years ago
Ryan Tharp 46d488d9ab improve logging explanation for testnets 6 years ago
Jeff Becker 3115636024
try fixing crash 6 years ago
Michael 4257b62e88
Add .cpp files for all .hpp files 6 years ago
Jeff Becker be234e4b6e
* make format
* snode to snode direct traffic

* wire up dns on service node tun
6 years ago
Michael 85dde7b6b0
Move remaining include/llarp headers to llarp/ 6 years ago
Michael e887b4e9c7
Move service* to llarp/ 6 years ago
Michael 5aa7f49470
Move routing* to llarp/ 6 years ago
Michael b92ea0521b
Move router_contact.hpp to llarp/ 6 years ago
Michael fddc8734d2
Move dht* to llarp/ 6 years ago
Michael 7be452092c
Convert llarp_crypto to be a true C++ class 6 years ago
Michael 6358b25db0
Convert llarp_nodedb to be a true C++ class 6 years ago
Michael f0fce5b68a
Convert llarp_router to be a true C++ class 6 years ago
Jeff Becker fad734a5ce
strict types for pubkey, secretkey and routerid 6 years ago
Michael 30e9dca2e5
Convert llarp_logic to be a C++ class 6 years ago
Jeff Becker 622ed8d12e
fix crash on premature close of event loop (also make format) 6 years ago
Jeff Becker e6037ff060
pack exit traffic 6 years ago
Jeff Becker d25d35c06e
dht 6 years ago
Jeff Becker 10c2d1552d
don't connect to explored routers 6 years ago
Jeff 067f6c7b26 make format and make it compile with clang 6 years ago
Jeff Becker cf57eca7c3
check keyspace distance and inform not found when next peer is not closer than previous peer 6 years ago
Jeff Becker 3dd466629b
check for nullptr 6 years ago
Jeff Becker e0f1d985c8
more dht tweaks 6 years ago
Jeff Becker 38a92cb1a8
fixes for testnet 6 years ago
Michael Thorpe 33bfaf7ecd
Enable -Wextra
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
6 years ago
Ryan Tharp 5d90cbe895 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp 7af23dcaad format 6 years ago
Ryan Tharp 67390de0c2 merge 6 years ago
Jeff Becker 2d279e83fd
initial tcp connect for epoll 6 years ago
despair d425b5d308 implement tcp evloop on win32
(with its now-obsolete distinction between socketfd and fd)

sockets and file descriptors used to be distinct objects....back in the
16-bit Winsock 1.1 era, which needlessly complicated the 32-bit port
back then. these days one can use [Read|Write]File(2) to operate on
sockfds...which also have some of the semantics of [read|write]v(2)
i.e. the scatter-gather thing it's known for is done in async handler

-rick

variants are nice

added note to self

clang-format

link abyss properly

oops

shut up

*shrugs*

oops forgot to start winsock

moved our async io status flags to the base class

let derived classes override them as needed

this is probably a synchronous op _anyway_

fix typo

wtf
6 years ago
Jeff Becker dbd2c41909
use event loop for time 6 years ago