Commit Graph

3325 Commits (3cc2adae31962b61b5cd502514029477ca02a619)

Author SHA1 Message Date
Jeff Becker d685057754
update readme and disable curl on windows 5 years ago
Jeff Becker d12c75ce1e
move sleep 5 years ago
Jeff Becker 61b75828f0
sleep 5 years ago
Jeff Becker 3878ebd534
use curl to fetch from lokid rpc the identity key 5 years ago
Stephen Shelton e8e2e21fa2 Reorganize priv key file loading a bit and hook KeyManager into Router 5 years ago
Jeff f8c6c1379a
Merge pull request #929 from majestrate/increase-logic-queue-size-2019-11-25
make logic job queue 8 times bigger
5 years ago
Jeff Becker dd48b149ca
make job queue size configurable 5 years ago
Jeff Becker 853108ce6e
make logic job queue 8 times bigger 5 years ago
Jeff Becker cbb7196b30
fix "zero hop" bug 5 years ago
Stephen Shelton 7084dae79a Implement code to move old key files out of the way 5 years ago
Jeff ee40389f05
Merge pull request #916 from majestrate/add-contention-killer-2019-11-14
assorted crap
5 years ago
Jeff Becker c3858a56df
make it compile 5 years ago
Jeff Becker 34bc3da069
flush quues of other paths 5 years ago
Jeff Becker 6f95fbfece
work in progress 5 years ago
Jeff Becker ac686a9329
remove valgrind access errors 5 years ago
Jeff Becker 0ec4e583d4
initialize with zeros 5 years ago
Jeff Becker 065b022427
std::move 5 years ago
Jeff Becker b8f773eb73
use lambda 5 years ago
Jeff Becker 250cfea1e9
remove use of void * in godawful old code from a time before happyness 5 years ago
Jeff Becker b207db626f
please the gods of valgrind 5 years ago
Jeff Becker d44d034775
make contention checker templated 5 years ago
Jeff Becker 1fa0a0aab2
make it compile 5 years ago
Jeff Becker fdbaaa8188
try fixing file log segfault 5 years ago
Jeff Becker 1188763ece
typo fix in release 5 years ago
Jeff Becker 56dce90de9
add trace log level for tracking logic thread jobs 5 years ago
Jeff Becker eb6d042e73
make sure all calls of logic thread jobs are not having contention 5 years ago
Jeff Becker d7f09a365d
contention killer 5 years ago
Stephen Shelton db56e17c23 Rename bencode function for clarity 5 years ago
Stephen Shelton 0c02ea8d2e Add "keyfile version" to RouterContact 5 years ago
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.
5 years ago
Stephen Shelton 1666498405 Replace bencode_write_version_entry with a more general-purpose function for writing bencoded dictionary entries 5 years ago
Stephen Shelton fd02e3e149 Stub out KeyManager class 5 years ago
Jason Rhinelander e0340e86b2 clang-format fixes 5 years ago
Jason Rhinelander d96d33329b
Merge pull request #912 from majestrate/logic-thread-fix-2019-11-13
fix logic thread behavior
5 years ago
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
5 years ago
Jason Rhinelander 6524563d33
Merge pull request #897 from majestrate/bencode-seek-for-version-2019-11-03
seek for version and set it before deserializing
5 years ago
Stephen Shelton b5b8cf0745 Reduce log level of IWP session issues as they may be encountered frequently and normally 5 years ago
Stephen Shelton 9eed243346
Merge pull request #860 from notlesh/null_mutex_clarity
Null mutex clarity (via comments / log statement)
5 years ago
Stephen Shelton 46fe64c2e6 make format (and git commit --amend to re-trigger CI) 5 years ago
Stephen Shelton ef2670dfb4 Drop new inbound IWP sessions when the first packet can't be handled 5 years ago
Jeff Becker 168d25f244
add warning when trying to queue onto full logic thread 5 years ago
Jeff Becker b34caa3e26
make unit tests pass for iwp 5 years ago
Jeff Becker 1a864832c8
make format 5 years ago
Jeff Becker b31d7b75fc
Merge remote-tracking branch 'origin/dev' into logic-thread-fix-2019-11-13 5 years ago
Jeff Becker f16c9f9b5d
iot seems that logic thread didn't work the way i remember it should
make logic work the way it should
5 years ago
Jeff Becker 3c8e148372
prevent double free crap with shared_ptr 5 years ago
Thomas Winget 5ce6ed5134
fixes some logical errors in per-path queues 5 years ago
Thomas Winget 23a9773e1e
remove our paths from outbound queues 5 years ago
Thomas Winget ef1a5652ef
remove our paths from outbound queues 5 years ago
Thomas Winget 17de3f2478 do...while; make format; remove erroneous GUARDED_BY 5 years ago
Thomas Winget 12adff570d fix seg fault, fix uninitialized static member 5 years ago
Thomas Winget 75512b1b58 ban zero id for pathid; clarity and cleanup 5 years ago
Thomas Winget 9d3e7d349c Add per-path queues, prioritize control messages over traffic 5 years ago
Jeff c05d7b69fc
Merge pull request #904 from majestrate/try-fixing-path-shit-again-2019-11-05
make path builds work
5 years ago
Jeff Becker 8d44eefead
make router give time directly 5 years ago
Jeff Becker 2c5561fc3c
make format 5 years ago
Jeff Becker b589ea96ff
remove printf 5 years ago
Jeff Becker 7ee026fa50
make path builds work again 5 years ago
Jeff Becker 9b99752276
i hate windows 5 years ago
Jason Rhinelander b0ab703c45 Silence unused variable warnings in release build 5 years ago
Jeff Becker 0d89f1170b
make it compile 5 years ago
Jeff Becker c9f26c4911
call Router::PumpLL after every batch of packets from a link session 5 years ago
Jeff Becker 034469bfbf
Merge remote-tracking branch 'origin/dev' into fix-pump-order-2019-11-04 5 years ago
Jeff Becker 90f523881a
try interchanging pump order 5 years ago
Jeff 820f69549f
Merge pull request #899 from majestrate/fix-path-build-2019-11-03
make path builds work
5 years ago
Jeff Becker 1fc36f4832
changes from review 5 years ago
Jeff Becker 7c35b00f98
Revert "move calling of path build sccess hook to correct place"
This reverts commit 902cd86a3b.
5 years ago
Jeff Becker 8befd6f2db
flush link session encrypt queue immediately after handling plaintext packets 5 years ago
Jeff Becker 902cd86a3b
move calling of path build sccess hook to correct place 5 years ago
Jeff Becker 9d266dbec7
meh 5 years ago
Jeff Becker e25356c035
use <= not == 5 years ago
Jeff Becker 89e5b6b4cc
try fixing leak 5 years ago
Jeff Becker bdb0b847f8
seek for version and set it before deserializing 5 years ago
Jeff a843cf44cc
Merge pull request #892 from despair86/dev
add patch for libsodium 1.0.17 and zmq-latest
5 years ago
Jeff 9ace1b2398
Merge pull request #870 from majestrate/disable-doh-using-isp-backdoor-provided-by-mozilla-thanks-from-nsa
disable DoH
5 years ago
Jeff 30fa45fa05
Merge pull request #895 from majestrate/fix-dns-crash-2019-11-01
fix issue #894
5 years ago
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
5 years ago
Jeff Becker d2be8ac384
fix issue #894 5 years ago
Rick V 28f508c1d2
fix note 5 years ago
Rick V 00440f91eb add patch for latest stable libzmq on windows with a configure note 5 years ago
Rick V 0b8a518f24
add patch for libsodium 1.0.17 5 years ago
Rick V 44a8b9d3eb
add patchset for libsodium-upstream-stable so we can get rid of vendored
lib
5 years ago
Rick V df29052a75
fix windows 5 years ago
Rick V e9b4053bac
oops fix up some missing code 5 years ago
Rick V e901580223
ok set write handler in event loop 5 years ago
Rick V cfd696b4d9
just write the data straight into the socket 5 years ago
Rick V d7900a8459
c-f everything 5 years ago
Rick V df6fe4b6ac
emit libuv-like stub externally 5 years ago
Rick V 46169da7bf
ok add the write handler here too 5 years ago
Rick V 33378b2c0c
ok implement libuv stubs for tcp connectors 5 years ago
Jeff Becker 2bf1e4f46a
enable IOS on IOS 5 years ago
Jeff 8debf6870d
Merge pull request #879 from majestrate/parenthesis-are-hard-2019-10-28
fix bounds check
5 years ago
Jeff Becker e2890e925b
make it compile 5 years ago
Jeff Becker 20dd4e4d09
use data not begin 5 years ago
Jeff Becker 2267a7d283
fix bounds check 5 years ago
Jeff Becker 5f9ea7b485
fix warnings and prevent bug that sends invalid traffic to user 5 years ago
Jeff Becker 75d746c518
update _sz 5 years ago
Jeff Becker 2f2834f331
make non copyable 5 years ago
Jeff Becker b737fdbe03
fix crash 5 years ago
Jeff Becker bd07845dd3
make format 5 years ago
Jeff Becker 64548ade2f
Merge remote-tracking branch 'origin/dev' into disable-doh-using-isp-backdoor-provided-by-mozilla-thanks-from-nsa 5 years ago
Jeff 3a6c16aa36
Merge pull request #871 from majestrate/ed25519-signing
Ed25519 signing
5 years ago
Jeff Becker 22dcb0504b
make format 5 years ago
Jeff Becker 01c4a9c287
revert a few things 5 years ago
Jeff Becker 2134355a3a
fix event loop tcp connections so they are thread safe 5 years ago
jeff aedcaf3c43 make it compile 5 years ago
jeff 1cdd9ba13a add unit test for identity_keygen 5 years ago
jeff ff8c167362 make it compile on windows 5 years ago
jeff c69165dad3 try making it work in the case that is broken on travis 5 years ago
jeff 1621ca676b Merge remote-tracking branch 'upstream/dev' into ed25519-signing 5 years ago
jeff c33324455a use correct rpc call to lokid 5 years ago
jeff 37d7f2b1e7 disable DoH using mozilla's ISP backdoor record. 5 years ago
jeff 869ab0b652 Merge remote-tracking branch 'upstream/dev' into vpn-api-2019-10-03 5 years ago
jeff 1e3cd03880 make format 5 years ago
jeff c59487014a fix #865 by not using logic if it is null in udp_tick 5 years ago
jeff 788bc0f912 Merge remote-tracking branch 'upstream/dev' into ed25519-signing
also stop using libuv's uv_loop_new as it is deprecated
5 years ago
Stephen Shelton 7dc1351eba Add missing #endif (presumably from 281fbff) 5 years ago
jeff 265da6f37b use get_service_nodes rpc endpoint 5 years ago
jeff 996ff06c6a update cmakelists.txt to no longer build removed file 5 years ago
jeff 0e2fb6abd5 revert to ed25519 for signing, this breaks everything (again). 5 years ago
Jeff d52b8bfbf5
Merge pull request #863 from jagerman/xenial-build-fix
Fix build on xenial
5 years ago
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.
5 years ago
Stephen Shelton a3c48e22f3
Even more clarity to NullMutex comments 5 years ago
Stephen Shelton b1da46e521 Add numNodesKnown to llarp.admin.dumpstate RPC endpoint 5 years ago
jeff b7601a6236 call read handler in logic thread 5 years ago
Stephen Shelton 36ef0954ec Add comments to NullMutex implementation to express intent 5 years ago
Michael f6adacf936
Review fixes 5 years ago
Michael 3371da98cf
Use libcurl (optional dependency) to hit jsonrpc 5 years ago
Michael 0721ce4d34
Add rpc call to get current addresses for our node 5 years ago
Michael 01611c2282
Convert RPC endpoint to be a lookup table 5 years ago
jeff 2425c2ba03 update comment 5 years ago
jeff cdb5610d90 close async 5 years ago
jeff 58a25602f5 more fixes, implemenmt missing functions 5 years ago
jeff c26b67c379 finish wiring up jni shizz 5 years ago
jeff 7d7c6bf38c Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography 5 years ago
Michael f326c93b5b
Apply Jeff's comments 5 years ago
jeff 52757fef0e Merge remote-tracking branch 'micheal/background_mode' into vpn-api-2019-10-03 5 years ago
Michael 15cb49c9bd
Introduce --background to only start JSON RPC
fixes #853
5 years ago
Michael d467e2618b
Support version over jsonrcp 5 years ago
jeff 4af6dca246 use static_cast 5 years ago
jeff 7d949ebf5d always use absl for string_view 5 years ago
jeff 605da68e15 use absl optional 5 years ago
jeff 3c1d5518d8 fix windows port and make it compile 5 years ago
jeff da9437d0cf don't need that 5 years ago
jeff 32ed821763 Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography 5 years ago
Jeff 3c2b2ce34d
Merge branch 'dev' into dev 5 years ago
Michael 5f0bb6fbd1
Try to fix windows build 5 years ago
Michael ae3fc3a395
Add initial macOS app 5 years ago
Rick V 00d34709eb
bump to 0.5.2 5 years ago
Rick V bf2ecaa74a
bump to 0.5.1 5 years ago
Rick V ed6ef2d527
clang-format 5 years ago
Rick V cbdbe94bab
skip null adapters 5 years ago
Rick V ade2ae1e9a
ok let's see how we're locked up
more debug
5 years ago
Rick V 4389e3fee2
try install .net manually
use full path

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

