Commit Graph

3232 Commits

Author SHA1 Message Date
Jeff Becker
af663d8b10 prune members in timer context 2019-11-29 19:11:14 -04:00
Jeff Becker
11d4760c3d add metrics tracking for logic jobs in debug mode 2019-11-29 19:11:14 -04:00
Jeff Becker
ba0fd223d9 reduce number of jobs we put onto the logic thread 2019-11-29 18:45:06 -04:00
Stephen Shelton
a0699ad229 Undo adding of crypto version to RouterContact, other fixes 2019-11-27 11:30:19 -07:00
Jeff Becker
d880eec1de
ping lokid rpc 2019-11-27 13:11:15 -05:00
Jeff Becker
098915bb8e
add check for identity key validity 2019-11-26 20:40:55 -05:00
Jeff Becker
5868a25fcc
clear response between tries 2019-11-26 17:13:41 -05:00
Jeff Becker
d685057754
update readme and disable curl on windows 2019-11-26 17:11:13 -05:00
Jeff Becker
d12c75ce1e
move sleep 2019-11-26 17:04:52 -05:00
Jeff Becker
61b75828f0
sleep 2019-11-26 17:03:45 -05:00
Jeff Becker
3878ebd534
use curl to fetch from lokid rpc the identity key 2019-11-26 16:58:20 -05:00
Stephen Shelton
e8e2e21fa2 Reorganize priv key file loading a bit and hook KeyManager into Router 2019-11-26 12:42:41 -07:00
Jeff
f8c6c1379a
Merge pull request #929 from majestrate/increase-logic-queue-size-2019-11-25
make logic job queue 8 times bigger
2019-11-26 13:32:25 -05:00
Jeff Becker
dd48b149ca
make job queue size configurable 2019-11-25 16:30:34 -05:00
Jeff Becker
853108ce6e
make logic job queue 8 times bigger 2019-11-25 16:15:31 -05:00
Jeff Becker
cbb7196b30
fix "zero hop" bug 2019-11-25 11:53:03 -05:00
Stephen Shelton
7084dae79a Implement code to move old key files out of the way 2019-11-22 16:11:59 -07:00
Jeff
ee40389f05
Merge pull request #916 from majestrate/add-contention-killer-2019-11-14
assorted crap
2019-11-22 16:31:15 -05:00
Jeff Becker
c3858a56df
make it compile 2019-11-22 16:23:21 -05:00
Jeff Becker
34bc3da069
flush quues of other paths 2019-11-22 16:23:20 -05:00
Jeff Becker
6f95fbfece
work in progress 2019-11-22 16:23:20 -05:00
Jeff Becker
ac686a9329
remove valgrind access errors 2019-11-22 16:23:20 -05:00
Jeff Becker
0ec4e583d4
initialize with zeros 2019-11-22 16:23:20 -05:00
Jeff Becker
065b022427
std::move 2019-11-22 16:23:20 -05:00
Jeff Becker
b8f773eb73
use lambda 2019-11-22 16:23:20 -05:00
Jeff Becker
250cfea1e9
remove use of void * in godawful old code from a time before happyness 2019-11-22 16:23:20 -05:00
Jeff Becker
b207db626f
please the gods of valgrind 2019-11-22 16:23:20 -05:00
Jeff Becker
d44d034775
make contention checker templated 2019-11-22 16:23:19 -05:00
Jeff Becker
1fa0a0aab2
make it compile 2019-11-22 16:23:19 -05:00
Jeff Becker
fdbaaa8188
try fixing file log segfault 2019-11-22 16:23:19 -05:00
Jeff Becker
1188763ece
typo fix in release 2019-11-22 16:23:19 -05:00
Jeff Becker
56dce90de9
add trace log level for tracking logic thread jobs 2019-11-22 16:23:19 -05:00
Jeff Becker
eb6d042e73
make sure all calls of logic thread jobs are not having contention 2019-11-22 16:23:18 -05:00
Jeff Becker
d7f09a365d
contention killer 2019-11-22 16:23:18 -05:00
Stephen Shelton
db56e17c23 Rename bencode function for clarity 2019-11-22 14:14:37 -07:00
Stephen Shelton
0c02ea8d2e Add "keyfile version" to RouterContact 2019-11-22 14:06:15 -07:00
Jason Rhinelander
d3082fffc9 Lower the ev tick interval to 10ms
When there's nothing waiting we wait this long unconditionally, but that
can add a lot of latency across a path.

