Thomas Winget
74d421ac2d
PathBuildNumber -> NextPathBuildNumber because increment side-effect
5 years ago
Thomas Winget
ad3465ee66
std move better
5 years ago
Thomas Winget
893ef2b874
const-y-ness and move-y-ness
5 years ago
Thomas Winget
fc56a018e5
path builder prints hops, rest print short name
5 years ago
Jeff
7c5a721457
Merge pull request #1114 from notlesh/redundant-introset-lookup-improvements-2020-02-20
...
Redundant introset lookup improvements
5 years ago
Stephen Shelton
63c3106db2
Make format
5 years ago
Stephen Shelton
0429bafbb3
Merge pull request #1111 from notlesh/redundant-introset-propagation-2020-02-19
...
Redundant introset propagation
5 years ago
Stephen Shelton
66cb30fa58
Refactor: remove recursionDepth from DHT lookups
5 years ago
Jeff
6ac5f19b3a
Merge pull request #1110 from jagerman/no-abseil-optional
...
De-abseil, part 1: remove absl::optional
5 years ago
Stephen Shelton
45a36fcfee
Rework FindIntro logic per redundant strategy
5 years ago
Jason Rhinelander
05a2e961e6
Add missing header
5 years ago
Stephen Shelton
4c499fb076
Make format
5 years ago
Stephen Shelton
6966168f5a
Minor improvements to DHT inroset propagation
5 years ago
Stephen Shelton
dff9aeb250
Propagate Introset publishing redundantly
5 years ago
Jeff Becker
dc7828941f
add log statement
5 years ago
Jason Rhinelander
ac1486d0be
Replace absl::optional with optional-lite
...
Step 1 of removing abseil from lokinet.
For the most part this is a drop-in replacement, but there are also a
few changes here to the JSONRPC layer that were needed to work around
current gcc 10 dev snapshot:
- JSONRPC returns a json now instead of an optional<json>. It doesn't
make any sense to have a json rpc call that just closes the connection
with returning anything. Invoked functions can return a null (default
constructed) result now if they don't have anything to return (such a
null value won't be added as "result").
5 years ago
Jeff Becker
9a6148c4c3
require router version in public routers
5 years ago
Jeff
20bc168d1c
Merge pull request #1093 from majestrate/toggle-publishing-introsets-2020-02-11
...
make publishing introsets optional
5 years ago
Jeff Becker
1874f439b7
add comment
5 years ago
Jeff Becker
e907d2ae19
handover fixes
5 years ago
Jeff Becker
f7f5d893a5
use endpoint path for lookup because outboundcontext does not implement pathset::HandleGotIntroMessage
5 years ago
Jeff Becker
c9866b6a0b
simplify
5 years ago
Jeff Becker
9aeee37347
short circuit
5 years ago
Jeff Becker
6a495dd090
ammend outbound context logic
5 years ago
Jeff Becker
02228ded08
spread out path builds
5 years ago
Jason Rhinelander
9e096d1996
Reduce introset publishing interal to 2.5min instead of 1.25min
...
We want to have some redundancy, but having 8 active at once seems
extreme; reduce to 4.
5 years ago
Jason Rhinelander
ce90b9dc7b
clang format
5 years ago
Jason Rhinelander
c3637c81fd
Remove another unused randomize parameter
5 years ago
Jason Rhinelander
25a796d940
Rework partial sorting code: use pointers, add lock
...
Changes to code to sorts a set of pointers instead of full records, then
copy those out into the final results that we return.
5 years ago
Jason Rhinelander
24469daefb
Remove unused parameter
...
We always randomize now.
5 years ago
Jeff Becker
83ee508fe1
comparison fix
5 years ago
Jeff Becker
763f61e454
dont collide variable names
5 years ago
Stephen Shelton
9dfcfbc3ac
Bencode/decode relayOrder in lexigraphical order, make it uint64_t
5 years ago
Stephen Shelton
127e7ef31b
Make format
5 years ago
Stephen Shelton
adf8772f3c
Remove relayOrder from MessageDecoder
5 years ago
Stephen Shelton
6ca2c11e59
Serialize / deserialize relayOrder @ FindIntroMessage
5 years ago
Stephen Shelton
906803e387
Refactor DHT introset lookups to use redundant lookup strategy
5 years ago
Stephen Shelton
fa1df8db63
Big R, little r, what begins with R?
5 years ago
Jeff Becker
4d4b33607f
dont use optional
5 years ago
Jeff Becker
23bcfa4abb
revert change
5 years ago
Jeff Becker
df8c56343d
refactor GetManyPathsWithUniqueEndpoints to go into service/endpoint_util.hpp
5 years ago
Jeff Becker
fc5e6b4d77
log location
5 years ago
Jeff Becker
3cc2adae31
paralell publish and lookups
5 years ago
Jeff Becker
e30c720446
redundant publish for service endpoint
5 years ago
Jeff Becker
e35d17764a
* add path::Path::UniqueEndpointSet_t
...
* start using check2 for new unit tests
* unit test for path::Path::UniqueEndpointSet_t
5 years ago
Jeff Becker
2b6f27d60d
remove connect back logic for dead inbound sessions
5 years ago
Jason Rhinelander
c522bc0537
ghc::filesystem devendor to submodule
...
Also removed some unused/old options for conditionally not using
ghc::filesystem and a sodium option that wasn't used anywhere.
5 years ago
Jason Rhinelander
5a787de73b
Switch abseil & nlohmann to submodules and update to latest stable
...
Our current abseil won't build with gcc 10 (its `optional`
implementation appears broken), and spews warnings under slightly older
compilers; updating to the latest stable 2019 branch fixes both issues.
5 years ago
Jeff
34cd64369b
Merge pull request #1095 from jagerman/warning-fix
...
Fix signed/unsigned comparison warning and make more std::chrono-y
5 years ago
Stephen Shelton
68d0cabcc5
Print an error when BDecodeReadFromFile() fails before calling DumpBuffer()
5 years ago
Jason Rhinelander
6a8d4aca38
Fix signed/unsigned comparison warning and make more std::chrono-y
5 years ago
Jeff Becker
837998eb88
rename variable
5 years ago
Jeff Becker
f6c4181e14
remove include
5 years ago
Jeff Becker
28561cd654
use Time_t
5 years ago
Jeff Becker
96c5553e34
rename variables
5 years ago
Jeff Becker
434ce56553
* get rid of dht explore for service nodes
...
* add Time_t using std::chrono for future uses
* make decaying hashset constructor with llarp_time_t explicit
* add decaying hashset implicit constructor using Time_t
* add timeouts for gossiper replay
* allow regossip of our RC
5 years ago
Jeff Becker
154be464ea
rc gossiping
5 years ago
Jeff Becker
7ad47f2dba
* get rid of dht explore for service nodes
...
* add Time_t using std::chrono for future uses
* make decaying hashset constructor with llarp_time_t explicit
* add decaying hashset implicit constructor using Time_t
* add timeouts for gossiper replay
* allow regossip of our RC
5 years ago
Jeff Becker
ea3851d15f
rc gossiping
5 years ago
Jeff
1403cff805
Merge pull request #1079 from majestrate/remove-dht-message-limit-2020-02-03
...
make message queue unbound for direct dht messages
5 years ago
Jeff
671c765161
Merge pull request #1085 from majestrate/check-for-initial-current-introset-2020-02-06
...
check for current introset being zero (initial state)
5 years ago
Jeff
4371ea469d
Merge pull request #1086 from majestrate/lokinetmon-update-2020-02-07
...
update lokinet monitor to work with iwp
5 years ago
Jeff Becker
792fd4132c
only make default endpoint non-reachable if no keyfile option presented
5 years ago
Jeff Becker
6c67cc1f01
make default endpoint non reachable by default
5 years ago
Jeff Becker
70eb353c42
make publishing introsets optional using reachable=false to disable
5 years ago
Jeff Becker
7374f8f0fd
update lokinetmon
5 years ago
Jeff
5901d0eb6b
Merge pull request #1092 from majestrate/reduce-iwp-multiack-frequency-2020-02-10
...
Reduce iwp multiack transmission frequency
5 years ago
Jeff
47db547378
Merge pull request #1088 from notlesh/add-iwp-stats-to-json-api-2020-02-07
...
Add IWP session stats to JSON API
5 years ago
Jeff Becker
8b77ec31ef
reduce number of multiack packets sent
5 years ago
Stephen Shelton
3d00feb08a
Make format
5 years ago
Stephen Shelton
7f0972d48e
Use name 'StateToString()' instead of ambiguous 'toString()'
5 years ago
Stephen Shelton
63ad7c8b91
Leave IWP session JSON stats 'tx' and 'rx' for compat
5 years ago
Jeff
8cad7fecbd
Merge pull request #1087 from majestrate/dont-flood-dht-2020-02-07
...
dont flood dht with requests, if we know of a router don't look it up
5 years ago
Jeff Becker
e8b84fcfbd
add path speed metrics for lokinetmon
5 years ago
Jeff
80a7b788bc
Merge pull request #1089 from majestrate/dht-introset-lookup-relayed-try-closer-2020-02-07
...
try closer router if relayed
5 years ago
Jeff Becker
00260555bd
logic simplification
5 years ago
Jeff Becker
e4a16dfdd5
fix comment
5 years ago
Jeff Becker
b211450cc8
always recurse to second closest if we don't have it
5 years ago
Jeff Becker
5b87a9419e
default recursion depth to 2 not 12
5 years ago
Jeff Becker
19d91a440f
move declaration of peer
5 years ago
Jeff Becker
3bea7327cb
handle end case by telling requester that it's not there
5 years ago
Jeff Becker
7e1a6236be
if relayed try closer router if we don't have an intro
5 years ago
Jeff Becker
a9331a1431
fix unit test
5 years ago
Stephen Shelton
2279ebeb40
Add IWP session stats to JSON API
5 years ago
Jeff Becker
cd27b33849
dont flood dht with requests, if we know of a router don't look it up
5 years ago
Jeff
0271f178d2
Merge pull request #1078 from jagerman/travis-bionic-and-arm
...
New travis arches + required endian fixes, libsodium build replacement
5 years ago
Jason Rhinelander
3be7eb789b
Endian defines fix for macOS
...
It seems `__BYTE_ORDER`/`__LITTLE_ENDIAN`/`__BIG_ENDIAN` aren't defined
on macOS, so `if __BYTE_ORDER == __BIG_ENDIAN` was true which made macOS
take the big endian path *twice* (which cancelled out the big endian
conversion).
This makes util/endian.hpp define __LITTLE_ENDIAN__ or __BIG_ENDIAN__
everywhere, and errors if it can't be set.
5 years ago
Jason Rhinelander
9283aac4b6
Big endian fixes
5 years ago
Jason Rhinelander
66ebe3995e
Remove -Wshadow; it is far too aggressive under gcc
5 years ago
Jeff
e44449b2d5
Merge pull request #1084 from notlesh/reduce-client-log-output-2020-02-06
...
s/LogInfo/LogDebug/ @ explore message
5 years ago
Jeff Becker
8c698a1cd1
* rename i to foundIntro
...
* check for zero timestamp
* use > not >=
5 years ago
Jeff Becker
41210a8ae1
check for current introset being zero (initial state)
5 years ago
Stephen Shelton
37e4f26be1
s/LogInfo/LogDebug @ 'signed/verify encrypted introset'
5 years ago
Stephen Shelton
2cade16c0e
s/LogInfo/LogDebug/ @ 'updating SN list'
5 years ago
Stephen Shelton
bc3184a126
s/LogInfo/LogDebug/ @ explore message
5 years ago
Jeff Becker
499e346da6
notify delivery of path builds
5 years ago
Jeff
8230b1152e
Merge pull request #1072 from majestrate/2020-01-25-router-version
...
add router version
5 years ago
Jeff Becker
e6174efa21
don't derive x25519 key from ed25519 key
5 years ago
Jeff
c122b460e1
Merge pull request #1075 from jagerman/dht-blinding
...
Dht blinding
5 years ago
Jeff Becker
80f8363386
don't drop messages with pathid zero which belong to snode to snode dht and path build requests.
5 years ago