Commit Graph

474 Commits (0de3a5f11d637e844f26d8876fb5923ddc79326b)

Author SHA1 Message Date
Jeff Becker 1780e86faa
fix up unit tests, make them all pass 4 years ago
Jeff a5b09c47e1
Merge pull request #1262 from notlesh/bandaids-for-sockaddr-refactor-2020-05-11
Bandaids for sockaddr refactor 2020 05 11
4 years ago
Stephen Shelton 174c9ec740
log-- 4 years ago
Stephen Shelton 78d09f2ae5
Support SockAddr in from sockaddr and friends 4 years ago
Stephen Shelton e944bcb28a
Unit tests and fixes for SockAddr::fromString() 4 years ago
Stephen Shelton 0b54087689
Begin implementing SockAddr 4 years ago
Stephen Shelton bcf473757d
Fix broken config-related test cases 4 years ago
Jeff Becker 635dc4fe13
unbreak router hive
llarp/config/config.cpp:
respect [network]:type option

llarp/handlers/exit.cpp:
when [network]:type is null dont init tun interface

llarp/service/context.cpp:
respect [network]:type option
change endpoint name back to "default"

llarp/tooling/router_hive.cpp:
dont use LogicCall for obtaining RCs from underlying relays, it crashes the mainloop and it's probably safe to readonly access RCs.

pybind/common.hpp:
remove typecasters as we use C++17 now

pybind/llarp/config.cpp:
remove SnappConfig
wire up NetworkConfig

pybind/llarp/handlers/pyhandler.hpp:
remove SnappConfig from constructor

pybind/llarp/handlers/pyhandler.cpp:
update constructor implementation to match header

test/hive/hive.py:
remove broke endpoint related code
wire up null endpoint option using NetworkConfig
use index at 0 for relays and clients instead of 1
dont add a python endpoint to all clients
4 years ago
Stephen Shelton 42a7bcd434
Less invasive fix for Addr 4 years ago
Stephen Shelton d3b248e004
Add test for broken Addr::from_char_array() 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
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 5c6c7c7020
Expand on ConfigDefinition truthy/falsy unit test 4 years ago
Stephen Shelton 320564d792
Specialize ConfigOption for bool to accept "truthy" / "falsy" values 4 years ago
Stephen Shelton 936fbb2424
Fix config not falling back to undeclared handler for missing option 4 years ago
Stephen Shelton 526b1320b7
Some maybe-fixes for RouterHive post config cleanup 4 years ago
Stephen Shelton dfcf8fb62e
Update RouterHive to reflect config changes 5 years ago
Stephen Shelton 0a9515a94a
Proper support for multiple values @ ConfigDefinition 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 9e850705b4
Add 'AssignmentAcceptor' convenience for simple config acceptors 5 years ago
Stephen Shelton 733efbab40
Reflect removal of accessors on config structs 5 years ago
Stephen Shelton 028e55e997
Remove pre-refactor config test 5 years ago
Stephen Shelton 14e7789847
Add padding to config file generated output 5 years ago
Stephen Shelton 18ee23c2a3
Support for comments in config definition 5 years ago
Stephen Shelton c5ff672c79
Use 'undeclared handler' for multi-valued 'add-node' config option 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 a44eb73baa
Add config INI output unit tests 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 8352de7bd4
Config documentation, clarity 5 years ago
Stephen Shelton 1b19314278
Implement Configuration::generateDefaultConfig(), maintain insertion order 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 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
Jeff d3091cf9fc
Merge pull request #1167 from tewinget/tooling
RouterHive initial PR
5 years ago
Jeff Becker 99c814e6b0
fix dns rebinding vuln in jsonrpc 5 years ago
Thomas Winget 695784b2b6 more hive things
DHT PubIntroSentEvent
some helper functions added to RouterHive (C++ class) as well as RouterHive(Python class)
hive.py main() continues to be a testbed for new event types
some more internal classes in pybind
5 years ago
Thomas Winget 7e0e8ab7bf hive.py upgrades, now with more cli args! 5 years ago
Thomas Winget a58a8c9a61 hive.py now defaults to 1000 relays because f your box.
also check for error on uv_async_init...

may want to `ulimit -Sn $(ulimit -Hn)`...
5 years ago
Thomas Winget c8c66f0a5f some refactoring of tooling code, added RCGossipReceivedEvent 5 years ago
Thomas Winget 912e4267e4 I'm a muppet. 5 years ago
Thomas Winget df0380e746 LRSM RouterEvent, added to hive test and test passes. 5 years ago