Commit Graph

374 Commits (559610ec948518e168a0567542e06896c0e6a2c2)

Author SHA1 Message Date
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 5 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
Thomas Winget 931ff521d1 working toward full testnet of routers (not clients yet) in hive/pybind setup
Not working yet -- some sort of RC issue.  Checkout the commit prior to this if you want something that 'works' that you can play with.
5 years ago
Thomas Winget 0f34a950a9 pybind config object, working 5 years ago
Thomas Winget f712acc486 huzzah it builds, time to test soon! 5 years ago
Jeff Becker da79b14703 make it compile 5 years ago
Thomas Winget 8dc5dabe49 working toward compilation, still has include issue 5 years ago
Thomas Winget 8d03e6dd3c more router hive stuff, read below the fold
Router now has a hive pointer if LOKINET_HIVE is set.
llarp::Context has a method InjectHive to give Router the pointer.
Router has a method NotifyRouterEvent which does:
  - when LOKINET_HIVE is set, passes the event to RouterHive
  - else when LOKINET_DEBUG is set, prints the event at a low log level
  - else NOP
5 years ago
jeff 49e69d7087 remove uneeded code 5 years ago
Jason Rhinelander df7a173649 Shorten version and prefix with v
So we get `v0.7.0` instead of `lokinet-0.7.0-abcdef12`; the latter is
useful for devs, but not so much for random operators (and you can
always go get the full version from the binary).
5 years ago
Jason Rhinelander d5eed90a3c Fix systemd compilation & enable systemd on travis 5 years ago
Jeff Becker 66181d8a8f
systemd status 5 years ago
Jeff Becker bf0416cab8
remove Time_t, add operator overload for printing llarp_time_t and add to_json function for serializing llarp_time_t to json 5 years ago
Jeff Becker d2d109e92c
llarp_time_t is now using std::chrono 5 years ago