jeff
75f550434c
change assert to throw an exception instead when service node has no peer stats enable.
...
update unit tests so it passes on debian sid
4 years ago
jeff
5391e6a66a
initial config overriding on runtime
4 years ago
jeff
f6f56029d3
working netlink route poker
4 years ago
jeff
b0bb0b7609
initial route poking
4 years ago
jeff
2aaed895f3
disable exits in RCs
4 years ago
Jeff Becker
ff130e2b5e
die if we are a relay and don't have any inbound links
4 years ago
Stephen Shelton
4699280d97
Crude attempt at retrying lokid connection
4 years ago
Stephen Shelton
0f074cff8c
Remove ambguity WRT loading and passing of Config
4 years ago
Stephen Shelton
f607b99dbe
Fixes to Context::Configure with default config
4 years ago
Stephen Shelton
cdaa28bfd3
Use QueueDiskIO instead of diskworker for db flushing
4 years ago
Stephen Shelton
552dcce5fd
Use inheritance to handle Hive injection
4 years ago
Stephen Shelton
0ecdda7a89
make format
4 years ago
Stephen Shelton
aeb0c2be3a
Remove ability to stop routers from gossiping for now
4 years ago
Stephen Shelton
bdac43e19f
Peer stats test which artificially stops a router from gossiping its RC
4 years ago
Stephen Shelton
d1b629f494
RouterHive ConnectionAttemptEvent
4 years ago
Stephen Shelton
b2a72dd46a
Initial test_peer_stats hive test
4 years ago
Stephen Shelton
2453fff10b
Piggyback on link callbacks to add peer stats
4 years ago
Stephen Shelton
023e061146
Make [router]:enable-peer-stats only valid for client
4 years ago
Stephen Shelton
d897099e1d
Track traffic peerstats
4 years ago
Stephen Shelton
5e05defc76
Add API query for peer stats, other related fixes
4 years ago
Stephen Shelton
595288e046
Add PeerDb::handleGossipedRC
4 years ago
Stephen Shelton
2a30e7dac2
Add PeerDb to Router
4 years ago
Jeff Becker
80919a3b76
address feedback.
...
* use exceptions when fetching identity key instead of std::optional, will throw on fail
* fix up config options for endpoint auth and add better docs
* add llarp::serive::AuthType enum for controlling what kind of endpoint auth to use
4 years ago
Jason Rhinelander
a7c42ab2bd
Use lokimq's hex/base32z encoding/decoding
4 years ago
Jeff Becker
e13e886df9
fix up event loop crap so that unit tests pass
4 years ago
Jeff Becker
1779f33506
fix makefile fromat target
...
use lokimq::address instead of std::string or std::string_view
4 years ago
Jeff Becker
f4971a88fd
use lokimq workers instead of llarp: 🧵 :ThreadPool
4 years ago
Jeff Becker
be01808a6b
more
4 years ago
Jeff Becker
c5dbb670ca
set sane defaults for config, implement lmq rpc server, update lokinetmon
4 years ago
Jeff Becker
6bbf7beaf5
add stubs for lmq rpc server
4 years ago
Jeff Becker
1175a583d2
initial working code
4 years ago
Stephen Shelton
17026a0b21
Remove libabyss and rpc::Caller/rpc::Server
4 years ago
Jeff Becker
d5b4dbe052
more
4 years ago
Jeff Becker
b1259e25c5
set sane defaults for config, implement lmq rpc server, update lokinetmon
4 years ago
Jeff Becker
fb8b8e2e56
add stubs for lmq rpc server
4 years ago
Jeff Becker
ad882d0d70
initial working code
4 years ago
Jeff Becker
0006751d80
initial wack at lokimq
4 years ago
Stephen Shelton
11951510bf
Remove libabyss and rpc::Caller/rpc::Server
4 years ago
Jeff Becker
800668348a
add regression test for key backup bug
4 years ago
Jeff Becker
019168fef0
remove unused local variable
4 years ago
Jeff Becker
1899debfb5
unfug transit hops
4 years ago
Stephen Shelton
193060d602
Undo client-related changes to RC creation
...
This partially reverts changes from
1497b829bd
and intsead only prevents
clients from saving their RC to disk.
4 years ago
Stephen Shelton
980853804d
Remove log statement
4 years ago
Stephen Shelton
cecafb3215
Undo unintentional revert?
4 years ago
Stephen Shelton
d8b12ce764
Let KeyManager assemble key filenames
4 years ago
Stephen Shelton
1497b829bd
Ignore our self.signed file if we're a client
4 years ago
Jeff
45cda241f0
Merge pull request #1272 from majestrate/exit-nodes-2020-05-16
...
exit traffic via snapps
4 years ago
Jeff Becker
acecb23eb3
make libuv event loop logic queue size configurable.
...
remove logic constructor that is no-op.
add constant for default logic queue size
add constant for transit hop queue size
4 years ago
Rick V
1340cd0dce
remove some string conversions entirely
4 years ago
Rick V
f62214cf8c
first pass fix wstring path conversions
4 years ago
Jeff Becker
39f8f17b53
dont set callback if non provided
4 years ago
Jason Rhinelander
3bb24580a4
make format
4 years ago
Jason Rhinelander
ebd2142114
Don't use std::optional::value() because f u macos
...
This replaces all use of std::optional's `opt.value()` with `*opt`
because macOS is great and the ghost of Steve Jobs says that actually
supporting std::optional's value() method is not for chumps before macOS
10.14. So don't use it because Apple is great.
Pretty much all of our use of it actually is done better with operator*
anyway (since operator* doesn't do a check that the optional has a
value).
Also replaced *most* of the `has_value()` calls with direct bool
context, except for one in the config section which looked really
confusing at a glance without a has_value().
4 years ago
Jeff Becker
1780e86faa
fix up unit tests, make them all pass
4 years ago
Jeff
e6a85d7176
Merge pull request #1263 from jagerman/c++17-niceties
...
C++17 niceties
4 years ago
Jason Rhinelander
e470a6d73e
C++17 niceties
...
- class template argument deduction lets us write `std::unique_lock
foo{mutex}` instead of `std::unique_lock<mutex_type> foo{mutex}` which
makes the `unique_lock` and `shared_lock` functions unnecessary.
- Replace GNU-specific warn_unused_result attribute with C++17-standard
[[nodiscard]]
- Remove pre-C++17 workaround code for fold expressions, void_t
4 years ago
Stephen Shelton
aee96e53a3
Refactor Addr -> IpAddress/SockAddr
4 years ago
Jeff Becker
f1edca9fa1
additional cleanup of cruft
4 years ago
Jeff Becker
1cbf50296c
only add endpoint for hidden service if not service node
4 years ago
Jeff Becker
6aa79b7ca9
set network section
4 years ago
Stephen Shelton
960dc37c1f
Refactor TunEndpoint::Configure() (partially)
4 years ago
Stephen Shelton
f2a26adcaa
Move all [endpoint] options to [network]
4 years ago
Stephen Shelton
dd9ab0f1d5
Remove ability to have multiple endpoints/snodes from config
4 years ago
Stephen Shelton
2bc908cd40
Remove [dns]:local-dns in favor of [dns]:bind
4 years ago
Stephen Shelton
779658edd0
Refactor ExitEndpoint's config, mv dns ops from [network] to [dns]
4 years ago
Stephen Shelton
21ad442b55
Remove NetConfig_t
4 years ago
Stephen Shelton
df01770466
Rename SnappConfig -> EndpointConfig
4 years ago
Stephen Shelton
93b35c92a7
Eradicate service::Config
4 years ago
Jason Rhinelander
1697bf90fe
C++17
...
Compiles with C++17, replaces ghc::filesystem with std::filesystem,
nonstd::optional with std::optional, and llarp::string_view with
std::string_view.
4 years ago
Stephen Shelton
f8439dab61
Misc aesthetic tweaks
4 years ago
Stephen Shelton
526b1320b7
Some maybe-fixes for RouterHive post config cleanup
4 years ago
Stephen Shelton
ca24f25665
Make fewer assumptions about config state
...
This handles values missing when config is created through RouterHive.
5 years ago
Stephen Shelton
de8e44ba21
Re-apply clang-format rules after rebasing
5 years ago
Stephen Shelton
be014175e9
Consolidate logging initialization logic
5 years ago
Stephen Shelton
6909e20588
Fix logging initialization and flush at program exit
5 years ago
Stephen Shelton
d3bcc05aa6
Organize some constants and default values
5 years ago
Stephen Shelton
91206725cb
Inject a default bootstrap file if none in conf
5 years ago
Stephen Shelton
7ea8d62640
Use fs::path over std::string for files
5 years ago
Stephen Shelton
4f77080f75
Remove optional<> from block-bogons
5 years ago
Stephen Shelton
adfcbd1d0b
Slight cleanup of k:v option maps
5 years ago
Stephen Shelton
6fd270ba09
Rip out link type spec and factory
...
We only support IWP now, so this is all effectively dead code.
5 years ago
Stephen Shelton
733efbab40
Reflect removal of accessors on config structs
5 years ago
Stephen Shelton
5b520a4dff
Simplify connection limit constants
5 years ago
Stephen Shelton
ffc58fcedb
Remove dead code (serverOptions)
5 years ago
Stephen Shelton
2e47262350
Demystify LinksConfig
5 years ago
Stephen Shelton
cd1e7713de
Clean up / consolidate config logging logic
5 years ago
Stephen Shelton
273270916e
The Great Wall of Blame
...
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.
Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
5 years ago
Jeff
d3091cf9fc
Merge pull request #1167 from tewinget/tooling
...
RouterHive initial PR
5 years ago
Stephen Shelton
ea835405c5
Refactor NotifyRouterEvent() to forward args, event code cleanup
...
This template-ifies Router::NotifyRouterEvent() up so that it accepts
the arguments to instantiate the specified event type, forwarding them
to std::make_unique. This would allow (in the future) the function to
no-op the call and avoid memory allocation. It also slightly reduces
the amount of code required to fire an event.
This commit also simplifies some of the RouterEvent code to reduce
redundancy.
5 years ago
Jeff Becker
5191af1525
typo fix
5 years ago
Jeff Becker
5d86587aab
typo fix
5 years ago
Jeff Becker
bce5cd7b0f
add additional case check and documentation comments for pruning logic
5 years ago
Jeff Becker
b3f2c71617
add comment
5 years ago
Jeff Becker
d8da3f0a83
simplify logic
5 years ago
Jeff Becker
327ab6f178
prune nodedb as client and service node with no whitelist
5 years ago
Thomas Winget
84a1d7dbcc
clang format.......
5 years ago
Thomas Winget
6d472d2423
rc gossip delay adjustment for hive
...
allows enough time for every relay (at least in a hive of 50) to connect
to the bootstrap node so all will get all gossips, but not too long so
tests can run relatively quickly.
5 years ago
Jeff Becker
08de84d40b
remove non public routers from nodedb
5 years ago
Thomas Winget
6fc05ca1ff
RCGossipSentEvent
5 years ago
Thomas Winget
c8c66f0a5f
some refactoring of tooling code, added RCGossipReceivedEvent
5 years ago