Commit Graph

2373 Commits

Author SHA1 Message Date
Jeff Becker
d113f06ebd
use for each loop
don't lookup expired routers we don't need that right now
2019-05-25 10:11:40 -04:00
Jeff Becker
fbf9b06685
* don't lookup routers in sendtoorqueue
* don't lookup routers that are not public when committing
2019-05-24 15:57:40 -04:00
Jeff Becker
5f55e53331
prefer inbound links over outbound links 2019-05-24 11:28:39 -04:00
Jeff Becker
72dbbd53d6
update docs and discard pending traffic on connect timeout to prevent memleak 2019-05-24 11:06:07 -04:00
Michael
3f53965b71
Remove all use of IBEncodeMessage 2019-05-24 03:01:36 +01:00
Jeff Becker
13190284f7
double path build timeout 2019-05-23 09:38:31 -04:00
Jeff Becker
8b2dd72472
Merge remote-tracking branch 'origin/master' 2019-05-23 09:21:31 -04:00
Jeff Becker
41523b934c
more 2019-05-23 09:13:03 -04:00
Jeff Becker
2ac89c0afb
DRY 2019-05-23 08:22:48 -04:00
Michael
d49e57aa8d
Fix thread safety issue in service::Endpoint::ProcessDataMessage 2019-05-22 21:28:17 +01:00
Jeff Becker
e85cc1bc8a
fix 2019-05-22 13:47:33 -04:00
Jeff Becker
b679dd7341
fixit 2019-05-22 13:38:02 -04:00
Jeff Becker
c355d37beb
use limited size queue for logic and singled threaded threadpool 2019-05-22 13:18:19 -04: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
Jeff
28623766c1
Merge pull request #617 from majestrate/master
changes after consensous
2019-05-22 08:06:26 -04:00
Jeff
3bd1aa50ff
Merge pull request #616 from michael-loki/reader_removal
Replace dict_reader/list_reader with version which doesn't involve indirection
2019-05-22 08:01:14 -04:00
Rick V
6caed8d8a5
jeff forgot to bump
(cherry picked from commit 05c96c6ed2550a81a252a26ad57654da8e14b122)
2019-05-22 05:14:16 -05:00
Michael
7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection 2019-05-22 01:36:03 +01:00
Jeff Becker
0f68e6b4dd
don't move, instead copy 2019-05-21 11:24:20 -04:00
Jeff Becker
5bcb205a9f
try allowing ip addresses in bind section 2019-05-20 08:32:11 -04:00
Jeff Becker
b86e834e1b
Merge remote-tracking branch 'origin/master' 2019-05-20 08:25:57 -04:00
Jeff Becker
73f1d34239
make format and revert stupid alloc changes 2019-05-20 08:19:33 -04:00
Michael
dd8a93a400
Apply rule of zero to code base 2019-05-19 23:11:07 +01:00
Jeff
65766a501f
Merge pull request #610 from michael-loki/more_thread_pool
Convert more things to use thread::ThreadPool
2019-05-19 17:16:14 -04:00
Jeff
a8941afbf4
Merge pull request #608 from michael-loki/fix_asan_build
Fix ASAN build
2019-05-19 17:15:57 -04:00
Jeff Becker
4862dec4be
commit recent stuff 2019-05-19 10:39:50 -04:00
Michael
06882338bb
Change ExecShellHookBackend to use a modern thread pool 2019-05-18 23:04:08 +01:00
Michael
b11bd01637
Drain diskworker pool on close 2019-05-18 23:04:08 +01:00
Michael
636bb2a17d
Convert router diskworker to use a modern ThreadPool 2019-05-18 23:04:08 +01:00
Michael
a83be769e2
More explicit error when keyfile is not a valid file 2019-05-18 18:34:25 +01:00
Michael
19578fa8fc
Fix ASAN build 2019-05-18 16:34:03 +01:00
Jeff Becker
5f823f8ba3
fix 2019-05-17 07:41:11 -04:00
Jeff Becker
a954f2000e
shift introduction 2019-05-17 07:36:08 -04:00
Jeff Becker
895e5659bb
Merge branch 'master' of ssh://github.com/loki-project/loki-network 2019-05-17 07:20:33 -04:00
Jeff Becker
8da3b51589
more hax 2019-05-17 07:18:42 -04:00
Rick V
4815e0d04c
move tun autoconfig from config parser to tun setup
refactor/combine common code

DRY

