Commit Graph

614 Commits (dev)

Author SHA1 Message Date
Michael 17b39b0ed4
Move UTP code to its own directory 5 years ago
Jeff Becker 230e84c742
make signing work 5 years ago
Jeff Becker e08986e457
fix previous commit 5 years ago
Jeff Becker c931ac069f
add AAAA records that return SIIT addresses 5 years ago
Jeff Becker 3a4d8f16a7
more 5 years ago
Michael 8f0f6dde9d
Include What You Use 5 years ago
Michael f2c5d32399
Metric collection subsystem 5 years ago
Michael acfff4ca5c
Threading structures for metrics 5 years ago
Rick V abb9284167
add sun link libs 5 years ago
Rick V 8443c5ab8c
Support abseil on i686-pc-winnt-gnu 5 years ago
Jeff Becker e042fadf18
forgot test 5 years ago
Jeff Becker 990049f423
make rpc do basic auth and shit like that 5 years ago
Ryan Tharp 75c7c12502 fix linux gcc 7.3 issues, feeling like #include <condition_variable> should be in one of the threading headers tho 5 years ago
Jeff 1a09a12ee0
Merge branch 'staging' into absl_mutex 5 years ago
Jeff Becker b245453ef6
fix unit test 5 years ago
Michael 61f3273dc4
Add threading annotations and fix potential deadlocks 5 years ago
Michael c5a129ddff
Convert to use abseil synchronisation primitives 5 years ago
Michael 31441b46dc
Convert from rapidjson to use nlohmann::json 5 years ago
Jeff Becker 71302ee48b
Merge remote-tracking branch 'origin/staging' into fix-libabyss-352 5 years ago
Jeff Becker f8d6becce8
make whitelist happy 5 years ago
Jeff Becker ef13ec7499
Merge remote-tracking branch 'origin/staging' into staging 5 years ago
Michael e6e19369e9
Create Printer - A general-purpose, stateful printer class 5 years ago
Michael 95a5c386fe
Initial type trait work 5 years ago
Michael b80ecfa4d6
Use string_view for string_view 5 years ago
Michael 13a9f65520
Fully define interface for dht::Context 5 years ago
Michael 4132f883a7
Make libabyss mandatory 5 years ago
Jeff Becker 445ed05b32
make format 5 years ago
Michael a0125ffe86
Move abyss/json to llarp/util/json 5 years ago
Michael 048fa83c39
Finish replacement of Router with AbstractRouter 5 years ago
Jeff 6144a888c9
Merge pull request #299 from michael-loki/cmake_refactor
Refactor CMakeLists into distinct directories
5 years ago
Michael ebf2800c3f Fixup windows 5 years ago
Ryan Tharp 5cb15d3a23 fix llvm compile 5 years ago
Michael 656843e9a3
Fix issues on debian 5 years ago
Michael 342cdaddd0
Add support for gtest_add_tests 5 years ago
Michael 1aeacb0043
Refactor CMakeLists into distinct directories 5 years ago
Jeff Becker 46222df421
refactor 5 years ago
Jeff Becker e1fceb3636
fix it (again) 5 years ago
Jeff 1369c3b23c
Merge pull request #283 from despair86/dev
more windows fixes
5 years ago
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.
5 years ago
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."
5 years ago
Rick V ea7301fecf
finally unfuck windows bits 5 years ago
Rick V 69189214e0
rebase on current upstream staging 5 years ago
Rick V 3931b7d9d7
implement missing libabyss functionality
remove some finished TODOs
5 years ago
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!)
5 years ago
Rick V f277f368a1
win32 g++ is set to c++17 by default, so we use the _real_ string_view class 5 years ago
Michael 6d8d910aff
Refactor and add tests for bits.hpp 5 years ago
Michael 729cd045f1
Convert llarp::Router into an abstract base class 5 years ago
Ryan Tharp 5ab048c95d macos llvm fix 5 years ago
Ryan Tharp 5769e5c716
Merge pull request #259 from michael-loki/more_dht_tests
More dht tests
5 years ago
Ryan Tharp 6446074881
Merge pull request #267 from michael-loki/abseil
Import abseil LTS 20181200
5 years ago
Michael 40e85f0f69
Tests for dht::RCNode and dht::ISNode 5 years ago
Michael 1ba6507a2f
Tests for dht::ServiceAddressLookup 5 years ago
Michael b1213c7a7c
Tests for dht::TagLookup 5 years ago
Jeff Becker b6c5b413b1
don't install gtest 5 years ago
Michael 6055829df4
Remove tl::optional and use absl::optional always 5 years ago
Michael 7ca3e13e78
Rename to ManagedBuffer 5 years ago
Michael 47380ba64b
Simplify some code 5 years ago
Michael f3b0af9d2f
Create CopyableBuffer type 5 years ago
Michael 2de621b0ad
Disable copy constructing llarp_buffer_t 5 years ago
Ryan Tharp c3bf68b502
Merge branch 'staging' into dht_tests 5 years ago
Ryan Tharp f20ac0f6e9
Merge branch 'staging' into crypto_interface 5 years ago
Ryan Tharp 42873a088f fix build 5 years ago
Michael f24f554a01
Convert llarp::Crypto into an abstract base class 5 years ago
Michael 1f95f1e78f
More unit tests of dht internals 5 years ago
Michael f4e0cb2d4b
Import latest gtest from upstream - commit 569fba4d742b67753b5374b6686170afb74acb0c 5 years ago
Jeff Becker cbfbdc506d
Merge branch 'staging' of ssh://github.com/loki-project/loki-network into staging 5 years ago
Ryan Tharp 31f196a6eb
Merge pull request #236 from michael-loki/dht_tests
Add test suites for dht bucket, kademlia and key
5 years ago
Jeff Becker 9991d17976
Merge branch 'staging' into use-lokid-seed 5 years ago
Jeff Becker 3b76182ee6
fix whitespace parsing 5 years ago
Jeff Becker fe1245d82e
add note 5 years ago
Jeff Becker 465a3d3e43
redo ini parser 5 years ago
Jeff Becker d89e58199a
add initial identity key seed stuff
add more kubernetes stuff

