Commit Graph

3692 Commits (559610ec948518e168a0567542e06896c0e6a2c2)

Author SHA1 Message Date
Stephen Shelton 6909e20588
Fix logging initialization and flush at program exit 5 years ago
Stephen Shelton 2479049876
Remove dead code 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 da6bda15a1
Where did rc.signed come from?! 5 years ago
Stephen Shelton 7ea8d62640
Use fs::path over std::string for files 5 years ago
Stephen Shelton 7ce256d846
Prefer fs::path over std::string @ KeyManager 5 years ago
Stephen Shelton 0a9515a94a
Proper support for multiple values @ ConfigDefinition 5 years ago
Stephen Shelton 28c1ca9c7a
Handle missing IP address in conf properly 5 years ago
Stephen Shelton 0697d57190
Important TODO 5 years ago
Stephen Shelton 0e5e9a1222
Silently ignore config file if it exists already 5 years ago
Stephen Shelton 1fc7c61d1f
Share common conf comments for client and relay 5 years ago
Stephen Shelton 3739fc1d70
Reinstate multi-valued option 5 years ago
Stephen Shelton a6787657be
Refactor config comments to take list of strings 5 years ago
Stephen Shelton a8671cf9c7
Rename config classes for clarity
ConfigDefinition -> OptionDefiniton
Configuration -> ConfigDefinition
5 years ago
Stephen Shelton f250b7adcb
Remove pidfile support 5 years ago
Stephen Shelton 4f77080f75
Remove optional<> from block-bogons 5 years ago
Stephen Shelton 4d053231d3
Define config defaults as constexpr 5 years ago
Stephen Shelton adfcbd1d0b
Slight cleanup of k:v option maps 5 years ago
Stephen Shelton e06c2e4502
Check that [router]min-connections <= [router]max 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 9e850705b4
Add 'AssignmentAcceptor' convenience for simple config acceptors 5 years ago
Stephen Shelton f2a8dd10ce
Modernize Snapp config 5 years ago
Stephen Shelton 733efbab40
Reflect removal of accessors on config structs 5 years ago
Stephen Shelton c8c940b0f5
Replace individual file locations with dataDir 5 years ago
Stephen Shelton 5d0b53e1be
Remove environment variable support in config 5 years ago
Stephen Shelton 05257126fe
Make distinction between config dir and data dir 5 years ago
Stephen Shelton 923e73f693
Plumb isRelay CLI arg through to config 5 years ago
Stephen Shelton 028e55e997
Remove pre-refactor config test 5 years ago
Stephen Shelton 2e75e03434
Remove incomplete impl of config hot-reloading 5 years ago
Stephen Shelton 6301fefd43
Add router-specific config comments 5 years ago
Stephen Shelton 5b520a4dff
Simplify connection limit constants 5 years ago
Stephen Shelton 14e7789847
Add padding to config file generated output 5 years ago
Stephen Shelton 1273f11ce8
First pass at updating comments to lokinet config 5 years ago
Stephen Shelton 18ee23c2a3
Support for comments in config definition 5 years ago
Stephen Shelton 1653b73ee5
Clean up the logic around generating default confs 5 years ago
Stephen Shelton c5ff672c79
Use 'undeclared handler' for multi-valued 'add-node' config option 5 years ago
Stephen Shelton feacde7864
Hook up 'undeclared handlers' to mop up loosely-structured INI values 5 years ago
Stephen Shelton 9a1b7b20de
Add "undeclared value" handler to Configuration 5 years ago
Stephen Shelton e9708a5d1c
Add split(string_view, char) util function 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 4c00c6238e
Join config definition and config parser 5 years ago
Stephen Shelton 653a650cf9
Fix typo 5 years ago
Stephen Shelton 9f0ae43149
Remove dead code 5 years ago
Stephen Shelton d82f5e6b93
First pass at replacing config value logic 5 years ago
Stephen Shelton 69331f1571
Remove multiValued as an argument to ConfigDefinition 5 years ago
Stephen Shelton f6d000838f
Clarity and convenience for defining config options 5 years ago
Stephen Shelton 02e31f3867
Introduce acceptor function in ConfigDefinition 5 years ago
Stephen Shelton 60d0bf2a9b
Rename function for clarity 5 years ago
Stephen Shelton 8160c13458
More documentation around Configuration/ConfigDefinition 5 years ago
Stephen Shelton 8352de7bd4
Config documentation, clarity 5 years ago
Stephen Shelton d9340a873e
Consolidate Configuration generate INI functions 5 years ago
Stephen Shelton 1b19314278
Implement Configuration::generateDefaultConfig(), maintain insertion order 5 years ago
Stephen Shelton 7dacc30862
Conveience and clarity around config definiton maps 5 years ago
Stephen Shelton 105dd30fd9
More ConfigDefinition unit tests, fixes, support std::string as type 5 years ago
Stephen Shelton 25212b929c
Add ConfigDefinition unit tests, fixes 5 years ago
Stephen Shelton a856e772c8
Stylistic clean up 5 years ago
Stephen Shelton 0fb888890f
First pass at Configuration definition classes 5 years ago
Stephen Shelton 9d71228e74
Replace config visit pattern with explicit lookups
This is an initial pass at doing explicit value checks when handling
config parsing, as opposed to using a visiting pattern. The latter
made it difficult to check for conditions such as missing required
values, multiple values, etc.