There are likely better ways to handle this via libuv's run handlers,
but this addresses the latency until we figure that out.
2019-11-22 17:05:51 -04:00
Stephen Shelton
1666498405 Replace bencode_write_version_entry with a more general-purpose function for writing bencoded dictionary entries 2019-11-22 10:39:35 -07:00
Stephen Shelton
fd02e3e149 Stub out KeyManager class 2019-11-21 20:57:41 -07:00
Jason Rhinelander
e0340e86b2 clang-format fixes 2019-11-20 17:45:56 -04:00
Jason Rhinelander
d96d33329b
Merge pull request #912 from majestrate/logic-thread-fix-2019-11-13
fix logic thread behavior
2019-11-19 15:26:35 -04:00
Jeff
8f6a18f411
Merge pull request #915 from notlesh/fix-session-key-mismatch-2019-11-19
Fix #911: Drop new inbound IWP sessions when the first packet can't be handled
2019-11-19 14:25:49 -05:00
Jason Rhinelander
6524563d33
Merge pull request #897 from majestrate/bencode-seek-for-version-2019-11-03
seek for version and set it before deserializing
2019-11-19 15:24:07 -04:00
Stephen Shelton
b5b8cf0745 Reduce log level of IWP session issues as they may be encountered frequently and normally 2019-11-19 12:17:34 -07:00
Stephen Shelton
9eed243346
Merge pull request #860 from notlesh/null_mutex_clarity
Null mutex clarity (via comments / log statement)
2019-11-19 11:19:44 -07:00
Stephen Shelton
46fe64c2e6 make format (and git commit --amend to re-trigger CI) 2019-11-19 10:07:27 -07:00
Stephen Shelton
ef2670dfb4 Drop new inbound IWP sessions when the first packet can't be handled 2019-11-19 09:24:29 -07:00
Jeff Becker
168d25f244
add warning when trying to queue onto full logic thread 2019-11-14 12:18:20 -05:00
Jeff Becker
b34caa3e26
make unit tests pass for iwp 2019-11-14 11:48:02 -05:00
Jeff Becker
1a864832c8
make format 2019-11-14 10:07:40 -05:00
Jeff Becker
b31d7b75fc
Merge remote-tracking branch 'origin/dev' into logic-thread-fix-2019-11-13 2019-11-14 10:07:19 -05:00
Jeff Becker
f16c9f9b5d
iot seems that logic thread didn't work the way i remember it should
make logic work the way it should
2019-11-14 10:06:53 -05:00
Jeff Becker
3c8e148372
prevent double free crap with shared_ptr 2019-11-13 18:16:34 -05:00
Thomas Winget
5ce6ed5134
fixes some logical errors in per-path queues 2019-11-07 15:05:04 -05:00
Thomas Winget
23a9773e1e
remove our paths from outbound queues 2019-11-07 13:23:14 -05:00
Thomas Winget
ef1a5652ef
remove our paths from outbound queues 2019-11-07 13:23:06 -05:00
Thomas Winget
17de3f2478 do...while; make format; remove erroneous GUARDED_BY 2019-11-06 10:26:51 -05:00
Thomas Winget
12adff570d fix seg fault, fix uninitialized static member 2019-11-06 10:26:51 -05:00
Thomas Winget
75512b1b58 ban zero id for pathid; clarity and cleanup 2019-11-06 10:26:51 -05:00
Thomas Winget
9d3e7d349c Add per-path queues, prioritize control messages over traffic 2019-11-06 10:26:51 -05:00
Jeff
c05d7b69fc
Merge pull request #904 from majestrate/try-fixing-path-shit-again-2019-11-05
make path builds work
2019-11-05 12:21:51 -05:00
Jeff Becker
8d44eefead
make router give time directly 2019-11-05 12:10:14 -05:00
Jeff Becker
2c5561fc3c
make format 2019-11-05 12:01:34 -05:00
Jeff Becker
b589ea96ff
remove printf 2019-11-05 12:00:33 -05:00
Jeff Becker
7ee026fa50
make path builds work again 2019-11-05 11:58:53 -05:00
Jeff Becker
9b99752276
i hate windows 2019-11-05 08:19:27 -05:00
Jason Rhinelander
b0ab703c45 Silence unused variable warnings in release build 2019-11-04 15:21:32 -04:00
Jeff Becker
0d89f1170b
make it compile 2019-11-04 13:53:53 -05:00
Jeff Becker
c9f26c4911
call Router::PumpLL after every batch of packets from a link session 2019-11-04 13:49:08 -05:00
Jeff Becker
034469bfbf
Merge remote-tracking branch 'origin/dev' into fix-pump-order-2019-11-04 2019-11-04 13:25:36 -05:00
Jeff Becker
90f523881a
try interchanging pump order 2019-11-04 13:25:05 -05:00
Jeff
820f69549f
Merge pull request #899 from majestrate/fix-path-build-2019-11-03
make path builds work
2019-11-04 12:40:04 -05:00
Jeff Becker
1fc36f4832
changes from review 2019-11-04 12:24:42 -05:00
Jeff Becker
7c35b00f98
Revert "move calling of path build sccess hook to correct place"
This reverts commit 902cd86a3b.
2019-11-04 08:39:29 -05:00
Jeff Becker
8befd6f2db
flush link session encrypt queue immediately after handling plaintext packets 2019-11-04 08:34:30 -05:00
Jeff Becker
902cd86a3b
move calling of path build sccess hook to correct place 2019-11-03 16:07:39 -05:00
Jeff Becker
9d266dbec7
meh 2019-11-03 15:52:00 -05:00
Jeff Becker
e25356c035
use <= not == 2019-11-03 14:53:41 -05:00
Jeff Becker
89e5b6b4cc
try fixing leak 2019-11-03 14:38:34 -05:00
Jeff Becker
bdb0b847f8
seek for version and set it before deserializing 2019-11-03 10:31:01 -05:00
Jeff
a843cf44cc
Merge pull request #892 from despair86/dev
add patch for libsodium 1.0.17 and zmq-latest
2019-11-01 10:57:19 -04:00
Jeff
9ace1b2398
Merge pull request #870 from majestrate/disable-doh-using-isp-backdoor-provided-by-mozilla-thanks-from-nsa
disable DoH
2019-11-01 10:54:00 -04:00
Jeff
30fa45fa05
Merge pull request #895 from majestrate/fix-dns-crash-2019-11-01
fix issue #894
2019-11-01 10:53:29 -04:00
Jeff
683594b66a
Merge pull request #877 from majestrate/fix-exit-traffic-bug-2019-10-28
fix warnings and prevent bug that sends invalid traffic to user
2019-11-01 10:53:17 -04:00
Jeff Becker
d2be8ac384
fix issue #894 2019-11-01 09:40:31 -04:00
Rick V
28f508c1d2
fix note 2019-10-31 17:22:59 -05:00
Rick V
00440f91eb add patch for latest stable libzmq on windows with a configure note 2019-10-31 17:10:09 -05:00
Rick V
0b8a518f24
add patch for libsodium 1.0.17 2019-10-31 17:05:58 -05:00
Rick V
44a8b9d3eb
add patchset for libsodium-upstream-stable so we can get rid of vendored
lib
2019-10-30 18:02:34 -05:00
Rick V
df29052a75
fix windows 2019-10-30 18:02:34 -05:00
Rick V
e9b4053bac
oops fix up some missing code 2019-10-30 18:02:33 -05:00
Rick V
e901580223
ok set write handler in event loop 2019-10-30 18:02:33 -05:00
Rick V
cfd696b4d9
just write the data straight into the socket 2019-10-30 18:02:32 -05:00
Rick V
d7900a8459
c-f everything 2019-10-30 18:02:32 -05:00
Rick V
df6fe4b6ac
emit libuv-like stub externally 2019-10-30 18:02:32 -05:00
Rick V
46169da7bf
ok add the write handler here too 2019-10-30 18:02:31 -05:00
Rick V
33378b2c0c
ok implement libuv stubs for tcp connectors 2019-10-30 18:02:31 -05:00
Jeff Becker
2bf1e4f46a
enable IOS on IOS 2019-10-30 09:33:23 -04:00
Jeff
8debf6870d
Merge pull request #879 from majestrate/parenthesis-are-hard-2019-10-28
fix bounds check
2019-10-29 12:14:41 -04:00
Jeff Becker
e2890e925b
make it compile 2019-10-28 17:46:39 -04:00
Jeff Becker
20dd4e4d09
use data not begin 2019-10-28 17:39:24 -04:00
Jeff Becker
2267a7d283
fix bounds check 2019-10-28 17:23:43 -04:00
Jeff Becker
5f9ea7b485
fix warnings and prevent bug that sends invalid traffic to user 2019-10-28 15:32:16 -04:00
Jeff Becker
75d746c518
update _sz 2019-10-28 14:34:39 -04:00
Jeff Becker
2f2834f331
make non copyable 2019-10-28 14:21:08 -04:00
Jeff Becker
b737fdbe03
fix crash 2019-10-28 14:08:59 -04:00
Jeff Becker
bd07845dd3
make format 2019-10-28 10:44:56 -04:00
Jeff Becker
64548ade2f
Merge remote-tracking branch 'origin/dev' into disable-doh-using-isp-backdoor-provided-by-mozilla-thanks-from-nsa 2019-10-28 10:44:41 -04:00
Jeff
3a6c16aa36
Merge pull request #871 from majestrate/ed25519-signing
Ed25519 signing
2019-10-28 10:42:40 -04:00
Jeff Becker
22dcb0504b
make format 2019-10-28 10:21:57 -04:00
Jeff Becker
01c4a9c287
revert a few things 2019-10-28 10:16:00 -04:00
Jeff Becker
2134355a3a
fix event loop tcp connections so they are thread safe 2019-10-28 10:15:36 -04:00
jeff
aedcaf3c43 make it compile 2019-10-23 08:48:10 -04:00
jeff
1cdd9ba13a add unit test for identity_keygen 2019-10-23 08:43:37 -04:00
jeff
ff8c167362 make it compile on windows 2019-10-22 11:58:34 -04:00
jeff
c69165dad3 try making it work in the case that is broken on travis 2019-10-22 11:20:26 -04:00
jeff
1621ca676b Merge remote-tracking branch 'upstream/dev' into ed25519-signing 2019-10-22 11:08:52 -04:00
jeff
c33324455a use correct rpc call to lokid 2019-10-22 11:00:48 -04:00
jeff
37d7f2b1e7 disable DoH using mozilla's ISP backdoor record. 2019-10-21 09:32:24 -04:00
jeff
869ab0b652 Merge remote-tracking branch 'upstream/dev' into vpn-api-2019-10-03 2019-10-21 08:01:29 -04:00
jeff
1e3cd03880 make format 2019-10-16 10:11:07 -04:00
jeff
c59487014a fix #865 by not using logic if it is null in udp_tick 2019-10-16 10:10:11 -04:00
jeff
788bc0f912 Merge remote-tracking branch 'upstream/dev' into ed25519-signing
also stop using libuv's uv_loop_new as it is deprecated
2019-10-16 07:45:52 -04:00
Stephen Shelton
7dc1351eba Add missing #endif (presumably from 281fbff) 2019-10-14 09:56:32 -06:00
jeff
265da6f37b use get_service_nodes rpc endpoint 2019-10-14 11:38:34 -04:00
jeff
996ff06c6a update cmakelists.txt to no longer build removed file 2019-10-14 09:48:26 -04:00
jeff
0e2fb6abd5 revert to ed25519 for signing, this breaks everything (again). 2019-10-14 09:47:06 -04:00
Jeff
d52b8bfbf5
Merge pull request #863 from jagerman/xenial-build-fix
Fix build on xenial
2019-10-14 08:22:42 -04:00
Jason Rhinelander
281fbff42f Fix build on xenial
- xenial's cmake version (3.5.1) builds everything fine and test suite
  passes, so lower the minimum to that.