partial refactor of win32 udp listener impl
5 years ago
Rick V 609a9a1c31
fix netbsd 5 years ago
Rick V a0a14b97a0
really fix #689 this time 5 years ago
Rick V 3782479276
fix sun 5 years ago
Rick V 2ccbf5616d
enable SetThreadName (#689) 5 years ago
Rick V 581e64a2ef
back out for now 5 years ago
Rick V 578bcba73d
ok use exception filter
typo

no infinite loops
5 years ago
Rick V 16096c6adb
add debug helper lib for core dump generation on all supported windows targets
had an epiphany earlier

i kept having problems with static linking because
i merged the GNU C runtime with the SEH library
instead of merging the latter with pthread
5 years ago
Jeff 3d2dfcc027
Merge pull request #747 from majestrate/master
bug fixes
5 years ago
Jeff Becker 8329aa0ee6
always rewrite address 5 years ago
Jeff Becker a9f524383a
close dropped session later in event loop 5 years ago
Jeff Becker 4cfc3481dc
remove session->Close() 5 years ago
Jeff Becker 2261885206
mark addresses as active when we use them 5 years ago
Jeff Becker f37552bbd3
properly close dropped inbound sessions on utp 5 years ago
Jeff Becker aa0a795689
call path build fail stuff in logic thread 5 years ago
Jeff Becker b4af87aa42
have IPPacket::srcv6 and IPPacket::dstv6 check for ipv4 packets and expand them to ipv6 5 years ago
Jeff 0515ad6bf9
Merge pull request #726 from michael-loki/travis_docker
Get make windows working in CI
5 years ago
Jeff Becker f349677f1c
use ipv4 address on snodes for now 5 years ago
Jeff Becker 7e9ef19f69
use std::min 5 years ago
Jeff Becker f4ac918b7e
remove -1 5 years ago
Jeff Becker d595b51b0b
fix dht exploration ;~; 5 years ago
Jeff Becker e1dd7ad97f
revert dht stuff 5 years ago
Michael a062186f2d
or not 5 years ago
Michael ee2dd0fb68
Use __cpp_lib_filesystem 5 years ago
Michael 3c2f7792c2
Fixup 5 years ago
Michael 614b669fd5
Abandon debian 5 years ago
Michael df498c7bf8
try to make some windows 5 years ago
Jeff Becker 60fbeca9d4
const correctness 5 years ago
Jeff Becker db2206664a
fix crashes in testnet 5 years ago
Jeff Becker 9a8470bcc1
* const correctness
* use std::map's upper_bound to find many closer entries
* randomize key for exploration to allow many explore jobs in paralell
5 years ago
Jeff af74ee6f70
Merge pull request #737 from majestrate/add-link-layer-delivery-feedback
Add link layer delivery feedback
5 years ago
Jeff c08f8361a3
Merge pull request #732 from tewinget/path-build-status-messages
Adds Link-Relay Status Messages
5 years ago
Jeff Becker b0406e1a76
on logic queue overflow put job on timer instead 5 years ago
Jeff Becker b8904ab0f4
fix compile for tests 5 years ago
Jeff Becker 4eff86d681
use size_t 5 years ago
Jeff Becker 835b334a59
* increase utp buffers
* disallow inbound traffic on outbound utp link
* const correctness
5 years ago
Jeff Becker 9a055947cb
make it compile 5 years ago
Jeff Becker 16e6ab2193
propagate all utp link errors 5 years ago
Jeff Becker 503bea19cd
make travis happy 5 years ago
Jeff Becker 822f529be8
add link layer delivery feedback 5 years ago
Jeff Becker b29ec20ad4
try deferred resolve for exit handler 5 years ago
Jeff Becker 972d4f8672
fix crash of clients and propagate lookup failures 5 years ago
Thomas Winget 697ece64cc make TransitHop self-destruct if path is invalidated 5 years ago
Thomas Winget 38fd0552d3 Adds Link-Relay Status Messages
Success case:
  - the path endpoint creates and sends a LR_StatusMessage upon
    successful path creation

Failure case:
  - an intermediate hop creates and sends a LR_StatusMessage upon
    failure to forward the path to the next hop for any reason

Both cases:
  - transit hops receive LR_StatusMessages and add a frame
    to them reflecting their "status" with respect to that path
  - the path creator receives LR_StatusMessages and decrypts/parses
    the LR_StatusRecord frames from the path hops.  If all is good,
    the Path does as it would when receiving a PathConfirmMessage.
    If not, the Path marks the new path as failed.

LR_StatusMessage is now used/sent in place of PathConfirmMessage
5 years ago
Thomas Winget 011abde5ec make travis happy again *and* don't break message sending 5 years ago
Thomas Winget af2c960867 revert change that made travis happy because it broke things 5 years ago
Thomas Winget bbb5339b33 add debug-level log message on path build success 5 years ago
Thomas Winget 5e0fc2bc71 change log level of message send success 5 years ago
Jeff 183ec25717
Merge pull request #729 from majestrate/fix-android-2019-07-24
make android compile again
5 years ago
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.
5 years ago
Jeff Becker 43cb62af16
fix android compile, have makefile pull in libuv for cmake on android 5 years ago
Jeff Becker 909e0399d6
make android compile 5 years ago
Jeff f154c9a0d0
Merge pull request #721 from majestrate/fix-dht-2019-07-19
handle dht case
5 years ago
Jeff dc259e339f
Merge pull request #708 from michael-loki/travis_windows
Test windows support in travis
5 years ago
Michael 53bccc4f23
try to ensure on windows, but don't fail 5 years ago
Michael 9b40c0eb67
Fixup some tests 5 years ago
Michael 6ede15888e
Change manifest ids 5 years ago
Michael 4806e52f62
Try to silence some warnings to reduce noise 5 years ago
Michael 5c064d7ddc
Silence spammy threadpool warning 5 years ago
Michael 91c1ba87cc
Change ConfigParser too 5 years ago
Michael 8fd4ceb55b
Don't use LoadFromString 5 years ago
Michael 302c0ff18c
fixup printer.cpp 5 years ago
Michael 533d12e52e
more fs.cpp 5 years ago
Michael 3b17e65b0b
Fix more headers for fs.cpp 5 years ago
Michael 4b3920006e
fix str.cpp 5 years ago
Michael 0326f2ea56
fix fs.cpp 5 years ago
Michael ac8624698d
Fix some string_view problems 5 years ago
Michael 71c6aca820
include cctype 5 years ago
Michael 36c89363b3
try to fix pid_t issue 5 years ago
Michael 5fdd68fa44
exceptions BE GONE 5 years ago
Michael 0cbd7b3116
Fixup fs 5 years ago
Jeff Becker 1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply 5 years ago
Jeff Becker 7a3c8e5ca0
set limits correctly 5 years ago
Jeff Becker f48754c45d
make hop count and length configurable 5 years ago
Jeff Becker cdf02eae6e
only issue deferred utp acks before timeout checks in pump 5 years ago
Jeff Becker d465400840
revert 5 years ago
Jeff Becker 59653119fa
set timestamps to zero 5 years ago
Jeff Becker 961dd247ce
when lastSend is zero don;t time out 5 years ago
Jeff Becker f62446e1a4
make it compile 5 years ago
Jeff Becker a0f32fde13
reduce logging 5 years ago
Jeff abf99df93b
Merge pull request #714 from majestrate/fix-net-if-iterate
fix network interface iteration infinite loop
5 years ago
Jeff Becker b2fd0e86cc
fix network interface iteration infinite loop 5 years ago
Jeff Becker 1f761a1cb0
* fix arm cross compile on ubuntu disco
* add toolchain option for cross compile
5 years ago
Michael 5cef2865bd
Fix Ubuntu builds 5 years ago
Michael 5300568da5
Fix config builds 5 years ago
Jeff 4724bbf279
Merge pull request #707 from majestrate/fix-bootstrap
Fix bootstraping
5 years ago
Jeff Becker 12d4bfc379
always ask peers for next closest 5 years ago