Jeff Becker
90a2545bb1
handle SIGTERM
2018-11-29 08:12:28 -05:00
Jeff Becker
7e4d74cbfc
add initial jni stuff for lokinet android. i fucking hate android so god damn much.
2018-11-26 17:46:22 -05:00
Jeff Becker
7090a012f3
Merge remote-tracking branch 'micheal/wextra' into dev
2018-11-07 10:57:34 -05:00
Michael Thorpe
33bfaf7ecd
Enable -Wextra
...
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
2018-11-07 15:31:13 +00:00
Jeff Becker
f1cca956f9
make android compile again
2018-11-06 09:06:09 -05:00
despair
38f2a6b2c9
be slightly less annoying
...
check build rules
2018-10-30 00:16:34 -05:00
despair
c5d1b32286
remove microsoft c++ crud
...
🤔 🤔 🤔 🤔
2018-10-30 00:16:33 -05:00
cathugger
4971fae171
uint32_t byte ordering type safety
2018-10-10 15:16:10 +00:00
Ryan Tharp
cc42e8e623
guard, rename endpoint to context, main_router_endpoint_iterator() implementation
2018-10-03 04:00:47 -07:00
Ryan Tharp
9ea564e832
update llarp_main_init_dnsd to make new DNSd init
2018-09-29 03:27:38 -07:00
Ryan Tharp
902f6f14b7
pass RC by ref, header cleanup, clang format
2018-09-24 06:10:36 -07:00
Ryan Tharp
9d4d595624
compile fixes
2018-09-22 03:39:53 -07:00
Ryan Tharp
6590d502cd
get first tun interface wiring
2018-09-22 03:23:23 -07:00
Ryan Tharp
ca7d3567a2
prefetch and expose it
2018-09-21 12:53:20 +00:00
Ryan Tharp
4df6202c9f
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-09-21 12:51:54 +00:00
Jeff Becker
4e7c6ee90a
fix crash
2018-09-21 08:30:57 -04:00
Ryan Tharp
79fb82a3c8
main_router_getRange to get access to tun
2018-09-20 12:34:53 +00:00
Ryan Tharp
2bdee7d528
expose mapAddress of first tunEndpoint
2018-09-20 03:05:42 -07:00
Ryan Tharp
f283923cb7
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-09-19 12:28:48 +00:00
Ryan Tharp
9f33edeed0
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-09-19 12:22:34 +00:00
Jeff Becker
2761da0b5f
actually load config
2018-09-17 08:02:09 -04:00
Jeff Becker
e047bfa266
update readme
...
add sighup
2018-09-17 07:47:34 -04:00
Jeff Becker
c3c388b6aa
remove iwp and start on curvecp
...
does not compile
2018-09-02 14:25:42 -04:00
Jeff Becker
973f86c900
it compiles
2018-08-31 08:46:54 -04:00
Jeff Becker
5228a81bae
more refactor
...
get rid of C api
2018-08-30 14:48:43 -04:00
Ryan Tharp
8724ddd792
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-08-23 22:51:23 +00:00
despair86
9ad93a0893
sunos patches, avoid shadowing data members in derived classes, header fixes
...
SunOS build works, with a few issues:
- no tuntap debugging on Solaris? (TUNSDEBUG ioctl missing)
- regular socket ioctls are not pulled in with #include <sys/ioctl.h>
even though they're included at the bottom of same (filio.h,
sockio.h)
- no named threads in any libre fork of solaris
-despair86 (rick)
sun patch
2018-08-18 21:25:24 -05:00
Ryan Tharp
3ada1e15be
llarp_main_queryDHT_RC(), llarp_main_init_dnsd(), actually query DHT on dns lookup
2018-08-09 04:22:57 -07:00
Jeff Becker
62f41d3747
initial threadpool isolation code and run make format
2018-08-08 13:43:46 -04:00
despair86
bdc54835c2
initial windows server port. Requires Windows 2000 Server or later.
...
- updated CMake build script
- builds with Microsoft C++ 19.1x. such builds require Windows 8.1 or later
unless you have the .NET Server 2003-toolset (v141_xp)
- windows port requires a C++17 compiler since cpp17::filesystem is POSIX-only
- HAVE_CXX17_FILESYSTEM manual toggle in CMake. You must manually specify where
std::[experimental::]filesystem is defined in LDFLAGS or CMAKE_x_LINKER_FLAGS.
- IPv6 support can be added at any time, and the windows sdk still has that
inline getaddrinfo(3) if it can't find a suitable IPv6 stack.
- inline code for mingw-w64: there's a few bits and pieces still missing simply because
mingw-w64 derives its windows sdk from wine and reactos, and then writing all the newer
stuff into it by hand straight from the MSDN manpages.
- misc. C++11 stuff (nullptr and friends)
- Internal file handling code takes UTF-8 or plain 8-bit text, NTFS is UTF-16, so
std::filesystem::path::c_str() is wchar_t. That's no good unless you first
call std::filesystem::path::string().
- implemented getifaddrs(3) and if_nametoindex(3) on top of GetAdapters[Info|Addresses](2).
- updated readme with new info
BONUS: may implement Solaris/illumos IOCP someday...
-despair86
2018-08-01 23:41:02 -05:00
Jeff Becker
928ec3790d
deterministic logging
2018-07-31 08:35:54 +10:00
Jeff Becker
d011fb550e
have logic and netio run in same thread for now
2018-07-30 08:20:31 +10:00
Jeff Becker
07b99e8ac4
extern "C" block for shared library
2018-07-27 13:41:55 +10:00
Ryan Tharp
bd229be656
handleBaseCmdLineArgs() refactor
2018-07-26 03:52:23 -07:00
despair86
bbe0634edc
this should get things going on UNIX :D
2018-07-25 20:00:15 -05:00
Jeff Becker
17ad12cd2c
* don't heap allocate llarp_rc
...
* store rc into network database cache on connect
2018-07-25 11:24:37 +10:00
Jeff Becker
a9c92213df
more backport
2018-07-24 16:37:12 +10:00
Jeff Becker
f7daee5abf
backport
2018-07-24 16:34:23 +10:00
Jeff Becker
066cf537e2
backport
2018-07-24 16:33:22 +10:00
Jeff Becker
62b94b17aa
more backport
2018-07-24 16:30:01 +10:00
Jeff Becker
fd4938b1e4
more android pendatic fixes
2018-07-24 12:25:10 +10:00
Jeff Becker
6945fe53a5
more also run make format
2018-07-17 14:37:50 +10:00
Jeff Becker
f48acbc23e
Merge remote-tracking branch 'ryan/libdns' into hidden-service-dht
...
also run make format
2018-07-17 07:26:16 +10:00
Jeff Becker
0242e293c9
more
2018-07-16 13:32:13 +10:00
Ryan Tharp
e1a4c2f32c
Merge branch 'hidden-service-dht' of https://github.com/majestrate/llarp
2018-07-13 07:25:20 +00:00
Jeff Becker
5bbaae4e2e
more
2018-07-12 14:21:44 -04:00
Jeff Becker
fe01c38d8e
* fix dht feedback loop
...
* start on dht lookups for hidden services
* make debug logging confurable on runtime with env var LLARP_DEBUG=1
* make eventloop tick only when we get traffic
* make testnet parameters configurable on runtime
2018-07-12 09:43:37 -04:00
Jeff Becker
dfa567e816
Merge remote-tracking branch 'sachaaaa/refactor' into hidden-service-dht
2018-07-09 10:24:44 -04:00
sachaaaaa
33586d385b
clang format
2018-07-09 14:34:28 +10:00
sachaaaaa
c7940076bf
Remove most of the extern "C"
...
remove extern "C"
2018-07-09 14:34:09 +10:00
Ryan Tharp
00e56ecfd2
Merge branch 'hidden-service-dht' of https://github.com/majestrate/llarp
2018-07-08 11:41:44 +00:00
Jeff Becker
21a2ffdeaf
* refactor log functions
...
* add more stuff for hidden service dht
2018-07-05 11:44:06 -04:00
Ryan Tharp
876324fdbc
llarp_main_abort => llarp_logic_stop_timer
2018-07-03 04:25:36 -07:00
Jeff Becker
7d9bffdf9c
make format
2018-06-29 08:15:15 -04:00
Ryan Tharp
b524f19119
fix missing header
2018-06-28 11:40:46 +00:00
Ryan Tharp
d132e3cd10
load config-file from config, llarp_main_getLocalRC(), llarp_main_checkOnline(), llarp_main_queryDHT() refactor
2018-06-28 04:32:26 -07:00
Ryan Tharp
ede0cb4772
Merge branch 'master' of https://github.com/neuroscr/loki-network
2018-06-26 10:08:51 +00:00
Jeff Becker
da22f306e0
* add path building management
...
* fix bug in iwp that caused crash
2018-06-25 11:12:08 -04:00
Ryan Tharp
c31e5795fc
setup() refactor, llarp_main_queryDHT()
2018-06-23 07:56:59 -07:00
Ryan Tharp
2e74bce713
getDatabase and associated functions
2018-06-21 04:11:55 -07:00
Ryan Tharp
51c97d44b3
ReloadConfig refactor, direct nodedb functions
2018-06-19 02:44:53 -07:00
Ryan Tharp
f49bd89a42
Merge branch 'master' of https://github.com/neuroscr/llarp
2018-06-18 01:06:29 -07:00
Ryan Tharp
7cd13b3f89
changed info message
2018-06-18 00:55:06 -07:00
Jeff Becker
54366c040c
make format
2018-06-17 11:26:00 -04:00
Ryan Tharp
087f4c2f02
clean up llarp_nodedb_async_verify api, make setRC save to correct path
2018-06-13 04:40:49 -07:00
Jeff Becker
90611731a5
initial shadow test net
2018-06-06 13:02:57 -04:00
Jeff Becker
e12bd9442f
expose multi process/single process option
2018-06-06 08:49:46 -04:00
Jeff Becker
0278ba559c
add single threaded mode for shadow
2018-06-06 08:46:26 -04:00
Jeff Becker
9816fd65e9
* logging refactor to be concise
...
* don't inline bencode
* refactor initial start of dht code a bit
2018-06-01 13:47:37 -04:00
Jeff Becker
5649d261ae
start fleshing out dht subsystem a bit
2018-06-01 10:08:54 -04:00
Jeff Becker
fe19314484
more stuff
2018-05-30 16:56:47 -04:00
Ryan Tharp
9f2d7f717a
Merge branch 'master' of https://github.com/majestrate/llarp
2018-05-29 12:21:50 +00:00
Ryan Tharp
78007425fd
use FreeBSD API for setting thread names
2018-05-29 05:13:33 -07:00
Jeff Becker
a00a0622d1
more docs
...
more logging
2018-05-28 16:51:15 -04:00
Jeff Becker
02d785d30c
add release targets to makefile for future
...
purge llarp_alloc
colored logging
2018-05-28 09:49:44 -04:00
Jeff Becker
e58bd10b23
add python ffi example wrapper code
2018-05-27 15:13:25 -04:00
Jeff Becker
3f21cc5865
make c api for main
2018-05-27 14:03:10 -04:00
Jeff Becker
4a3a0fc556
make an application context to simplify the main function
2018-05-27 13:44:01 -04:00