Commit Graph

85 Commits (871c3e3281d15ce876fcd85a02228b4e70453bac)

Author SHA1 Message Date
Jeff Becker e5f92eaa79
only ping lokid if a service node 5 years ago
Jeff Becker f56e543d75
add deadlock checker and revert bencode change from long ago 5 years ago
Stephen Shelton 2c6226f54a Backup SNApp keys when migrating to new ed25519 crypto 5 years ago
jeff 58a25602f5 more fixes, implemenmt missing functions 5 years ago
Michael 15cb49c9bd
Introduce --background to only start JSON RPC
fixes #853
5 years ago
Thomas Winget 38fd0552d3 Adds Link-Relay Status Messages
Success case:
  - the path endpoint creates and sends a LR_StatusMessage upon
    successful path creation

Failure case:
  - an intermediate hop creates and sends a LR_StatusMessage upon
    failure to forward the path to the next hop for any reason

Both cases:
  - transit hops receive LR_StatusMessages and add a frame
    to them reflecting their "status" with respect to that path
  - the path creator receives LR_StatusMessages and decrypts/parses
    the LR_StatusRecord frames from the path hops.  If all is good,
    the Path does as it would when receiving a PathConfirmMessage.
    If not, the Path marks the new path as failed.

LR_StatusMessage is now used/sent in place of PathConfirmMessage
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 b9bcc2b775
make threadpool consice 5 years ago
Jeff Becker 9ec41b8831
update RC expiration logic, lookup more often and remove stale entries 5 years ago
Jeff Becker 762a0c534f
Merge remote-tracking branch 'origin/master' 5 years ago
Michael 491fee206b
Port code to use CryptoManager over passing Crypto pointers 5 years ago
Jeff Becker 2897141036
make format and introduce new function EnsureRouter on router to check nodedb or do dht lookup 5 years ago
Jeff Becker a375f1103f
explicitly lookup router if not connected to it on LRCM forward. 5 years ago
Jeff Becker 64c7ed42fc
make format 5 years ago
Jeff Becker 9c96aecf3f
move llarp::Logic to std::shared_ptr
add sequence numbers to HSD messages

begin work on network isolation code

add more docs
5 years ago
Michael 636bb2a17d
Convert router diskworker to use a modern ThreadPool 5 years ago
Jeff Becker ecc39428f6
count routers correctly 5 years ago
Jeff Becker d423ee02d2
use shared_ptr 5 years ago
Jeff Becker bb47d612b3
more 5 years ago
Jeff Becker 3a8cb0bfb5
add shell based hooks for service::Endpoint, also make format 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 e178a70929
use shared_ptr for event loop 5 years ago
Jeff 97b9c679b0 don't use bootstrap nodes for first hops in paths 5 years ago
Jeff Becker 965b0957ee
tweaks 5 years ago
Jeff Becker f8d6becce8
make whitelist happy 5 years ago
Jeff Becker ef13ec7499
Merge remote-tracking branch 'origin/staging' into staging 5 years ago
Michael 4fb2b39f74
Format changes 5 years ago
Michael 89ae60cfab
llarp::Context uses AbstractRouter now 5 years ago
Jeff Becker 7428855698
try fixing timeout bug after 6 or so hours 5 years ago
Rick V 5a3947ca5c
clang-format 5 years ago
Jeff Becker 445ed05b32
make format 5 years ago
Jeff Becker b5a1637224
make shared lib compile 5 years ago
Jeff Becker 1d958d95de
* make rpc compile right
* make link sessions introspectable
* make utp write buffers fully flush each tick
5 years ago
Michael 048fa83c39
Finish replacement of Router with AbstractRouter 5 years ago