Commit Graph

335 Commits

Author SHA1 Message Date
Jeff Becker
e060082441
hook every dns for .loki and .snode when applicable
make {n,h}uint{32,16}_t templated type.
2019-05-01 09:40:10 -04:00
Jeff Becker
fea64eaf12
handle subdomains 2019-04-26 08:14:29 -04:00
Michael
9ee525a006
Fix shadowing warnings 2019-04-26 00:21:19 +01:00
Michael
3a8715d8e4
Fix introset tests 2019-04-23 10:25:03 +01:00
Michael
98e691f315
Tidy up more parts of the service/ directory 2019-04-22 22:28:10 +01:00
Michael
e33a33635c
Remove usage of raw new from service classes 2019-04-22 18:38:29 +01:00
michael-loki
0195152e05 Allow builds on MSVC (#518)
* Import cxxopts to replace getopts usage

* Add visual studio build things

* Fixup abseil build parts

* Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED

* Fixup minor windows build issues

* Replace getopts usage

* Temporarily fixup .rc files

* More minor windows fixes

* Get a working build

* Revert .rc files

* Revert changes to nodedb
2019-04-19 13:24:33 -05:00
Michael
3b5d49e0f8 MetricTank metric collector 2019-04-14 17:18:32 +01:00
Michael
544c5f9b61 Move metrics publishers to their own directory 2019-04-14 17:18:32 +01:00
Jeff
b25b84e672
Merge pull request #514 from majestrate/master
fix integration tests
2019-04-12 11:32:07 -04:00
Jeff Becker
c26145f70e
* fix up integration tests
* make recursive router lookup backtrack
2019-04-12 11:29:48 -04:00
Rick V
b1fa597fa0
include what i use 2019-04-11 10:36:12 -05:00
Jeff Becker
20e398b684
fix exit info 2019-04-08 13:40:51 -04:00
Jeff Becker
2edf1da819
add more android stuff 2019-04-08 10:27:55 -04:00
Jeff Becker
ac69213dd7
unit tests for llarp_ev_pkt_pipe 2019-04-08 10:04:58 -04:00
Jeff Becker
e178a70929
use shared_ptr for event loop 2019-04-08 08:01:52 -04:00
Jeff Becker
c910a2a2fb
more 2019-04-05 10:58:22 -04:00
Michael
efb61da56a
Tidy up libabyss test 2019-04-02 10:03:56 +01:00
Michael
25f10d5b11
Fix more address sanitiser issues 2019-04-02 10:03:53 +01:00
Michael
6b5a688e08
Fix Catalog.Iterator test failure 2019-03-29 22:14:22 +00:00
Michael
561b997c93
Move IWP code to its own directory 2019-03-29 16:00:12 +00:00
Michael
17b39b0ed4
Move UTP code to its own directory 2019-03-29 16:00:12 +00:00
Jeff Becker
230e84c742
make signing work 2019-03-28 15:15:20 -04:00
Jeff Becker
e08986e457
fix previous commit 2019-03-27 09:53:37 -04:00
Jeff Becker
c931ac069f
add AAAA records that return SIIT addresses 2019-03-27 09:36:11 -04:00
Jeff Becker
3a4d8f16a7
more 2019-03-27 08:36:27 -04:00
Michael
8f0f6dde9d
Include What You Use 2019-03-25 23:16:28 +00:00
Michael
f2c5d32399
Metric collection subsystem 2019-03-25 20:36:23 +00:00
Michael
acfff4ca5c
Threading structures for metrics 2019-03-25 20:36:23 +00:00
Rick V
abb9284167
add sun link libs 2019-03-25 12:03:53 -05:00
Rick V
8443c5ab8c
Support abseil on i686-pc-winnt-gnu 2019-03-18 16:13:09 -05:00
Jeff Becker
e042fadf18
forgot test 2019-03-13 16:02:01 -04:00
Jeff Becker
990049f423
make rpc do basic auth and shit like that 2019-03-13 16:01:10 -04:00
Ryan Tharp
75c7c12502 fix linux gcc 7.3 issues, feeling like #include <condition_variable> should be in one of the threading headers tho 2019-03-07 21:45:37 +00:00
Jeff
1a09a12ee0
Merge branch 'staging' into absl_mutex 2019-03-05 17:06:23 -05:00
Jeff Becker
b245453ef6
fix unit test 2019-03-04 11:31:05 -05:00
Michael
61f3273dc4
Add threading annotations and fix potential deadlocks 2019-03-04 00:03:52 +00:00
Michael
c5a129ddff
Convert to use abseil synchronisation primitives 2019-03-03 21:20:38 +00:00
Michael
31441b46dc
Convert from rapidjson to use nlohmann::json 2019-03-02 02:32:50 +00:00
Jeff Becker
71302ee48b
Merge remote-tracking branch 'origin/staging' into fix-libabyss-352 2019-02-27 07:55:38 -05:00
Jeff Becker
f8d6becce8
make whitelist happy 2019-02-27 07:55:26 -05:00
Jeff Becker
ef13ec7499
Merge remote-tracking branch 'origin/staging' into staging 2019-02-26 07:55:27 -05:00
Michael
e6e19369e9
Create Printer - A general-purpose, stateful printer class 2019-02-24 23:46:44 +00:00
Michael
95a5c386fe
Initial type trait work 2019-02-24 23:46:44 +00:00
Michael
b80ecfa4d6
Use string_view for string_view 2019-02-24 23:46:44 +00:00
Michael
13a9f65520
Fully define interface for dht::Context 2019-02-22 15:08:08 +00:00
Michael
4132f883a7
Make libabyss mandatory 2019-02-20 22:08:49 +00:00
Jeff Becker
445ed05b32
make format 2019-02-18 14:44:41 -05:00
Michael
a0125ffe86
Move abyss/json to llarp/util/json 2019-02-15 23:43:26 +00:00
Michael
048fa83c39
Finish replacement of Router with AbstractRouter 2019-02-14 22:31:31 +00:00
Jeff
6144a888c9
Merge pull request #299 from michael-loki/cmake_refactor
Refactor CMakeLists into distinct directories
2019-02-14 08:44:12 -05:00
Michael
ebf2800c3f Fixup windows 2019-02-14 00:22:21 +00:00
Ryan Tharp
5cb15d3a23 fix llvm compile 2019-02-12 23:24:39 -08:00
Michael
656843e9a3
Fix issues on debian 2019-02-12 01:19:38 +00:00
Michael
342cdaddd0
Add support for gtest_add_tests 2019-02-12 01:19:38 +00:00
Michael
1aeacb0043
Refactor CMakeLists into distinct directories 2019-02-12 01:19:37 +00:00
Jeff Becker
46222df421
refactor 2019-02-11 12:14:43 -05:00
Jeff Becker
e1fceb3636
fix it (again) 2019-02-08 17:44:21 -05:00
Jeff
1369c3b23c
Merge pull request #283 from despair86/dev
more windows fixes
2019-02-06 21:10:30 -05:00
Rick V
4c19f562f0
A compromise for C++17 ports.
Remove abseil build config for such targets.
Include headers (which should fall through by definition).
Macintosh can go fuck itself.
2019-02-06 19:53:15 -06:00
Rick V
72d0720da0
use c++17 stl on windows
While the absl:: namespace is aliased to std:: in a
standard win32 build, it also needlessly adds the
library to the build process, only to discard most
of it at link time. This also makes the distinction
between Abseil STL and G++ STL more explicit, to avoid
some forms of confusion.

From the product page:
"...We think not: if you look at the preprocessor conditional
structure in our string_view.h you'll see that we are trying
to identify whether your C++ installation has std::string_view.
If you do, absl::string_view is defined only as an alias to the
standard type. If you don't, you get a C++11/C++14 compatible
implementation of the type. This means you can adopt Abseil,
and for types we are b you can use the type from the absl
namespace. As soon as your project is built with the appropriate
compiler/standard library version, we'll fall away and leave you
with the standard type, albeit spelled funny. Better: as soon as
you know that your project will only build with the appropriate
language version you can run tools that we will provide to change
the places that refer to absl::string_view to spell it std::string_view
-- since those are the same type, this is safe to do, even across
API boundaries.

So, one reason you might want to adopt Abseil: early access to facilities
from upcoming C++ standard library releases, with a clear migration path."
2019-02-06 19:53:14 -06:00
Rick V
ea7301fecf
finally unfuck windows bits 2019-02-06 19:53:12 -06:00
Rick V
69189214e0
rebase on current upstream staging 2019-02-06 19:53:12 -06:00
Rick V
3931b7d9d7
implement missing libabyss functionality
remove some finished TODOs
2019-02-06 19:53:11 -06:00
Rick V
7f52c9eae7
restore gtest win32 patch (stripped during gtest rebase)
enable lokinet shared library on win32

TODO: define an API to expose from this library
currently, it resorts to exporting *everything*
including system implementation details that otherwise
should remain hidden out of sight
(i.e. the winsock2 load stubs for new socket API, or entire libstdc++ classes!)
2019-02-06 19:53:09 -06:00
Rick V
f277f368a1
win32 g++ is set to c++17 by default, so we use the _real_ string_view class 2019-02-06 19:53:06 -06:00
Michael
6d8d910aff
Refactor and add tests for bits.hpp 2019-02-07 00:23:22 +00:00
Michael
729cd045f1
Convert llarp::Router into an abstract base class 2019-02-06 09:59:47 +00:00
Ryan Tharp
5ab048c95d macos llvm fix 2019-02-05 15:48:00 -08:00
Ryan Tharp
5769e5c716
Merge pull request #259 from michael-loki/more_dht_tests
More dht tests
2019-02-05 14:06:29 -08:00
Ryan Tharp
6446074881
Merge pull request #267 from michael-loki/abseil
Import abseil LTS 20181200
2019-02-05 14:06:02 -08:00
Michael
40e85f0f69
Tests for dht::RCNode and dht::ISNode 2019-02-05 21:35:46 +00:00
Michael
1ba6507a2f
Tests for dht::ServiceAddressLookup 2019-02-05 21:35:46 +00:00
Michael
b1213c7a7c
Tests for dht::TagLookup 2019-02-05 21:18:38 +00:00
Jeff Becker
b6c5b413b1
don't install gtest 2019-02-05 08:13:37 -05:00
Michael
6055829df4
Remove tl::optional and use absl::optional always 2019-02-03 02:13:31 +00:00
Michael
7ca3e13e78
Rename to ManagedBuffer 2019-02-03 00:48:10 +00:00
Michael
47380ba64b
Simplify some code 2019-02-03 00:31:10 +00:00
Michael
f3b0af9d2f
Create CopyableBuffer type 2019-02-02 23:21:35 +00:00
Michael
2de621b0ad
Disable copy constructing llarp_buffer_t 2019-02-01 01:58:13 +00:00
Ryan Tharp
c3bf68b502
Merge branch 'staging' into dht_tests 2019-01-29 13:59:54 -08:00
Ryan Tharp
f20ac0f6e9
Merge branch 'staging' into crypto_interface 2019-01-29 13:59:05 -08:00
Ryan Tharp
42873a088f fix build 2019-01-29 03:11:00 -08:00
Michael
f24f554a01
Convert llarp::Crypto into an abstract base class 2019-01-26 15:40:58 +00:00
Michael
1f95f1e78f
More unit tests of dht internals 2019-01-26 00:40:40 +00:00
Michael
f4e0cb2d4b
Import latest gtest from upstream - commit 569fba4d742b67753b5374b6686170afb74acb0c 2019-01-23 22:16:21 +00:00
Jeff Becker
cbfbdc506d
Merge branch 'staging' of ssh://github.com/loki-project/loki-network into staging 2019-01-23 12:33:00 -05:00
Ryan Tharp
31f196a6eb
Merge pull request #236 from michael-loki/dht_tests
Add test suites for dht bucket, kademlia and key
2019-01-22 15:15:22 -08:00
Jeff Becker
9991d17976
Merge branch 'staging' into use-lokid-seed 2019-01-22 12:24:19 -05:00
Jeff Becker
3b76182ee6
fix whitespace parsing 2019-01-22 10:16:35 -05:00
Jeff Becker
fe1245d82e
add note 2019-01-22 09:18:08 -05:00
Jeff Becker
465a3d3e43
redo ini parser 2019-01-22 09:13:26 -05:00
Jeff Becker
d89e58199a
add initial identity key seed stuff
add more kubernetes stuff

make shared library installed if built
2019-01-21 10:45:18 -05:00
Michael
ccb5f6b696
Add tests for dht::TXOwnere 2019-01-19 18:16:40 +00:00
Michael
03d56c1591
Add test suites for dht bucket, kademlia and key 2019-01-19 01:41:14 +00:00
Ryan Tharp
2e4ad12a87 Merge branch 'staging' of https://github.com/loki-project/loki-network 2019-01-17 21:14:01 +00:00
Jeff Becker
6064ff5a68
try fixing unit tests 2019-01-17 10:11:17 -05:00
Ryan Tharp
1ba5b75082 Merge branch 'master' of https://github.com/neuroscr/loki-network 2019-01-16 21:25:37 +00:00
Ryan Tharp
be24a2c235 clang-format and make xcode happy 2019-01-16 13:13:01 -08:00
Michael
26a66ce013
Add missing header for libabyss tests 2019-01-15 23:45:13 +00:00
Michael
fec75125f4
Add tests for crypto/types 2019-01-15 23:33:16 +00:00
Michael
da6cdfc0b2
More refactoring to continue to make dependency graph acylic 2019-01-15 23:15:44 +00:00
Michael
79157414f3
Split crypto.hpp into 3 different files 2019-01-13 16:32:51 +00:00
Michael
04e0fe3ad7
Move crypto code to a subdirectory 2019-01-13 15:06:16 +00:00
Michael
70a55612eb
Create initial set of test cases for llarp_findOrCreate* functions 2019-01-12 00:42:30 +00:00
Michael
b1ffdba7ba
Build with libabyss 2019-01-11 01:59:44 +00:00
Michael
a3463120cc
Move net components into a distinct folder 2019-01-11 01:42:02 +00:00
Michael
081d4dfa32
Reorganise source into more folders 2019-01-11 01:19:49 +00:00
Michael
fa2b466ffe
Reorganise tests to mirror source layout 2019-01-11 00:12:52 +00:00
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library 2019-01-10 20:07:24 +00:00
Michael
167d5aca6d
Add test suite for bencode 2019-01-10 17:43:33 +00:00
Jeff Becker
279983019c
make it compile 2019-01-10 07:38:06 -05:00
Jeff Becker
6206fb2a41
Merge branch 'datagram' into staging 2019-01-10 07:30:21 -05:00
Jeff Becker
69a0c3ee54
more 2019-01-05 08:45:57 -05:00
Jeff Becker
e88c39b9e2
more work 2019-01-05 08:45:05 -05:00
Michael
535c65ca52
Fix RCTest dependency ordering 2019-01-05 00:49:06 +00:00
Michael
a54b9a2dc4
Fix UTPTest test failures 2019-01-03 21:54:26 +00:00
Michael
be2354663d
Fix RCTest.TestSignVerify 2019-01-02 22:21:29 +00:00
Jeff Becker
2474cf343e
dtls branch 2019-01-02 09:14:02 -05:00
Michael
516466f5be
Mark more AlignedBuffer constructors as explicit 2019-01-02 01:04:08 +00:00
Michael
7dd40015f3
Mark AlignedBuffer constructor as explicit 2019-01-02 01:04:06 +00:00
Michael
ea19093a20
Remove const byte* conversion operators from llarp::AlignedBuffer 2019-01-02 01:04:04 +00:00
Michael
1410d0a0cf
Remove byte* conversion operators from llarp::AlignedBuffer 2019-01-02 01:04:03 +00:00
Michael
334161c9bb
Remove data() conversions from llarp::AlignedBuffer 2019-01-02 01:03:53 +00:00
Michael
8f053106e6
Add tests for llarp::dht::Key_t 2018-12-30 18:56:34 +00:00
Jeff Becker
180ca69d02
fix issue #185 2018-12-28 10:04:05 -05:00
Jeff Becker
0fd36d3b79
make netid configurable on runtime
bump version to 0.4.0

subscribe to pewdiepie
2018-12-21 08:08:01 -05:00
Jeff Becker
7350120a8a
Merge branch 'staging' of ssh://github.com/loki-project/loki-network into staging 2018-12-21 07:54:17 -05:00
Jeff Becker
b0d758d9af
fix unit test for json rpc, make it stop crashing 2018-12-21 07:54:02 -05:00
Michael
2bf882f8eb
Fix first of UTP tests on !linux 2018-12-20 18:30:15 +00:00
Jeff Becker
8c8172aeb1
Merge remote-tracking branch 'origin/master' into dev 2018-12-20 12:56:08 -05:00
Jeff Becker
3e37165749
Merge remote-tracking branch 'origin/master' 2018-12-20 12:23:01 -05:00
Jeff Becker
259283f3c4
make it compile 2018-12-20 12:14:21 -05:00
Jeff Becker
e7f5eeff51
use fewer allocations 2018-12-20 11:49:05 -05:00
Michael
ba95767f57
Add tests for alignedbuffer 2018-12-20 16:16:18 +00:00
Jeff Becker
cca19290de
session renegotiation, RC expiration, more utp unit tests, network isolation. 2018-12-19 11:17:41 -05:00
Jeff Becker
e58f2c521e
done for the day 2018-12-17 17:43:16 -05:00
Jeff Becker
b39c46fc03
!!! this breaks backwards compat :^) !!!
redo link protocol to use 2 session keys, add unit tests.
2018-12-17 15:46:08 -05:00
Jeff Becker
e875840399
move stuff out of C header 2018-12-13 16:28:50 -05:00
Jeff Becker
09e01adf32
flush snode traffic queues 2018-12-12 13:37:03 -05:00
Michael
85dde7b6b0
Move remaining include/llarp headers to llarp/ 2018-12-12 02:53:02 +00:00
Michael
e887b4e9c7
Move service* to llarp/ 2018-12-12 02:53:01 +00:00
Michael
a5c3ba0fdd
Move logger.hpp to llarp/ 2018-12-12 02:53:01 +00:00
Michael
0a08e53bde
Move exit* to llarp/ 2018-12-12 02:53:01 +00:00
Michael
2d4f7c6b2d
Move encode.hpp to llarp/ 2018-12-12 02:53:01 +00:00
Michael
d9ce493a9e
Move dns* to llarp/ 2018-12-12 02:53:01 +00:00
Michael
fddc8734d2
Move dht* to llarp/ 2018-12-12 02:53:01 +00:00
Michael
451bbedfaf
Move crypto.hpp to llarp/ 2018-12-12 02:53:01 +00:00
Michael
7be452092c
Convert llarp_crypto to be a true C++ class 2018-12-11 00:53:55 +00:00
Michael
f0fce5b68a
Convert llarp_router to be a true C++ class 2018-12-10 20:15:35 +00:00