- add a hack for xenial's kernel header & glibc version breaking if both
  net/if.h and linux/if.h get included.  The only thing we actually need
  from net/if.h that linux/if.h doesn't have is `if_nametoindex`, so
  just hack that definition in for xenial's specific glibc/kernel header
  versions.
2019-10-11 17:26:12 -03:00
Stephen Shelton
a3c48e22f3
Even more clarity to NullMutex comments 2019-10-11 13:50:50 -06:00
Stephen Shelton
b1da46e521 Add numNodesKnown to llarp.admin.dumpstate RPC endpoint 2019-10-11 09:59:32 -06:00
jeff
b7601a6236 call read handler in logic thread 2019-10-11 07:47:21 -04:00
Stephen Shelton
36ef0954ec Add comments to NullMutex implementation to express intent 2019-10-10 23:26:55 -06:00
Michael
f6adacf936
Review fixes 2019-10-09 23:00:50 +01:00
Michael
3371da98cf
Use libcurl (optional dependency) to hit jsonrpc 2019-10-09 23:00:50 +01:00
Michael
0721ce4d34
Add rpc call to get current addresses for our node 2019-10-09 23:00:50 +01:00
Michael
01611c2282
Convert RPC endpoint to be a lookup table 2019-10-09 23:00:50 +01:00
jeff
2425c2ba03 update comment 2019-10-09 09:21:41 -04:00
jeff
cdb5610d90 close async 2019-10-09 09:10:48 -04:00
jeff
58a25602f5 more fixes, implemenmt missing functions 2019-10-09 09:08:38 -04:00
jeff
c26b67c379 finish wiring up jni shizz 2019-10-08 10:52:01 -04:00
jeff
7d7c6bf38c Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography 2019-10-07 06:08:47 -04:00
Michael
f326c93b5b
Apply Jeff's comments 2019-10-04 20:43:30 +01:00
jeff
52757fef0e Merge remote-tracking branch 'micheal/background_mode' into vpn-api-2019-10-03 2019-10-04 14:10:58 -04:00
Michael
15cb49c9bd
Introduce --background to only start JSON RPC
fixes #853
2019-10-04 10:32:52 +01:00
Michael
d467e2618b
Support version over jsonrcp 2019-10-02 22:53:56 +01:00
jeff
4af6dca246 use static_cast 2019-10-02 11:35:33 -04:00
jeff
7d949ebf5d always use absl for string_view 2019-10-02 11:35:20 -04:00
jeff
605da68e15 use absl optional 2019-10-02 09:17:12 -04:00
jeff
3c1d5518d8 fix windows port and make it compile 2019-10-02 09:06:14 -04:00
jeff
da9437d0cf don't need that 2019-10-01 11:05:37 -04:00
jeff
32ed821763 Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography 2019-10-01 10:51:28 -04:00
Jeff
3c2b2ce34d
Merge branch 'dev' into dev 2019-09-25 10:37:57 -04:00
Michael
5f0bb6fbd1
Try to fix windows build 2019-09-24 09:51:54 +01:00
Michael
ae3fc3a395
Add initial macOS app 2019-09-24 09:50:57 +01:00
Rick V
00d34709eb
bump to 0.5.2 2019-09-23 21:22:29 -05:00
Rick V
bf2ecaa74a
bump to 0.5.1 2019-09-23 21:22:28 -05:00
Rick V
ed6ef2d527
clang-format 2019-09-23 21:22:27 -05:00
Rick V
cbdbe94bab
skip null adapters 2019-09-23 21:22:27 -05:00
Rick V
ade2ae1e9a
ok let's see how we're locked up
more debug
2019-09-23 21:22:27 -05:00
Rick V
4389e3fee2
try install .net manually
use full path

