Commit Graph

2632 Commits

Author SHA1 Message Date
cathugger
e085f3e6c5
net/ip: IPv6 packet deltachecksum 2019-06-11 23:52:13 +03:00
Michael
d244674339
Unfuck integer metrics 2019-06-11 21:46:51 +01:00
Michael
0a5ac10880
Unfuck metrics 2019-06-11 21:46:51 +01:00
Michael
a1ef2ca342
Tidy up metric code 2019-06-11 21:38:31 +01:00
Michael
cec2b97134
Log when we publish to metrictank 2019-06-11 21:38:31 +01:00
cathugger
6730af207f
net/ip: IPv6 TCP/UDP delta chksum funcs 2019-06-11 23:30:59 +03:00
cathugger
891f5d156c
net/ip: cleanup 2019-06-11 23:17:59 +03:00
Jeff Becker
a2d01ff2d3
fix exit traffic for v6 2019-06-11 15:57:52 -04:00
Jeff Becker
a780789b2c
handle ipv6 exit traffic 2019-06-11 15:48:21 -04:00
Jeff Becker
0cf09d6435
make exits support v6 probably 2019-06-11 15:42:11 -04:00
Jeff Becker
de51ef23bf
more 2019-06-11 14:23:53 -04:00
Jeff Becker
2403ab8f86
ipv6 2019-06-11 12:44:05 -04:00
Jeff Becker
3d64c5aacf
(more freebsd fixes) 2019-06-10 12:31:51 -04:00
Jeff Becker
0bca54b1da
another freebsd fix 2019-06-10 12:31:01 -04:00
Jeff Becker
6bf2ec94e6
again 2019-06-10 12:27:36 -04:00
Jeff Becker
8b63326d8c
try fixing freebsd build 2019-06-10 12:26:19 -04:00
Jeff Becker
4c0a52ac9c
try addressing issue #642 2019-06-10 11:54:04 -04:00
Jeff Becker
d95d03593a
put deltas in timestamps 2019-06-10 09:20:48 -04:00
Jeff Becker
bbeda7c014
use timetamps 2019-06-10 08:51:45 -04:00
Jeff Becker
9ec41b8831
update RC expiration logic, lookup more often and remove stale entries 2019-06-10 08:47:21 -04:00
Jeff Becker
73c1538518
fix 2019-06-06 07:16:03 -04:00
Jeff Becker
f7ccbf0c78
eh 2019-06-06 07:10:18 -04:00
Jeff Becker
f8e2edae28
fix 2019-06-06 07:06:34 -04:00
Jeff Becker
223f2702d3
Merge branch 'fix-big-ooooofff' 2019-06-06 06:53:54 -04:00
Jeff Becker
a33dbce680
try switching logic 2019-06-06 06:52:27 -04:00
Jeff Becker
92f8c059e9
please don't work 2019-06-05 16:25:45 -04:00
Jeff Becker
802fda4a1a
please don't work 2019-06-05 16:19:53 -04:00
Jeff Becker
3c4d557942
dont use timers use check for tick 2019-06-04 10:36:54 -04:00
Jeff Becker
f8026b8a2d
use latest tag not oldest tag in inbound convos 2019-06-04 09:53:50 -04:00
Jeff Becker
39b1f104a8
revert 2019-06-04 09:43:49 -04:00
Jeff Becker
471a4bf6dd
use reply intro for inbound sessions 2019-06-04 09:34:24 -04:00
Jeff Becker
c2803e3020
fix 2019-06-04 09:29:16 -04:00
Jeff Becker
cacc73db7b
add rc expiration (again) 2019-06-04 09:19:45 -04:00
Jeff Becker
35bb7444fe
make tcp work with libuv probably 2019-06-03 10:03:59 -04:00
Jeff Becker
4c7f8e8351
more libuv jizz 2019-06-03 08:02:54 -04:00
Jeff Becker
301bd260a4
try fixing tcp 2019-06-03 07:14:31 -04:00
Jeff Becker
b6a1fc4c86
use timers not idle 2019-06-02 17:37:29 -04:00
Michael
75430a234c
Convert to use memFn 2019-06-02 22:19:10 +01:00
Michael
3822fe2341
Create util::MemFn and memFn to make binding callbacks easier 2019-06-02 22:19:10 +01:00
Jeff Becker
9deafa4cb8
use libuv 2019-06-02 17:17:05 -04:00
Jeff Becker
0808060a61
fix previous commit 2019-05-31 06:59:47 -04:00
Jeff Becker
9ea13a9ee3
ingore paths that drop exit traffic 2019-05-31 06:57:41 -04:00
Jeff Becker
a51f4c8328
make debian stable happy 2019-05-29 08:41:00 -04:00
Jeff Becker
762a0c534f
Merge remote-tracking branch 'origin/master' 2019-05-29 08:09:02 -04:00
Michael
8323725509
Initial No-Op Crypto implementation 2019-05-29 09:46:34 +01:00
Michael
a62655d501
Move tests to use top-level LlarpTest 2019-05-28 20:45:09 +01:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers 2019-05-28 20:45:08 +01:00
Michael
aea0e32efc
Add CryptoManager class to provide a guard-style class to manage the current Crypto instance 2019-05-28 20:45:08 +01:00
Jeff Becker
e13e4646cc
fix previous commit 2019-05-28 10:07:00 -04:00
Jeff Becker
068fec82fb
set lifetime of paths 2019-05-28 10:06:01 -04:00
Jeff Becker
2897141036
make format and introduce new function EnsureRouter on router to check nodedb or do dht lookup 2019-05-28 07:35:26 -04:00
Jeff Becker
9c15f87da1
uncomment 2019-05-27 19:59:18 -04:00
Jeff Becker
a375f1103f
explicitly lookup router if not connected to it on LRCM forward. 2019-05-27 15:01:09 -04:00
Jeff Becker
1e57a7082d
don't log ips 2019-05-27 08:17:21 -04:00
Jeff Becker
372bc40032
add member to rpc response indicating weither or not a peer is a service node 2019-05-27 08:16:39 -04:00
Jeff Becker
c77e0aff8a
only check for ready paths when counting in future 2019-05-25 12:27:54 -04:00
Jeff Becker
fa25bfc797
more strict connection timeouts 2019-05-25 12:27:42 -04:00
Jeff Becker
27c101cc32
close timed out sessions 2019-05-25 10:54:30 -04:00
Jeff Becker
56e8147861
delete inbound messages right after being handled
be more virgous with utp acks
2019-05-25 10:46:22 -04:00
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
Jeff Becker
32363ea622
more vigorus exit path building 2019-05-07 11:08:57 -04:00
Jeff Becker
b44372bdc5
emplace queue 2019-05-07 11:08:49 -04:00
Jeff Becker
dee639500a
set intro 2019-05-07 10:11:10 -04:00
Jeff Becker
744ebac579
only use ready paths 2019-05-07 09:49:49 -04:00
Jeff Becker
e08c8bf919
correct timeout for dht request 2019-05-07 09:19:36 -04:00
Jeff Becker
61d42811be
prevent crash 2019-05-07 09:04:43 -04:00
Jeff Becker
12589c4a3a
have exit session do aligned build on demand 2019-05-07 08:34:02 -04:00
Jeff Becker
34533db620
add urgent build that builds over an existing path for an endpoint 2019-05-07 08:31:34 -04:00
Jeff Becker
66fbac7f6e
Merge remote-tracking branch 'origin/master' 2019-05-07 07:36:23 -04:00
Jeff Becker
fa7a631c1b
Merge remote-tracking branch 'origin/master' 2019-05-07 06:43:57 -04:00
Michael
1744ae7686
Tidy up service endpoint a bit more 2019-05-07 09:29:47 +01:00
Jeff Becker
e42f4c99f1
try preventing crash 2019-05-06 14:37:32 -04:00
Jeff Becker
f0e3653842
spread exit traffic across all paths 2019-05-06 13:32:53 -04:00
Jeff
62355efa11
Merge pull request #595 from majestrate/master
remove random timer fuzz
2019-05-06 12:18:24 -04:00
Jeff Becker
b9adf90fb9
remove random timer fuzz 2019-05-06 12:13:41 -04:00
Jeff
e3ec082c5f
Merge pull request #594 from majestrate/master
decrease minimum path build interval
2019-05-06 12:01:50 -04:00
Jeff Becker
6c17bf35b3
decrease minimum path build interval 2019-05-06 12:00:10 -04:00
Jeff
dd57e8aa05
Merge pull request #593 from majestrate/master
rebuild exit paths on same hops if they die
2019-05-06 10:56:58 -04:00
Jeff Becker
5fa85acaf7
rebuild exit paths if they die 2019-05-06 10:54:05 -04:00
Jeff
0c7c2cc2b1
Merge pull request #592 from majestrate/master
recent changes
2019-05-06 10:23:05 -04:00
Jeff Becker
779b1f4df5
more timeout tweaks and disable profiling on service nodes 2019-05-06 10:21:47 -04:00
Jeff Becker
728c6005a3
propagate strict-connect to tun handler for hooks 2019-05-06 08:42:21 -04:00
Jeff
236434e5c3
Merge pull request #591 from despair86/upstream-push
build fixes, but keep lto
2019-05-06 05:51:54 -04:00
Rick V
2e49c2ffc7
fix non-loonix 2019-05-05 23:02:24 -05:00
Rick V
7788d6ec3c
fix windows
lto stuff remains for now
since native builds work