make shared library installed if built
5 years ago
Michael ccb5f6b696
Add tests for dht::TXOwnere 5 years ago
Michael 03d56c1591
Add test suites for dht bucket, kademlia and key 5 years ago
Ryan Tharp 2e4ad12a87 Merge branch 'staging' of https://github.com/loki-project/loki-network 5 years ago
Jeff Becker 6064ff5a68
try fixing unit tests 5 years ago
Ryan Tharp 1ba5b75082 Merge branch 'master' of https://github.com/neuroscr/loki-network 5 years ago
Ryan Tharp be24a2c235 clang-format and make xcode happy 5 years ago
Michael 26a66ce013
Add missing header for libabyss tests 5 years ago
Michael fec75125f4
Add tests for crypto/types 5 years ago
Michael da6cdfc0b2
More refactoring to continue to make dependency graph acylic 5 years ago
Michael 79157414f3
Split crypto.hpp into 3 different files 5 years ago
Michael 04e0fe3ad7
Move crypto code to a subdirectory 5 years ago
Michael 70a55612eb
Create initial set of test cases for llarp_findOrCreate* functions 5 years ago
Michael b1ffdba7ba
Build with libabyss 5 years ago
Michael a3463120cc
Move net components into a distinct folder 5 years ago
Michael 081d4dfa32
Reorganise source into more folders 5 years ago
Michael fa2b466ffe
Reorganise tests to mirror source layout 5 years ago
Michael e5eda0fb8f
Move lokinet unspecific components to a util/ library 5 years ago
Michael 167d5aca6d
Add test suite for bencode 5 years ago
Jeff Becker 279983019c
make it compile 5 years ago
Jeff Becker 6206fb2a41
Merge branch 'datagram' into staging 5 years ago
Jeff Becker 69a0c3ee54
more 5 years ago
Jeff Becker e88c39b9e2
more work 5 years ago
Michael 535c65ca52
Fix RCTest dependency ordering 5 years ago
Michael a54b9a2dc4
Fix UTPTest test failures 5 years ago
Michael be2354663d
Fix RCTest.TestSignVerify 5 years ago
Jeff Becker 2474cf343e
dtls branch 5 years ago
Michael 516466f5be
Mark more AlignedBuffer constructors as explicit 5 years ago
Michael 7dd40015f3
Mark AlignedBuffer constructor as explicit 5 years ago
Michael ea19093a20
Remove const byte* conversion operators from llarp::AlignedBuffer 5 years ago
Michael 1410d0a0cf
Remove byte* conversion operators from llarp::AlignedBuffer 5 years ago
Michael 334161c9bb
Remove data() conversions from llarp::AlignedBuffer 5 years ago
Michael 8f053106e6
Add tests for llarp::dht::Key_t 6 years ago
Jeff Becker 180ca69d02
fix issue #185 6 years ago
Jeff Becker 0fd36d3b79
make netid configurable on runtime
bump version to 0.4.0

