Commit Graph

2623 Commits

Author SHA1 Message Date
Jeff Becker
4734fa91fe
check for zero 2019-06-28 11:31:02 -04:00
Jeff Becker
f66e37ca37
oooof 2019-06-28 11:27:53 -04:00
Jeff Becker
289eb2a04c
fix previous commit 2019-06-28 11:23:39 -04:00
Jeff Becker
5c679a10e8
outbound context build more 2019-06-28 11:19:12 -04:00
Jeff Becker
6bca652182
choose first timestamp 2019-06-28 10:48:00 -04:00
Jeff Becker
0b90acff75
handle reply intro 2019-06-28 10:12:20 -04:00
Michael
1639c58cb6
Remove cppbackport from vendor dir 2019-06-27 16:25:44 +01:00
Jeff Becker
4e355327d8
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-26 09:12:19 -04:00
Jeff Becker
8830ac8fac
tweak 2019-06-26 09:09:40 -04:00
Jeff Becker
c7e9118bb6
fix fs stuff 2019-06-24 15:34:30 -04:00
Jeff Becker
3038a13373
explore faster via all peers 2019-06-24 15:15:02 -04:00
Jeff Becker
6c1a04e804
reset errno and make unit tests pass 2019-06-24 13:36:25 -04:00
Jeff Becker
b178aa1a36
make it compile and make it secure files 2019-06-24 13:08:36 -04:00
Jeff Becker
ba6f9ed2d7
continue using llarp::openfilestream 2019-06-24 12:51:29 -04:00
Jeff Becker
bf3212820b
finish up issue 17 2019-06-24 12:48:55 -04:00
Jeff Becker
e265661adb
try fixing issue number 17 (not done) 2019-06-24 12:48:48 -04:00
Jeff Becker
54a098356d
continue using llarp::openfilestream 2019-06-24 12:39:03 -04:00
Jeff Becker
38d5a4855a
finish up issue 17 2019-06-24 12:26:15 -04:00
Jeff Becker
aad71c2022
try fixing issue number 17 (not done) 2019-06-24 11:51:58 -04:00
Jeff Becker
228afcec7e
only kill rcs as client 2019-06-24 09:42:46 -04:00
Jeff Becker
b0612e2ee1
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-21 11:23:53 -04:00
Jeff Becker
ade1966b13
Merge branch 'libuv-proper-close' into ipv6-tun 2019-06-21 10:12:38 -04:00
Jeff
37aed7a664
Merge pull request #662 from majestrate/libuv-proper-close
fix up libuv close logic
2019-06-21 10:00:09 -04:00
Jeff Becker
9820315337
=default 2019-06-21 09:00:17 -04:00
Jeff Becker
53d2034a73
fix up libuv close logic 2019-06-20 14:28:59 -04:00
Jeff Becker
2bd2068b4f
fix up libuv close logic 2019-06-20 14:28:26 -04:00
Michael
b6b400baef
Tidy up pathbuilder code 2019-06-20 17:35:40 +01:00
Jeff Becker
5c61df08b5
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-20 10:35:51 -04:00
Jeff
d05dd7d526
Merge pull request #650 from michael-loki/move_messages
Move messages code to right subdir
2019-06-20 10:34:39 -04:00
Jeff Becker
f56273eb6a
fix comparision 2019-06-20 10:01:34 -04:00
Michael
fedf6cb8e0
Send netid to metrictank 2019-06-20 00:00:59 +01:00
Michael
08609f9e5a
Rename message files 2019-06-19 23:30:07 +01:00
Michael
68063b320c
Rename InboundMessageParser to LinkMessageParser 2019-06-19 21:48:25 +01:00
Michael
8884d0d9d4
Merge changes from upstream 2019-06-19 21:40:40 +01:00
Michael
333b23b59c
Tweak link message parser 2019-06-19 21:35:57 +01:00
Michael
8a058fcb34
Move other messages 2019-06-19 21:35:57 +01:00
Michael
83bd9227a7
Move exit messages 2019-06-19 21:35:26 +01:00
Michael
d6751e3eeb
Move subset of messages to right directory 2019-06-19 21:35:26 +01:00
Michael
2291d48bcc
Move remaining messages around 2019-06-19 21:12:10 +01:00
Michael
66cf5cc73d
Move exit messages to match header 2019-06-19 21:11:34 +01:00
Jeff Becker
698cc076e9
fix borken unit tests 2019-06-19 16:01:18 -04:00
Jeff
3bdee8150c
Merge pull request #652 from michael-loki/refactor_path
Refactor path build code
2019-06-19 12:48:35 -04:00
Rick V
042baf9270
fix callback hell 2019-06-18 18:56:48 -05:00
Michael
b89689fec3
Refactor path build code 2019-06-18 22:51:41 +01:00
Jeff Becker
bcde59569e
make freebsd compile 2019-06-18 09:10:44 -04:00
Jeff Becker
2557a9ab25
check for expiration 2019-06-18 08:58:22 -04:00
Jeff Becker
cd05fa6150
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-18 08:46:35 -04:00
Rick V
0b1e3ce959
fix windows native console 2019-06-17 23:38:10 -05:00
Rick V
c6c31efec9
make format 2019-06-17 23:29:54 -05:00
Rick V
5092a1fa85
restore llarp_make_ev_loop() as we only use libuv now; separate function is now ded code 2019-06-17 23:29:46 -05:00
Rick V
97fad8194c
fix legacy windows console logger 2019-06-17 23:29:25 -05:00
Jeff Becker
aadde2e9c6
save all nodedb entries in memory on exit 2019-06-17 10:23:38 -04:00
Jeff Becker
389c414ee3
add handover window to router contact updating 2019-06-17 10:02:12 -04:00
Jeff Becker
30f6a8ccd2
make format 2019-06-17 09:05:37 -04:00
Jeff Becker
6ae9cf8c2e
store looked up routers 2019-06-17 09:05:27 -04:00
Jeff Becker
9c24fc15a8
try not spamming network with builds 2019-06-17 08:43:16 -04:00
Jeff Becker
dcefcd7879
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-17 08:38:08 -04:00
Jeff
3833cc32cf
Merge pull request #648 from michael-loki/move_publishers
Move local publishers to their own files
2019-06-17 08:36:06 -04:00
Michael
26e16d5389
Fix event loop tests post-libuv 2019-06-16 22:44:11 +01:00
Michael
c0525f2ea3
Move local publishers to their own files 2019-06-15 15:48:48 +01:00
Jeff Becker
97b4e27704
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-14 09:42:41 -04:00
Jeff Becker
5853e5e3f4
pass in path 2019-06-14 09:13:06 -04:00
Jeff Becker
a323003824
differentiate between inbound and outbound convos 2019-06-14 08:49:45 -04:00
Jeff
3a7d74b08c
Merge pull request #647 from despair86/remove-old-evloops
we libuv now
2019-06-14 08:23:24 -04:00
Jeff Becker
227f561ffc
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-14 08:11:16 -04:00
Rick V
68862cc830
we libuv now 2019-06-13 21:21:44 -05:00
Rick V
271cfcb64e
remove all disused platform-specific event loops
(cherry picked from commit 94d00a169ba7934ef719cc38fe0ca1eff8e1b675)
2019-06-13 21:02:57 -05:00
Michael
95646d2d87
Publish metric tags 2019-06-13 23:09:58 +01:00
Michael
7d4126407c
Introduce tags for metrics 2019-06-13 22:58:17 +01:00
Michael
bb0c05a2ca
Introduce tag types 2019-06-13 22:58:16 +01:00
Jeff
ef7d2c8de9
Merge pull request #645 from majestrate/json-logging
json logging option
2019-06-13 15:16:13 -04:00
Jeff Becker
8d72d9e034
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-13 09:32:45 -04:00
Jeff
b857be3d02
Merge pull request #639 from majestrate/master
[WIP] libuv
2019-06-13 09:27:42 -04:00
Jeff Becker
6714b06470
json logging option 2019-06-13 09:26:34 -04:00
Jeff Becker
7d443f83bc
add guard 2019-06-12 15:35:02 -04:00
Jeff Becker
d8aebf36fb
swap intros on message rejection 2019-06-12 10:30:47 -04:00
Jeff Becker
1883c63997
swap intros on message rejection 2019-06-12 10:27:25 -04:00
Jeff Becker
c60099002b
reverse dns for ipv6 2019-06-12 09:48:14 -04:00
Jeff Becker
eb10638497
Merge branch 'master' into ipv6-tun 2019-06-12 09:21:37 -04:00
Jeff Becker
4c1ac0e991
update for win32 parts 2019-06-12 09:20:00 -04:00
Jeff Becker
3174e581b7
make format 2019-06-12 09:15:02 -04:00
Jeff Becker
79cdff20a4
fix tpyos and pass event loop by l value 2019-06-12 09:14:38 -04:00
Jeff Becker
584cc61f8f
Merge remote-tracking branch 'origin/master' 2019-06-12 09:11:22 -04:00
Jeff
0bf5aa88cc
Merge pull request #2 from cathugger/ipv6-tun
proper IPv6 option processing
2019-06-11 20:06:45 -04:00
cathugger
ddaf0834e2
net/ip: correct IPv6 fragment processing, also check for length before modifying 2019-06-12 03:04:05 +03:00
cathugger
53f3be2013
net/ip: skip IPv6 option headers 2019-06-12 02:42:05 +03:00
Jeff Becker
ec3ddfa425
typofixes 2019-06-11 18:29:45 -04:00
Jeff
8407c20b91
Merge branch 'ipv6-tun' into ipv6-tun 2019-06-11 17:46:47 -04:00
cathugger
72b1ea613c
make format 2019-06-12 00:28:55 +03:00
cathugger
a9dac85c28
fix stuff 2019-06-12 00:27:06 +03:00
cathugger
88acadf415
net/ip: update names 2019-06-11 23:56:48 +03:00
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