(cherry picked from commit 37814472af5e7c35d514bae16d19b08050765d52)

i'm not porting the UNIX-tier cppfs thing

(cherry picked from commit d6edbd789534d4fd0bce6c8c2418347cd80bebdb)

none of this had to be specified directly ffs

(cherry picked from commit 5dbefa7131a6fe0b2006c90ecdba7e466fdd1ecc)

stop breaking shit reee

(cherry picked from commit 14be89902ccc75a7fc21863593da393ca976d0d4)
2019-05-05 23:01:51 -05:00
Jeff Becker
69ffef30bb
increase dht request timeout from 5s to 30s 2019-05-05 19:15:58 -04:00
Jeff Becker
b02a3715df
call hook on timeout 2019-05-05 10:42:13 -04:00
Jeff Becker
fc3db98e66
change log priority 2019-05-05 10:15:48 -04:00
Jeff Becker
92ad98be8b
refactor hooks to be have more c++isms
make path build timeouts use log level warning
2019-05-05 09:51:48 -04:00
Jeff Becker
d05471c989
bump version to 0.4.1 2019-05-04 08:39:02 -04:00
Jeff Becker
241dba0476
fix dns for smaller domains 2019-05-03 14:56:31 -04:00
Jeff Becker
b1b6076742
fix 2019-05-03 13:57:05 -04:00
Jeff Becker
2775de8675
try connect on no exit 2019-05-03 13:42:48 -04:00
Jeff Becker
fc3bccb161
revert 2019-05-03 10:07:17 -04:00
Jeff Becker
0cc8517bca
add error messages to ini parser and catch base cases. 2019-05-03 09:39:25 -04:00
Jeff Becker
9bc7508b5b
remove nuint128_t 2019-05-03 09:25:57 -04:00
Jeff Becker
d423ee02d2
use shared_ptr 2019-05-03 09:15:03 -04:00
Jeff Becker
986e831579
make bundle-rc option configurable on snode tld 2019-05-02 14:11:44 -04:00
Jeff Becker
e0892f7d23
gfdi 2019-05-02 12:33:53 -04:00
Jeff Becker
407f895c86
ooff 2019-05-02 12:31:08 -04:00
Jeff Becker
5b49008bca
more 2019-05-02 12:23:31 -04:00
Jeff Becker
4404d272b2
remove uint128_t for now 2019-05-02 11:19:21 -04:00
Jeff Becker
a97e1e37a7
dont filter intros they are already good 2019-05-02 09:47:22 -04:00
Jeff Becker
aa5d4c17fe
win32 guards 2019-05-01 11:36:20 -04:00
Jeff Becker
6b2ad94731
fix compile warning 2019-05-01 09:53:43 -04:00
Jeff Becker
e060082441
hook every dns for .loki and .snode when applicable
make {n,h}uint{32,16}_t templated type.
2019-05-01 09:40:10 -04:00
Jeff
59e6a4bc3d make snode work again probably 2019-04-30 17:36:27 -04:00
Jeff Becker
20ba2c7b8c
try not to die 2019-04-30 12:57:59 -04:00
Jeff Becker
cde4fcc00a
queue pending traffic 2019-04-30 12:49:34 -04:00
Jeff Becker
bb47d612b3
more 2019-04-30 12:07:17 -04:00
Jeff Becker
0b68d3db5d
move stuff arround so that flushing queues are done in the correct event loops
TODO: locking
2019-04-30 11:09:42 -04:00
Jeff Becker
2a7ebce8f4
Merge remote-tracking branch 'origin/master' 2019-04-30 11:01:13 -04:00
Jeff Becker
5e0acc1197
separate upstream/downstream flush 2019-04-30 09:56:39 -04:00
Jeff Becker
d50b18d7b0
try fixing leak also make format 2019-04-30 08:22:15 -04:00
Michael
725ee293c1
Refactor well named functionality in service::Endpoint into new struct 2019-04-30 02:06:31 +01:00
Jeff
a5cc5225ab static function 2019-04-29 14:34:47 -04:00
Jeff
359804e8db fix size 2019-04-29 14:34:38 -04:00
Jeff
ac7b331ca0 unconditional pump 2019-04-29 14:34:29 -04:00
Jeff
7cb659343b static function 2019-04-29 14:27:30 -04:00
Jeff
f8679b6405 fix size 2019-04-29 14:06:16 -04:00
Jeff
785f1366ed unconditional pump 2019-04-29 13:13:40 -04:00
Jeff
27fac68716 fix 2019-04-28 14:22:38 -04:00
Jeff
01906c5d94 Merge remote-tracking branch 'origin/master' 2019-04-28 13:33:27 -04:00
Michael
0b4d787042
More work on router docker image
- Multi-stage docker build (final image only 15MB!)
- Build in release mode
    - Fix bug with release mode
    - Fix compiler being dumb AF
    - Disable FORTIFY for now