subscribe to pewdiepie
6 years ago
Jeff Becker 7350120a8a
Merge branch 'staging' of ssh://github.com/loki-project/loki-network into staging 6 years ago
Jeff Becker b0d758d9af
fix unit test for json rpc, make it stop crashing 6 years ago
Michael 2bf882f8eb
Fix first of UTP tests on !linux 6 years ago
Jeff Becker 8c8172aeb1
Merge remote-tracking branch 'origin/master' into dev 6 years ago
Jeff Becker 3e37165749
Merge remote-tracking branch 'origin/master' 6 years ago
Jeff Becker 259283f3c4
make it compile 6 years ago
Jeff Becker e7f5eeff51
use fewer allocations 6 years ago
Michael ba95767f57
Add tests for alignedbuffer 6 years ago
Jeff Becker cca19290de
session renegotiation, RC expiration, more utp unit tests, network isolation. 6 years ago
Jeff Becker e58f2c521e
done for the day 6 years ago
Jeff Becker b39c46fc03
!!! this breaks backwards compat :^) !!!
redo link protocol to use 2 session keys, add unit tests.
6 years ago
Jeff Becker e875840399
move stuff out of C header 6 years ago
Jeff Becker 09e01adf32
flush snode traffic queues 6 years ago
Michael 85dde7b6b0
Move remaining include/llarp headers to llarp/ 6 years ago
Michael e887b4e9c7
Move service* to llarp/ 6 years ago
Michael a5c3ba0fdd
Move logger.hpp to llarp/ 6 years ago
Michael 0a08e53bde
Move exit* to llarp/ 6 years ago
Michael 2d4f7c6b2d
Move encode.hpp to llarp/ 6 years ago
Michael d9ce493a9e
Move dns* to llarp/ 6 years ago
Michael fddc8734d2
Move dht* to llarp/ 6 years ago
Michael 451bbedfaf
Move crypto.hpp to llarp/ 6 years ago
Michael 7be452092c
Convert llarp_crypto to be a true C++ class 6 years ago
Michael f0fce5b68a
Convert llarp_router to be a true C++ class 6 years ago
Jeff Becker 3d05ac1113
Merge remote-tracking branch 'origin/master' into dev 6 years ago
Jeff Becker 1704c7e234
make cmake install target work and setcap on linux 6 years ago
Michael 30e9dca2e5
Convert llarp_logic to be a C++ class 6 years ago
Jeff Becker f63045d5a4
Merge remote-tracking branch 'origin/master' into dev 6 years ago
Jeff Becker 1f104881be
unit testing for ptr 6 years ago
Jeff Becker 40678f9019
add dnslib unit test coverage 6 years ago
Jeff Becker 1d1bde2e88
add dnslib 6 years ago
despair d26141d433 Merge branch 'dev' into reeeee-divergence
ok hope this works -rick

