dr7ana
9acac2c33e
CI fixes
...
- oxen-logging updated to bump fmt version
- version bump oxen-logging to fix fmt version
- version bump oxen-mq to solve uniform distribution error
- misc errors introduced by above version bumps
- clang-format 14 -> 15
2023-08-11 14:01:07 -07:00
dan
9bfe881a35
OMQ_Request handling logic change
2023-02-01 15:52:37 -08:00
dan
b2e8cde64b
working new endpoints
...
- added hotswap functionality
- map_exit and unmap_exit working
2023-02-01 15:52:37 -08:00
dan
0632e88de0
Make new header for json type conversions
2023-02-01 15:52:37 -08:00
dan
d3e69fe3c5
added unmapexit and listexit endpoints
2023-01-24 09:44:02 -08:00
dan
26beebca97
logic fix, commit to be stashed
2023-01-09 11:43:25 -08:00
dan
b6991bb59a
lokinet.cpp CLI and logic fixes
...
- added single dash to one letter flags to fix CLI incorrectconstruction error
- fixed generate file error
2023-01-09 11:28:25 -08:00
dan
dc7f3cee22
Replace cxxopts with CLI11
...
- Simiplifies CLI code for future modification
- filesystem library linked in cmake check_for_std_filesystem file
2023-01-06 15:04:14 -08:00
Jeff Becker
0cf637178d
prevent throwing on no error in lokinet-vpn
2022-11-02 15:42:49 -04:00
Jason Rhinelander
ab11a8128d
lokinet-vpn: misc cleanups
...
- Add a function to extract a value from parsed options, to DRY out the
code a little bit.
- Add a exit_error function to format a message to stdout and then
return the code, to simplify the repeated print-and-return code used
when errors occur.
- Use fmt for output formatting
- Add an error if multiple modes are specified at once
(--up/--down/--status/--exit)
- Add error printing around unmap
2022-09-21 13:38:18 -03:00
Jason Rhinelander
f8f7f20666
Rename LMQ -> OMQ
2022-09-21 13:38:18 -03:00
Jason Rhinelander
71ea4f4fa2
RPC: Relax token/range argument handling
...
- Accept empty string or `null` for token to mean "no token."
- Accept `null` for range to mean "default range."
- Don't use a default range (::0/0) in lokinet-vpn because this will
fail if IPv6 ranges aren't supported on the platform (e.g. on
Windows), and isn't necessary: if we omit it then the rpc code already
uses ::0/0 or 0.0.0.0/0 by default, as needed.
2022-09-21 13:38:17 -03:00
Jeff Becker
54c56a6d28
remove references to lokimq namespace
...
these were not found during the first passes and now that lokimq is gone from my machine this failed to compile
2021-03-15 08:46:19 -04:00
Thomas Winget
7caa87862e
standardize include format and pragma once
...
All #ifndef guards on headers have been removed, I think,
in favor of #pragma once
Headers are now included as `#include "filename"` if the included file
resides in the same directory as the file including it, or any
subdirectory therein. Otherwise they are included as
`#include <project/top/dir/relative/path/filename>`
The above does not include system/os headers.
2021-03-09 19:01:41 -05:00
Jason Rhinelander
91d6698a9d
Reformat with clang-format-11
2021-03-05 13:36:31 -04:00
Jeff Becker
bd93a8f828
initial v6 exits
2021-02-16 10:59:57 -05:00
Jeff
6407733c8e
* make llarp.halt rpc call actually return a reply ( #1488 )
...
* add --kill flag to lokinet-vpn that calls llarp.halt
* make macos uninstaller kill lokinet via lokinet-vpn --kill
2020-11-20 12:37:30 -05:00
Jeff
03d6f191d1
add status command to lokinet-vpn ( #1393 )
2020-10-05 11:50:59 -04:00
jeff
f6f56029d3
working netlink route poker
2020-08-24 20:23:26 -04:00
jeff
099831719a
update macos command for default route poker.
2020-08-24 20:21:18 -04:00
jeff
528340e056
dont include sys/wait.h on windows
2020-08-24 20:21:18 -04:00
jeff
d0374ce083
windows does not have fork/wait
2020-08-24 20:21:18 -04:00
jeff
f5e4d8bd1b
execv needs program name as first argument
2020-08-24 20:19:52 -04:00
jeff
0ee1c4a60a
use full path for ip on linux and report exit code
2020-08-24 20:19:51 -04:00
jeff
bc8e867dfb
use exec for lokinet-vpn
2020-08-24 20:19:51 -04:00
Rick V
f283c565e7
make x.x.x.y+1 the default router on windows
2020-08-24 20:19:50 -04:00
Jeff Becker
400f5d3902
windows uses multiple commands for default route.
2020-08-24 20:19:50 -04:00
Jeff Becker
d1abee84d1
windows route hack because lol windows
2020-08-24 20:19:50 -04:00
Jeff Becker
b2e5a178a4
verbose logging of executed commands
2020-08-24 20:19:50 -04:00
Jeff Becker
d9d63ba14b
add metric to windows
2020-08-24 20:19:50 -04:00
Jeff Becker
876b8db1a1
windows fixes
2020-08-24 20:19:50 -04:00
Jeff Becker
dde6bbeeb8
fix for windows as it is cursed
2020-08-24 20:19:50 -04:00
Jeff Becker
88de4c6f91
windows fixes
2020-08-24 20:19:50 -04:00
Jeff Becker
65b9b55335
fixes for windows
2020-08-24 20:19:50 -04:00
Jeff Becker
7e562a5b37
add netmask for macos
2020-08-24 20:19:49 -04:00
Jeff Becker
49eb42d63f
formatting and typo fix
2020-08-24 20:19:49 -04:00
Jeff Becker
9e24a5bfca
add check for no default route on down
...
fix macos bits for down
install lokinet-vpn with cmake
2020-08-24 20:19:49 -04:00
Jeff Becker
c49e11031a
fix variable name
2020-08-24 20:19:49 -04:00
Jeff Becker
778792f8fc
fix compile error on macos and exclude excluded interface
2020-08-24 20:19:49 -04:00
Jeff Becker
c2e484d14b
fix apple build
2020-08-24 20:19:49 -04:00
Jeff Becker
847fdb4f6b
add initial macos bits for lokinet-vpn (apple made macos so that man may suffer)
2020-08-24 20:19:49 -04:00
Jeff Becker
34ffd8e869
dont put the "gateway" into the return value use the interface address instead because that is what we are looking for
2020-08-24 20:19:49 -04:00
Jeff Becker
45b6fcd7cb
forgot hunk
2020-08-24 20:19:49 -04:00
Jeff Becker
04392a5115
tweak windows bits so that they compile
2020-08-24 20:19:49 -04:00
Jeff Becker
36a2bc5d66
add forgotten array header
2020-08-24 20:19:48 -04:00
Jeff Becker
22e4aef4f9
initial windows platform specific bits for lokinet-vpn
2020-08-24 20:19:48 -04:00
Jeff Becker
37e16291cb
working on linux with root
2020-08-24 20:19:48 -04:00
Jeff Becker
a8239af73a
initial lokinet-vpn tool rewrite
2020-08-24 20:19:48 -04:00