- Enable LTO when making a staticly linked release
- Fix some gcc specific warnings
- Refactor cmake stuff into multiple files
2019-04-28 17:04:52 +01:00
Jeff
81bf00f9bc
Merge pull request #566 from majestrate/on-off-patch
add on/off values
2019-04-28 07:49:59 -04:00
Jeff Becker
2332294258
add on/off values 2019-04-28 07:49:36 -04:00
Jeff Becker
49439d80c1
add on/off values 2019-04-28 07:48:29 -04:00
Jeff Becker
c3c26df6e3
Merge branch 'master' of ssh://github.com/majestrate/loki-network 2019-04-27 07:51:47 -04:00
Jeff
5305ef5974 use iterative lookups for sercice address lookups 2019-04-27 07:13:16 -04:00
Jeff
f97b9bd299 fix osx shell hooks 2019-04-27 06:48:01 -04:00
Jeff Becker
f7dc67b189
use std::set 2019-04-26 09:02:08 -04:00
Jeff Becker
09f706b9cd
fix 2019-04-26 08:17:50 -04:00
Jeff Becker
fea64eaf12
handle subdomains 2019-04-26 08:14:29 -04:00
Jeff Becker
d20ba9ceab
handle subdomains 2019-04-26 08:11:34 -04:00
Michael
9ee525a006
Fix shadowing warnings 2019-04-26 00:21:19 +01:00
Jeff Becker
6d256f114a
increase send buffer size 2019-04-25 13:16:40 -04:00
Jeff Becker
0529e45ebe
more 2019-04-25 13:15:56 -04:00
Jeff Becker
6cd774ff9e
increase send buffer size 2019-04-25 13:15:13 -04:00
Jeff Becker
af62e051b5
gfdi 2019-04-25 08:57:26 -04:00
Jeff Becker
8282712eff
fug 2019-04-25 08:53:26 -04:00
Jeff Becker
af1529fa72
Merge remote-tracking branch 'origin/master' 2019-04-25 07:25:22 -04:00
Jeff Becker
4bda489437
add explicit enable/disable profiling option, try to always maintain outbound connections. 2019-04-25 07:00:18 -04:00
Michael
4143472a17
Add cmake module to target a library as 'system', and fix a few warnings 2019-04-25 00:27:31 +01:00
Ryan Tharp
508be6f9fb
Merge pull request #555 from neuroscr/issue547-2
config.cpp can't have ifaddr/ifname set to auto like this apparently, breaks validation
2019-04-23 17:28:20 -07:00
Ryan Tharp
563407c0a8 can't have these enabled like this apparently, breaks validation 2019-04-23 17:28:16 -07:00
Ryan Tharp
11a6691ab0
Merge pull request #549 from neuroscr/issue547-2
address issue loki-project#547, remove client.ini, update ini defaults, and clean up help message
2019-04-23 16:10:23 -07:00
Ryan Tharp
58be0229e6 fix issue #550 kqueue crash 2019-04-23 15:10:31 -07:00
Ryan Tharp
b36b378583 issue 547 make format 2019-04-23 14:57:01 -07:00
Ryan Tharp
8cf6a77c1d address issue loki-project#547, remove client.ini, update ini defaults, and clean up help message 2019-04-23 14:50:49 -07:00
Jeff Becker
c5c28a528f
exit node tweaks 2019-04-23 14:29:42 -04:00
Jeff Becker
5921086391
common codepath for sending protocol frames 2019-04-23 13:35:20 -04:00
Jeff Becker
6711296b26
finish converting to shared_ptr 2019-04-23 12:13:22 -04:00
Jeff Becker
8484e29c9b
turn more stuff into std::shared_ptr
remove dead codepaths
2019-04-23 10:47:23 -04:00
Jeff Becker
99c29cf05a
prepare for ios/android jazz
move to use std::shared_ptr instead of bare pointers so we can
multithread everything.
2019-04-23 10:28:59 -04:00
Jeff Becker
5872573e91
rename Logic and Crypto functions to GetLogic and GetCrypto 2019-04-23 09:20:01 -04:00
Jeff Becker
a2912ff860
Merge remote-tracking branch 'origin/master' 2019-04-23 09:12:36 -04:00
Michael
3a8715d8e4
Fix introset tests 2019-04-23 10:25:03 +01:00
michael-loki
e36ddfb093 Fixup casing (#543)
* Rename Identity.hpp to identity.hpp

* Rename Identity.cpp to identity.cpp

* Rename Info.hpp to info.hpp

* Rename Intro.cpp to intro.cpp

* Rename Intro.hpp to intro.hpp
2019-04-22 20:24:23 -05:00
Michael
98e691f315
Tidy up more parts of the service/ directory 2019-04-22 22:28:10 +01:00
Michael
2d2c0e3ac2
Make introset PoW be a unique_ptr 2019-04-22 22:19:51 +01:00
Jeff Becker
33d1fb913f
more clairvoient path building 2019-04-22 15:54:43 -04:00
Jeff Becker
36369abcb4
"better" (more vigorus) path building 2019-04-22 15:15:07 -04:00
Jeff Becker
d5162c2aad
dont kill active exit paths 2019-04-22 13:55:07 -04:00
Michael
e33a33635c
Remove usage of raw new from service classes 2019-04-22 18:38:29 +01:00
Jeff Becker
3120464fd6
catch error 2019-04-22 10:53:30 -04:00
Jeff Becker
fddb4c6b5d
give commandline args to hooks 2019-04-22 10:33:27 -04:00
Jeff Becker
a73d6f5c31
stop and drain threadpool 2019-04-22 10:03:22 -04:00
Jeff Becker
c0d7b53328
make it work 2019-04-22 10:00:59 -04:00
Jeff Becker
6785bd75c6
actually fork 2019-04-22 08:48:48 -04:00
Jeff Becker
3a8cb0bfb5
add shell based hooks for service::Endpoint, also make format 2019-04-22 08:25:25 -04:00
Michael
33c80b7c16
Move service::Session to its own componet 2019-04-21 19:39:50 +01:00
Michael
94ad84363a
Move CachedTagResult and TagLookupJob to its own component 2019-04-21 19:39:50 +01:00
Michael
6bf54e0925
Remove AsyncKeyExchange, HiddenServiceAddressLookup and OutboundContext to their own components 2019-04-21 19:39:50 +01:00
Michael
3db6d80928
Remove unnecessary llarp:: qualifiers 2019-04-21 19:39:50 +01:00
Michael
2412ed59ee
Move SendContext to its own component 2019-04-21 19:39:50 +01:00
Michael
84fc90dc82
Remove dependency on service::endpoint 2019-04-21 19:39:50 +01:00
michael-loki
0195152e05 Allow builds on MSVC (#518)
* Import cxxopts to replace getopts usage

* Add visual studio build things

* Fixup abseil build parts

* Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED

* Fixup minor windows build issues

* Replace getopts usage

* Temporarily fixup .rc files

* More minor windows fixes

* Get a working build

* Revert .rc files

* Revert changes to nodedb
2019-04-19 13:24:33 -05:00
Rick V
81e88ab351
wtf jeff 2019-04-19 12:36:45 -05:00
Michael
c39c931d03
Remove IStateful virtual inheritance 2019-04-19 16:10:26 +01:00
Jeff Becker
5d7618cf02
try interchanging read / write oder on kqueue 2019-04-19 09:57:59 -04:00
Jeff Becker
544595bdef
use pipe and not pipe2 2019-04-19 09:43:51 -04:00
Jeff
e10edfd0b8
Merge pull request #531 from majestrate/master
bundle RC in build record to improve build success rates.
2019-04-18 07:52:19 -04:00
Jeff Becker
57dc6cc965
make bundling rc in path builds configurable on runtime 2019-04-18 07:49:54 -04:00
Jeff Becker
94eb37d490
bundle RC in build record to improve build success rates. 2019-04-17 15:05:54 -04:00
Jeff
379783c7a1
Merge pull request #530 from majestrate/master
qol improvements
2019-04-17 11:25:59 -04:00
Jeff Becker
2be3401e08
* refactor profiling function names
* utp link layer make ping less active, pre-emptive pump faster
2019-04-17 10:46:00 -04:00
Jeff
f144c25620
Merge pull request #526 from michael-loki/context_json_metrics
Make JSON metrics opt-in
2019-04-16 20:07:12 -04:00
Rick V
4ca60e65a4
when SunOS 4.x/Sun386i compatibilty was yanked,
some of the more useful functions graduated to the main libc
2019-04-16 16:03:23 -05:00
Jeff
88c2e73ab0
Merge pull request #525 from majestrate/master
fix dht and exit paths
2019-04-16 15:41:36 -04:00
Jeff Becker
88abe28cc1
add dead checking on exit paths 2019-04-16 15:39:58 -04:00
Jeff Becker
0906888bff
fix findrouter 2019-04-16 14:55:47 -04:00
Jeff
b3576af937
Merge pull request #524 from majestrate/master
fix gotrouter handling
2019-04-16 14:07:20 -04:00
Jeff Becker
5938cec770
fix gotrouter handling 2019-04-16 14:06:12 -04:00
Jeff
bfdbf634dd
Merge pull request #523 from majestrate/master
recent stability pokes
2019-04-16 13:55:10 -04:00
Jeff Becker
05dc2fb679
decay profiles unconditionally 2019-04-16 13:30:07 -04:00
Jeff Becker
76c5601894
decay profiles faster 2019-04-16 13:27:35 -04:00
Jeff Becker
66432afdda
proper explore for clients 2019-04-16 13:00:24 -04:00
Jeff Becker
524bed9d9b
move async bootstrap insertion 2019-04-16 12:50:47 -04:00
Jeff Becker
90e92c66c2
insert bootstrap nodes into nodedb and explore more 2019-04-16 12:44:51 -04:00
Jeff Becker
92d0a7083c
dht exploration implicitly makes a session so don't make more 2019-04-16 12:35:58 -04:00
Jeff Becker
87ff9268da
if a router is connected it's fine given it's a boostrap 2019-04-16 10:43:12 -04:00