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.
2019-07-25 14:11:02 -04:00
Jeff Becker
a0f32fde13
reduce logging
2019-07-17 08:25:51 -04:00
Jeff Becker
b0d850afb5
durable write for nodedb
2019-07-15 13:19:31 -04:00
Jeff Becker
b9bcc2b775
make threadpool consice
2019-07-09 09:47:24 -04:00
Jeff Becker
54a098356d
continue using llarp::openfilestream
2019-06-24 12:39:03 -04:00
Jeff Becker
f56273eb6a
fix comparision
2019-06-20 10:01:34 -04:00
Jeff Becker
aadde2e9c6
save all nodedb entries in memory on exit
2019-06-17 10:23:38 -04:00
Jeff Becker
9ec41b8831
update RC expiration logic, lookup more often and remove stale entries
2019-06-10 08:47:21 -04:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers
2019-05-28 20:45:08 +01:00
Jeff Becker
64c7ed42fc
make format
2019-05-22 12:20:50 -04:00
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
2019-05-22 12:20:03 -04:00
Michael
636bb2a17d
Convert router diskworker to use a modern ThreadPool
2019-05-18 23:04:08 +01:00
Jeff Becker
94eb37d490
bundle RC in build record to improve build success rates.
2019-04-17 15:05:54 -04:00
Jeff
5834607997
* don't ban bootstrap nodes with profiling
...
* less vigorous profiling timeouts
* async remove rc from disk
2019-04-14 07:25:15 -04:00
Jeff Becker
5af8d0a392
don't insert RCs in main thread
2019-03-29 11:08:31 -04:00
Jeff Becker
d4cb6808ec
more
2019-03-25 11:41:37 -04:00
Jeff Becker
fbb2c78d3c
async remove dead rc files when we think they are dead
2019-03-25 09:52:22 -04:00
Jeff Becker
5d3833ef1a
fix dumb as shit path building that causes premature termiantion because of duplicate hops
2019-03-11 09:58:31 -04:00
Michael
61f3273dc4
Add threading annotations and fix potential deadlocks
2019-03-04 00:03:52 +00:00
Michael
c5a129ddff
Convert to use abseil synchronisation primitives
2019-03-03 21:20:38 +00:00
Jeff Becker
2dfb53ef13
prevent deadlock
2019-02-08 08:04:12 -05:00
Jeff Becker
10f9d6444d
actually insert entries when they exist
2019-02-07 07:40:44 -05:00
Jeff Becker
d5caec719f
make it compile
2019-02-07 07:25:22 -05:00
Jeff Becker
cff6bc1c8d
don't hang
2019-02-07 07:23:02 -05:00
Jeff Becker
00eede9160
Merge remote-tracking branch 'origin/staging' into staging
2019-02-04 18:13:57 -05:00
Michael
f3b0af9d2f
Create CopyableBuffer type
2019-02-02 23:21:35 +00:00
Jeff Becker
fd507e4194
fix hop selection and disable onion key rotation
2019-01-29 07:34:07 -05:00
Michael
04e0fe3ad7
Move crypto code to a subdirectory
2019-01-13 15:06:16 +00:00
Michael
081d4dfa32
Reorganise source into more folders
2019-01-11 01:19:49 +00:00
Michael
fa2b466ffe
Reorganise tests to mirror source layout
2019-01-11 00:12:52 +00:00
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library
2019-01-10 20:07:24 +00:00
Michael
df4fd0ef56
Fix some low hanging performance issues
2019-01-07 22:15:41 +00:00
Michael
ea19093a20
Remove const byte* conversion operators from llarp::AlignedBuffer
2019-01-02 01:04:04 +00:00
Michael
334161c9bb
Remove data() conversions from llarp::AlignedBuffer
2019-01-02 01:03:53 +00:00
Jeff Becker
0ff214f43f
fixes
2018-12-29 10:44:25 -05:00
Jeff Becker
44904f9226
change skiplist filename convention (backwards compatable change)
2018-12-28 10:17:51 -05:00
Jeff Becker
4d689da148
more
2018-12-27 13:42:23 -05:00
Jeff Becker
6fc42dc7ad
fixes
2018-12-19 12:48:29 -05:00
Jeff Becker
cca19290de
session renegotiation, RC expiration, more utp unit tests, network isolation.
2018-12-19 11:17:41 -05:00
Michael
85dde7b6b0
Move remaining include/llarp headers to llarp/
2018-12-12 02:53:02 +00:00
Michael
b92ea0521b
Move router_contact.hpp to llarp/
2018-12-12 02:53:01 +00:00
Michael
451bbedfaf
Move crypto.hpp to llarp/
2018-12-12 02:53:01 +00:00
Michael
7be452092c
Convert llarp_crypto to be a true C++ class
2018-12-11 00:53:55 +00:00
Michael
6358b25db0
Convert llarp_nodedb to be a true C++ class
2018-12-10 23:31:39 +00:00
Jeff Becker
fad734a5ce
strict types for pubkey, secretkey and routerid
2018-12-10 12:22:59 -05:00
Michael
30e9dca2e5
Convert llarp_logic to be a C++ class
2018-12-10 14:15:11 +00:00
Jeff Becker
b543d6243d
Merge branch 'master' into dev
2018-11-20 07:42:17 -05:00
Michael
d750ec0605
Rename logic.h
2018-11-20 00:52:19 +00:00
Jeff Becker
5dbe41608f
more exit stuff
2018-11-14 13:02:27 -05:00
Jeff Becker
d3278946f2
ipv4 bogon checking
2018-10-15 08:02:32 -04:00