test
2019-09-23 21:22:26 -05:00
Michael
86a07e2a80
Enable more sanitisers 2019-09-23 11:47:58 +01:00
Jeff
2eaa61922d
Merge branch 'master' into dev 2019-09-20 15:53:31 -04:00
jeff
cd9c4d9f1a bump version and motto 2019-09-20 15:21:04 -04:00
jeff
f9fb40f590 final touches 2019-09-20 12:56:19 -04:00
Jeff
35230adbe5
Merge pull request #833 from majestrate/gut-utp-2019-09-19
remove libutp and all such code related to utp
2019-09-19 16:48:36 -04:00
jeff
7c691cf334 handover should be fixed now 2019-09-19 16:28:12 -04:00
Jeff Becker
993e4c2637
try fixing handover 2019-09-19 14:34:41 -04:00
jeff
1853b28590 remove libutp and all such code related to utp 2019-09-19 11:36:05 -04:00
jeff
6c2ebbb925 try fixing handover and add snapp traffic to multithreaded crypto workers 2019-09-19 10:41:31 -04:00
Jeff Becker
5863e33825
move it arround 2019-09-16 12:21:21 -04:00
Jeff Becker
327c545530
finish multithread cryptography first pass 2019-09-16 12:12:05 -04:00
jeff
14c9ef15ed try calling stuff in logic thread from event loop 2019-09-16 06:21:12 -04:00
jeff
ac2a2aed1d gut libutp and finish making things compile and pass tests 2019-09-12 14:19:25 -04:00
Jeff Becker
d04762ab49
unstaged changed 2019-09-12 10:34:27 -04:00
Jeff Becker
da6a3bf9bb
Merge remote-tracking branch 'origin/master' into iwp-multi-ack 2019-09-11 09:56:51 -04:00
Jason Rhinelander
77c467a7e4 Bump version to 0.5.1 for minor fixes for 0.5.0 2019-09-10 19:29:12 -03:00
Jeff Becker
d54dc7a988
prune dht peers every router tick 2019-09-10 10:16:32 -04:00
Jeff Becker
fd787cc56d
try more ranges 2019-09-09 08:10:26 -04:00
Jeff Becker
61ade40a51
reduce logging and make format 2019-09-09 07:36:21 -04:00
Jeff Becker
ff233204cd
disable rc expiration 2019-09-09 06:45:52 -04:00
Jeff
070a014f85
Merge pull request #799 from majestrate/remove-link-layer-locking
disable link layer locking
2019-09-07 08:09:32 -04:00
Jeff
f3676cef5e
Merge pull request #800 from michael-loki/abort_mutex
Abort when a null mutex is locked from a different thread (in debug mode only)
2019-09-07 08:09:11 -04:00
Jeff Becker
e3bb59707e
more 2019-09-05 17:28:50 -04:00
Jeff Becker
bcf9135da6
testnet 2019-09-05 16:20:55 -04:00
Jeff Becker
3c0245f8b3
Merge remote-tracking branch 'github/master' into iwp-multi-ack 2019-09-05 13:40:04 -04:00
Jeff Becker
4bf6882c8a
more async cryptography 2019-09-05 13:39:09 -04:00
Jeff Becker
88cde21b9b
multithreaded iwp cryptography 2019-09-05 10:57:01 -04:00
Jeff Becker
0d3c07999a
break it again just to be sure 2019-09-05 09:36:46 -04:00
Jeff Becker
a4160006ab
make it compile 2019-09-05 09:34:59 -04:00
Jeff Becker
3b1a0b2835
add multi-ack and change protocol handshake to pin identity key 2019-09-05 09:21:35 -04:00
Rick V
8daaab5f6a
fix 2019-09-04 20:52:53 -05:00
Rick V
ef6f62cc04
some people set the netid explicitly, and set it to default anyway 2019-09-04 20:35:46 -05:00
Rick V
4a5cbbdc70
auto config has been removed for months now
win32 accidentally left out the error reporting
2019-09-04 20:25:50 -05:00
Jeff Becker
0250f79742
Merge remote-tracking branch 'origin/master' 2019-09-04 18:06:41 -04:00
Michael
19473a291a
Abort when a null mutex is locked from a different thread (in debug mode only) 2019-09-04 22:34:41 +01:00
Jeff Becker
4c77bf208f
update default netid 2019-09-04 09:48:56 -04:00
Jeff
325b697e90
Merge pull request #787 from despair86/master
make build internally consistent, bump windows version to 0.5.0
2019-09-04 08:59:51 -04:00
Jeff Becker
d11321366c
make it compile 2019-09-04 08:43:50 -04:00
Jeff Becker
12314e8d00
ensure no crash on quit 2019-09-04 08:41:07 -04:00
Jeff Becker
5cdd92e2a3
remove more locking and make it safe 2019-09-04 08:24:17 -04:00
Jeff Becker
ab64c0d013
Merge remote-tracking branch 'micheal/abort_mutex' 2019-09-04 07:58:48 -04:00
Jeff Becker
1adae338ce
Merge remote-tracking branch 'origin/master' 2019-09-04 07:58:02 -04:00
Michael
23d76e3600
Abort when a null mutex is locked from a different thread (in debug mode only) 2019-09-03 23:25:37 +01:00
Michael
67c36998e6
Fix windows 2019-09-03 23:06:22 +01:00
Jeff Becker
e9f01923d9
dont nack replayed messages, tweak transmission parameters.
this yields more efficient througput. probably.
2019-09-03 16:22:52 -04:00
Michael
edd0ec398f
Move thread stuff to subdirectory 2019-09-03 20:52:28 +01:00
Michael
0950571313
Move metrics to subdirectory 2019-09-03 20:52:28 +01:00
Michael
4d8fe2a8a8
Move meta programming to subdirectory 2019-09-03 20:52:28 +01:00
Michael
1aec0dfa2b
Move logging to subdirectory 2019-09-03 20:52:27 +01:00
Jeff Becker
2ab265be41
disable link layer locking because there was no contention 2019-09-03 11:58:36 -04:00
Jeff Becker
c01112e4b7
tracy lock contention testing and other fun things 2019-09-03 11:56:56 -04:00
Rick V
294b98527d
clang-format remaining code, use __asm__ for avx2 port since we
insist on straight C99 without extensions (asm isn't special in
C99, __asm__ is)
2019-09-03 08:02:35 -05:00
Rick V
842fe039bc
derp 2019-09-03 08:02:34 -05:00
Rick V
6205e96c36
move non-string version info to common header 2019-09-03 08:02:34 -05:00
Rick V
51279075d8
iconv 🅱roke 2019-09-03 08:02:34 -05:00
Rick V
df430650ef
undo utf8 conversion 2019-09-03 08:02:33 -05:00
Rick V
fb70d7afc9
bump version for release 2019-09-03 08:02:32 -05:00
Jeff
c9299f47c7 Merge branch 'master' of ssh://github.com/majestrate/loki-network 2019-09-02 12:44:35 -04:00
Jeff
093021ef99 try fixing handover drop bug 2019-09-02 12:44:08 -04:00
Jeff Becker
deecbbbdef
optimize 2019-08-30 10:44:43 -04:00
Jeff Becker
83432d7567
make format 2019-08-29 08:05:29 -04:00
Jeff Becker
4c569d83b7
make it compile 2019-08-29 08:04:46 -04:00
Jeff
d2824c6b13
Merge pull request #792 from majestrate/master
bump versions and call timeout hook
2019-08-29 07:47:53 -04:00
Jeff Becker
78d191bd75
prepare for 0.5.0 2019-08-29 07:45:58 -04:00
Jeff Becker
d1e590ce9d
fix sign 2019-08-28 10:42:32 -04:00
Jeff Becker
795ac6bab3
get rid of dead code 2019-08-28 10:15:16 -04:00
Jeff Becker
b904a4ee22
fix explore 2019-08-28 08:44:50 -04:00
Jeff Becker
0986b6ab5e
quick little fixes 2019-08-28 07:59:08 -04:00
Jeff Becker
444d832b7c
correct constructors on llarp_buffer_t and check rc on regen 2019-08-28 07:38:32 -04:00
Jeff Becker
16934cdd20
please the CI gods, wololo 2019-08-28 07:11:03 -04:00
Jeff Becker
ba2aaa68c6
add short data fragments and rx replay filter 2019-08-28 07:02:00 -04:00
Jeff Becker
d76385894f
Merge remote-tracking branch 'origin/master' into iwp-redux 2019-08-28 06:43:02 -04:00
Jeff Becker
eabbb83149
use estimated build time instead of expiration time for delta when determining when to space out builds 2019-08-27 16:07:09 -04:00
Jeff Becker
e0424a91a7
bump path build handover window, check cooldown on build. 2019-08-27 16:00:00 -04:00
Jeff
62183e4173
Merge pull request #788 from majestrate/iwp-redux
fix log level
2019-08-27 15:36:32 -04:00
Jeff Becker
3c2c895593
fix log level 2019-08-27 13:10:25 -04:00
Jeff
b42605d1ba
Merge pull request #783 from majestrate/iwp-redux
Add "new" (old) link protocol: IWP
2019-08-27 09:33:37 -04:00
Jeff Becker
4c8da9bb6d
use correct constructor for llarp_buffer_t 2019-08-27 09:14:44 -04:00
Jeff Becker
b5402dc6c3
Merge remote-tracking branch 'origin/master' into iwp-redux 2019-08-27 08:15:41 -04:00
Jeff Becker
88f685b74a
add forgotten bits 2019-08-27 08:13:55 -04:00
Jeff Becker
0241851b72
add likn layer delivery timeout notification for iwp 2019-08-27 08:07:48 -04:00
Rick V
b3a975ff8e
sun fix
fix testing on sun
2019-08-27 06:53:08 -05:00
Jeff
908ac2722f
Merge pull request #785 from michael-loki/docker_compose_swarm
Fix docker-compose isolated network
2019-08-27 04:26:10 -04:00
Michael
70937ab503
Fix docker-compose isolated network 2019-08-27 01:57:37 +01:00
Jeff
e7796a7ba4
Merge pull request #784 from michael-loki/shadow_fixes
Partial fixes for shadow
2019-08-26 20:42:15 -04:00
Michael
7d39f84ef3
Partial fixes for shadow 2019-08-26 23:10:48 +00:00
Jeff Becker
94f8531776
more fixups 2019-08-26 10:29:29 -04:00
Jeff Becker
6a48a3b402
code review fixes:
* use std::unordered_set
* use default for ctor/dtor
* don't crash on short packet with nack
2019-08-26 07:16:46 -04:00
Rick V
55612bc032
ok use clang-format v8 2019-08-26 03:32:40 -05:00
Rick V
2000826a35
override print 2019-08-26 03:32:40 -05:00
Rick V
50d4b4b40c
fix log colours on old win32 platforms 2019-08-26 03:32:39 -05:00
Rick V
447c4e6012
header got stripped 2019-08-26 03:32:39 -05:00
Jeff Becker
35c78348f2
default to no implementation on pipe for pleasing win32 2019-08-23 09:29:57 -04:00
Jeff Becker
1d32e6a28f
silence clang errors again 2019-08-23 08:55:28 -04:00
Jeff Becker
82ea973137
silence clang errors 2019-08-23 08:48:40 -04:00
Jeff Becker
4ac07ea9fb
use std::make_tuple 2019-08-23 08:40:56 -04:00
Jeff Becker
5f8388b1c0
lower log level for renegotiate 2019-08-23 08:30:07 -04:00
Jeff Becker
7e38a133d8
send keep alive on pump when needed 2019-08-23 07:57:57 -04:00
Jeff Becker
d6ec5e7ed7
don't crash 2019-08-23 07:50:22 -04:00
Jeff Becker
461f41a4c6
mark alive on nack 2019-08-23 07:36:11 -04:00
Jeff Becker
acf5f78949
update iwp , add NACK 2019-08-23 07:32:52 -04:00
Jeff Becker
ba316f85ba
default to iwp 2019-08-22 16:56:27 -04:00
Jeff Becker
426ee41c46
initial iwp 2019-08-22 16:53:27 -04:00
Jeff Becker
aea4542edd
more 2019-08-22 07:18:05 -04:00
Jeff Becker
3c3338e801
Merge remote-tracking branch 'origin/master' into memlink 2019-08-21 10:53:25 -04:00
michael-loki
3f868f2cdf
Merge pull request #782 from michael-loki/tidy_ensure_config
replace endl with '\n in config.cpp
2019-08-20 01:57:20 +01:00
Michael
cd27f96832
replace endl with '\n in config.cpp 2019-08-19 23:56:02 +01:00
Michael
7cb1b525c9
Dump more info from router contact 2019-08-19 23:25:46 +01:00
Michael
777261cb20
Use ToString over ToHex 2019-08-19 22:26:37 +01:00
Michael
afb94381a2
Use ToString instead 2019-08-19 22:06:30 +01:00
Michael
094b697b01
Replace StatusObject with underlying JSON type 2019-08-19 10:33:26 +01:00
Jeff
ecf3c37d2e
Merge pull request #768 from majestrate/sane-limits
Sane limits
2019-08-14 06:28:28 -04:00
Michael
40aabd6d92
Use the right version of clang-tidy 2019-08-13 22:38:00 +01:00
Jeff Becker
28de66e964
correct header? 2019-08-13 11:29:44 -04:00
Jeff Becker
c14993bc56
use llarp::path::default_len to inform how many routers we need 2019-08-13 08:40:22 -04:00
Michael
0a1620aff2
make format 2019-08-12 22:10:07 +00:00
Michael
de21a2f687
Include json output 2019-08-12 22:09:44 +00:00
Michael
16cdfbd5f0
clang-tidy modernize pass 2019-08-12 16:52:58 +01:00
Jeff Becker
4c9675ffe7
ensure timestamp is not in future 2019-08-12 09:26:35 -04:00
Jeff Becker
e3c8761cf5
pump to make stuff speed up if stuck 2019-08-12 09:22:48 -04:00
Jeff Becker
7fb7e783e6
merge 2019-08-12 09:21:43 -04:00
Jeff Becker
4f98535f84
more 2019-08-12 09:21:11 -04:00
Jeff Becker
a1fff96a1b
limit connections in outbound session maker 2019-08-12 08:40:38 -04:00
Jeff Becker
efa61f324f
include header 2019-08-12 07:27:46 -04:00
Jeff Becker
e8573b6254
add limits files 2019-08-12 07:21:17 -04:00
Jeff Becker
2345dd3239
try adding proper limits 2019-08-12 07:20:57 -04:00
Jeff Becker
4f5c69c07e
Merge branch 'concise-utp-timeout-2019-08-09' into utp-write-split-2019-08-09 2019-08-10 06:59:05 -04:00
Jeff Becker
83de715f50
make sure stats are called every 1s 2019-08-10 06:51:02 -04:00
Jeff Becker
e11ca27d1f
pumpwrite -> pump 2019-08-09 15:57:19 -04:00
Jeff Becker
79aaa8a021
when pushing large amounts per tick try not to bottleneck on utp_writev 2019-08-09 15:55:05 -04:00
Jeff Becker
f4d2f808ec
make it compile 2019-08-09 08:49:06 -04:00
Jeff Becker
15e8c070c6
more consise utp timeout logic 2019-08-09 08:46:33 -04:00
Jeff Becker
fdbb2e8dc8
make format 2019-08-09 08:17:01 -04:00
Jeff Becker
847fcdf5f3
move convotag missmatch check to the right place 2019-08-09 08:16:20 -04:00
Jeff
0d1dea997d
Merge pull request #759 from michael-loki/fix_metrics_thread_safety
Fix metrics thread safety
2019-08-08 11:29:06 -04:00
Jeff Becker
a34b48e117
make it compile 2019-08-08 07:19:50 -04:00
Jeff Becker
3dd79d7137
also check if we are a public router when checking for timeout in read direction 2019-08-08 07:16:47 -04:00
Michael
84601fa474
Make format 2019-08-08 00:26:40 +01:00
Michael
d1990b5e93
Fix suspicious thread-unsafety 2019-08-08 00:18:56 +01:00