# Conflicts:
#	.gitignore
#	.vscode/settings.json
#	include/llarp/service/context.hpp
#	llarp/dns.cpp
#	llarp/dnsc.cpp
#	llarp/ev.cpp
#	llarp/ev.hpp
#	llarp/ev_win32.hpp
#	llarp/net.cpp
#	llarp/router.cpp
#	llarp/router.hpp
#	llarp/service/context.cpp
6 years ago
Jeff Becker 6c8c32cc2b
disable tests for now 6 years ago
Jeff Becker 472948a610
more dns tweaks 6 years ago
Jeff Becker 34e65a3e9a
correct endian 6 years ago
Jeff Becker 79cffacafd
new exit packet buffer format 6 years ago
Jeff Becker 11372c9544
Merge branch 'dev' into snode-endpoint 6 years ago
Jeff Becker c1e494c2c4
have llarp_ev_* use llarp_buffer_t 6 years ago
Ryan Tharp 090fac7b4e Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp 811b8451f5 llarp_buffer_t update 6 years ago
Ryan Tharp d11ba89fbc Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Michael 6ea0362167
Minor fixes for macOS build 6 years ago
Jeff Becker 67eadff143
node whitelist option via jsonrpc 6 years ago
Ryan Tharp 40522639ce Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Jeff Becker 2bd2815290
don't sign traffic 6 years ago
Ryan Tharp a9b92628a1 fix unit_test to remove the redundant params from the response functions 6 years ago
Jeff Becker b543d6243d
Merge branch 'master' into dev 6 years ago
Michael d750ec0605
Rename logic.h 6 years ago
Michael 0b2ebc83e0
De-C-ify several .h headers 6 years ago
Jeff Becker 4e105f3cd5
add std::optional backport option for cxx11 6 years ago
Jeff Becker d37daf7996
Merge branch 'master' into dev 6 years ago
despair c325246beb need to start winsock to use any networking
try fixing this
6 years ago
Jeff Becker 602a883038
add missing include for linux 6 years ago
Jeff Becker f5ac1b5c0d
Merge branch 'master' into dev 6 years ago
Michael 3c5e3e79f9
Create ThreadPool component with test suite 6 years ago
Michael 8a52bf448e
Create Queue component with test suite 6 years ago
Michael 951a065867
Create QueueManager component with test suite 6 years ago
Jeff Becker 17297837d9
that's dumb af, use std::unique_ptr 6 years ago
Jeff Becker 09945dce62
initial exit/service node comm code with some unit tests (incomplete) 6 years ago
Jeff Becker fd87f2ac96
purge VLAs from the codebase 6 years ago
Michael Thorpe 33bfaf7ecd
Enable -Wextra
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
6 years ago
Michael Thorpe a2d5d80779
Enable warnings as errors
test criteria:
- Built from clean on macOS
6 years ago
Ryan Tharp 5d90cbe895 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp 67390de0c2 merge 6 years ago
Jeff Becker 080c0da4a0
remvoe const requirement and update unit tests for jsonrpc server 6 years ago
Jeff Becker 3e84915d47
add timer for test 6 years ago
Jeff Becker be975b252c
fix freebsd unit test crash 6 years ago
Jeff Becker f285a0ac3e
update tests 6 years ago
Jeff Becker 2d279e83fd
initial tcp connect for epoll 6 years ago
despair 561c5228d3 fixed race condition in event loop....dns seems to work now :DDD 6 years ago
despair 9afe63d738 polish new build script
pass cxxflags down to c++ driver
6 years ago
despair 5aba9776d0 fix unit test 6 years ago
Jeff Becker 56132f365f
update test 6 years ago
Ryan Tharp 3b24b69513 TunEndpoint::ObtainAddrForIP(), identity tun range better, actually return revdns for tunmapaddrs, make in-addr.arpa matching smarter, actually send 404s, additional unit test 6 years ago
Jeff Becker 15c99f3192
unit tests for bogons 6 years ago
Ryan Tharp fd41f7b3db just make sure everything is initialized, fix typo in testing debug 6 years ago
Ryan Tharp 14ccb2f81e Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp da9850f0e3 start of dns unit tests 6 years ago
Jeff 0023c15d0f fix introset expiration 6 years ago
despair86 7f809eb53b fix windows build 6 years ago
Jeff Becker 5fb08c2139
check introset timestamps 6 years ago
despair86 8c7f5547a9 finally enabled gtest on win32
update authorship
6 years ago
Jeff Becker c3c388b6aa
remove iwp and start on curvecp
does not compile
6 years ago
Jeff Becker 186bd7d573
use NTRU for introset end to end encryption 6 years ago
Jeff Becker e79708c1dc
hidden services sorta work 6 years ago
Jeff Becker d511057b7d * logging updates
* nicknames in RC (yw kee)

* spec update

* more hidden service code
6 years ago
Jeff Becker 53b80e8448 remove unused code 6 years ago
Jeff Becker 02ca1796b2 all the files 6 years ago
Jeff Becker 7fbc21207f more hidden service stuff 6 years ago
Jeff Becker 77aadf1d90
more api stuff 6 years ago
Jeff Becker 6ad79b97dc
broken 6 years ago
Jeff Becker 6cb31ecb1a
base32 encoding and unit tests 6 years ago
Jeff Becker 21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
6 years ago
Jeff Becker 18b50f4a74
* implement path transfer message
* update dht docs
* update other docs
* start working on dht for hidden services
* fix up unit tests for dht
* update makefile and other build files
6 years ago
Jeff Becker c88d3860b8
some api code 6 years ago
Jeff Becker 39c63432be
ALMOST got path building working 6 years ago
Jeff Becker a2d9dc1d93
it does stuff :+DDDDD 6 years ago
Jeff Becker 78f3ca0155
more 6 years ago
Jeff Becker ccf8574c03
make unit tests work 6 years ago
Jeff Becker bcb5e4fcbb
axe tests they don't compile 6 years ago
Jeff Becker 8181670bf3
format 6 years ago
Jeff Becker a7703b0dbc
refactor threadpool 6 years ago
Jeff Becker 8c2bbbb2eb
more 6 years ago
Jeff Becker 284c55f5aa
more optimizations 6 years ago
Jeff Becker b949e61752
omg optimize 6 years ago
Jeff 43f9be08c8 format 6 years ago
Jeff Becker 212165500d
more 6 years ago
Jeff Becker ae76b6b376
google format 6 years ago
Jeff Becker 4718281202
awe yeh 6 years ago