It was also generally less readable (think declarative) which further
made it difficult to get a grasp for what our actual configuration file
requirements were.
5 years ago
Stephen Shelton 858e252820
Add stringify() to util/str 5 years ago
Stephen Shelton ca67c12928
Why template when we only use one type?? 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 Becker 4375df2f7d
add forgotten files for generating docs 5 years ago
Jeff Becker c36b6a409c
move version to cmake so docs can access it 5 years ago
Jeff Becker 3e7acb72e1
more docs, make doxygen work 5 years ago
Jeff d3091cf9fc
Merge pull request #1167 from tewinget/tooling
RouterHive initial PR
5 years ago
Jeff Becker 2190da8c81
cpack win32 5 years ago
Jeff d3c3aebeaf
Merge pull request #1194 from majestrate/disable-iwp-fec-2020-03-23
disable accedental fec in iwp outbound messages
5 years ago
Jeff Becker 3b424f76f1
strict check of bounds 5 years ago
Jeff Becker 67883aa945
when we have an inbound session and we do a forward dns lookup
we should not look up the descriptor on the network as we
already have a session with them
5 years ago
Jeff Becker b398076bc6
add bounds check 5 years ago
Jeff Becker b96700579e
remove un needed check 5 years ago
Jeff Becker 53e7397935
fix use after move 5 years ago
Jeff Becker 769bafd281
disable accedental fec in iwp outbound messages 5 years ago
Jeff b1f036bb7f
Merge pull request #1188 from majestrate/call-jsonrpc-server-cleanup-2020-03-16
fix memleak in jsonrpc
5 years ago
Jeff Becker 1e434c03f8
cleanup 5 years ago
Jeff Becker d1f8752b7c
fix memleak in jsonrpc
llarp_tcp_acceptor ticker wasn't being called so connections where not
being cleaned up
5 years ago
jeff 7089996ac5 discard unknown fields in introset for future use 5 years ago
Stephen Shelton 8a12da8bd5
Remove some .cpp files related to RouterEvents
The motivation is to reduce the raw amount of code required to create
and maintain events.
5 years ago
Stephen Shelton 4c6be3c8d1
Add PathBuildRejectedEvent to RouterHive 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 4452b152aa
add an A Record for random.snode so that it works 5 years ago
Jeff Becker 7ba30eec25
squash commits 5 years ago
Jeff ac80357552
Merge pull request #1175 from majestrate/limit-snode-session-build-rate-2020-03-09
limit path builds on snode sessions
5 years ago
Jeff 3f4b2a53fa
add additional case (#1180)
* add additional case for if we are near the end and all elements are in the exlcude set

* fix stop condition in second loop
5 years ago
Jeff Becker a1e8500035
use for loop 5 years ago
Jeff Becker 1ea210ace6
typo fix 5 years ago
Jeff bf82740c08
only try fetching identity key once so we can interrupt lokinet (#1178) 5 years ago
Jeff c6fd007688
Merge pull request #1176 from majestrate/randomize-hop-selection-more-2020-03-10
fully randomize hop selection
5 years ago
Jeff Becker 9cdc7f498d
remove dead code 5 years ago
Jeff Becker 69126c67df
code dedup 5 years ago
Stephen Shelton 6664202868
Add FindRouterSentEvent and FindRouterReceivedEvent to RouterHive 5 years ago
Jeff Becker 6047d578f8
fully randomize hop selection 5 years ago
Jeff bc85082502
Merge pull request #1171 from majestrate/prune-nodedb-as-client-2020-03-08
better nodedb pruning logic
5 years ago
Jeff a6a3d77bb4
Merge pull request #1174 from notlesh/reduce-rr-decode-fail-verbosity-2020-03-09
Reduce log verbosity when DNS RR decode fails
5 years ago
Jeff Becker 677e19e6a9
limit path builds on snode sessions 5 years ago
Jeff Becker 5191af1525
typo fix 5 years ago
Jeff Becker 5d86587aab
typo fix 5 years ago