(cherry picked from commit 2e44d29d4a93aa22d99d62b457071b14516b83ac)
2019-05-17 03:10:00 -05:00
Jeff Becker
81f73bccc2
pick newer intros only 2019-05-16 19:37:32 -04:00
Jeff Becker
04499db0c5
add comment 2019-05-16 17:05:29 -04:00
Jeff Becker
baf4f5b495
hard code range for now as a /16 don't revert me 2019-05-16 17:05:03 -04:00
Jeff Becker
20efac9015
Merge remote-tracking branch 'origin/master' 2019-05-16 14:57:00 -04:00
Jeff Becker
a4e90ee769
hax to make it work. 2019-05-16 14:55:12 -04:00
Jeff Becker
6058b6f195
revert breaking change 2019-05-16 10:30:47 -04:00
Michael
f734ffeae4 Fixup MSVC build 2019-05-15 23:03:24 +01:00
Jeff Becker
351c241c0f
more 2019-05-15 12:15:20 -04:00
Jeff Becker
a793eee4b7
fix 2019-05-15 11:56:50 -04:00
Jeff Becker
5d388bc9f2
meh 2019-05-15 11:54:26 -04:00
Jeff Becker
d3a98db267
don't resize frames 2019-05-15 10:55:01 -04:00
Jeff Becker
0f6f03a77a
const 2019-05-14 13:35:01 -04:00
Jeff Becker
8bee0a3d5e
fix 2019-05-14 12:41:47 -04:00
Jeff Becker
06be908369
use 1 for dht exploration 2019-05-14 12:15:46 -04:00
Jeff Becker
ec100cffee
attempt every time 2019-05-14 11:51:56 -04:00
Jeff Becker
4b79912dc8
more 2019-05-14 10:36:18 -04:00
Jeff Becker
d9463d534c
prevent crash 2019-05-14 10:27:12 -04:00
Jeff Becker
686fb311ad
null check 2019-05-12 17:21:18 -04:00
Jeff Becker
b5602228a3
don't kill nodes as service node 2019-05-12 13:54:30 -04:00
Jeff Becker
eb5afb41a1
connect out to committed routers if we don't have a session each tick 2019-05-12 10:09:26 -04:00
Jeff Becker
990acc1ff9
disable 2019-05-11 19:40:53 -04:00
Jeff Becker
944eaedea6
aaaaaaA 2019-05-11 18:15:31 -04:00
Jeff Becker
8018207e98
don't kill bootstrap 2019-05-11 16:53:08 -04:00
Jeff Becker
d7fb54c957
mor potatoe 2019-05-11 16:47:37 -04:00
Jeff Becker
6b28b46c78
potatoe 2019-05-11 15:48:17 -04:00
Jeff Becker
87bdfa6e78
aaaaaaaaaaAAAah 2019-05-11 11:10:17 -04:00
Jeff Becker
24a27df402
i am a potatoe 2019-05-11 10:56:11 -04:00
Jeff Becker
78816b2315
bump version 2019-05-11 10:44:14 -04:00
Jeff Becker
d2ef6fc77b
just use new/delete :^) 2019-05-11 10:34:42 -04:00
Jeff Becker
f832c9a593
use shared_ptr 2019-05-11 10:13:35 -04:00
Jeff
84ce9460f5 fix 2019-05-11 09:52:44 -04:00
Jeff
e21f1020ee don't std::move 2019-05-11 08:48:54 -04:00
Jeff
06f8bb2f42 add blacklist-snode option 2019-05-10 12:19:33 -04:00
Jeff
bae926d3d6 fix osx compile 2019-05-10 12:18:26 -04:00
Jeff Becker
faacc86eb5
qualify 2019-05-10 07:52:50 -04:00
Jeff Becker
11b9aea4a7
fix 2019-05-10 07:49:56 -04:00
Jeff Becker
018dd008ec
add custom single threaded allocator for utp buffers
fix up test net stuff
2019-05-09 16:28:56 -04:00
Jeff Becker
85fcb4bd84
fix it up 2019-05-09 11:54:22 -04:00
Jeff Becker
1d74585637
don't crash when we get no routers from lookup 2019-05-09 11:51:21 -04:00
Jeff Becker
a0c9d912f5
make it compile
(faaaaaaaaaaaaaaaAAAAAAAAAaaaaaAAaaaaaaaaAAaaaAAAAAAAAaak)
2019-05-09 11:39:12 -04:00
Jeff Becker
ecc39428f6
count routers correctly 2019-05-09 11:36:39 -04:00
Jeff Becker
767b521325
log node name 2019-05-09 11:36:14 -04:00
Jeff Becker
e80f7419b0
check for allowed by network 2019-05-09 08:48:21 -04:00
Jeff Becker
15fd9c1bef
explicit not found for non staked nodes 2019-05-09 08:38:21 -04:00
Jeff Becker
8853e1d3d8
when whitelisted chose random routers from whitelist 2019-05-09 08:31:10 -04:00
Jeff Becker
8f68ceeb11
force ipv4 2019-05-09 08:24:38 -04:00
Jeff Becker
9b379a1659
add explicit constructor 2019-05-08 11:42:38 -04:00
Jeff Becker
9d7ff9b35e
compare based on pointer when one or both are nullptr 2019-05-08 11:09:57 -04:00
Jeff Becker
ad019cab71
add changes for review 2019-05-08 10:59:28 -04:00
Jeff Becker
3821b4801c
fix intro section to not use first hop as intro 2019-05-08 10:54:03 -04:00
Jeff Becker
e7a40ac4e5
Revert "permit outbound context to select an intro who is a first hop."
This reverts commit c8c00e2d9f.
2019-05-08 10:49:09 -04:00
Jeff Becker
c8c00e2d9f
permit outbound context to select an intro who is a first hop. 2019-05-08 10:43:56 -04:00
Jeff Becker
486042511c
log hops 2019-05-08 10:30:55 -04:00
Jeff Becker
540c2e1666
fix previous commit 2019-05-08 10:18:04 -04:00
Jeff Becker
df322e1149
don't include duplicate hops in paths 2019-05-08 10:01:31 -04:00
Jeff Becker
982a751cea
minor tweak 2019-05-08 09:08:21 -04:00
Jeff Becker
9d466cd09d
pump only on send queue full and clear exit roles when closing exit 2019-05-08 08:50:33 -04:00
Jeff Becker
b68f539de6
limit outbound connections 2019-05-08 08:17:48 -04:00
Jeff Becker
1d852a1e83
send exit close ack 2019-05-07 14:27:21 -04:00
Jeff Becker
7b03b63d13
more sighup code 2019-05-07 14:15:22 -04:00
Jeff Becker
a53da68700
start work on sighup 2019-05-07 13:46:38 -04:00
Jeff Becker
a4ed8991b8
urgent build exit 2019-05-07 13:27:32 -04:00
Jeff Becker
7c782440fb
round robin the exit endpoints on exit handler 2019-05-07 12:07:44 -04:00