Commit Graph

339 Commits

Author SHA1 Message Date
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
Jeff Becker
3d05ac1113
Merge remote-tracking branch 'origin/master' into dev 2018-12-10 09:40:11 -05:00
Jeff Becker
1704c7e234
make cmake install target work and setcap on linux 2018-12-10 09:20:35 -05:00
Michael
30e9dca2e5
Convert llarp_logic to be a C++ class 2018-12-10 14:15:11 +00:00
Jeff Becker
f63045d5a4
Merge remote-tracking branch 'origin/master' into dev 2018-12-05 09:41:35 -05:00
Jeff Becker
1f104881be
unit testing for ptr 2018-12-04 11:52:48 -05:00
Jeff Becker
40678f9019
add dnslib unit test coverage 2018-12-04 11:16:43 -05:00
Jeff Becker
1d1bde2e88
add dnslib 2018-12-03 17:22:59 -05:00
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
2018-12-03 12:24:56 -06:00
Jeff Becker
6c8c32cc2b
disable tests for now 2018-12-03 08:24:45 -05:00
Jeff Becker
472948a610
more dns tweaks 2018-12-01 09:35:11 -05:00
Jeff Becker
34e65a3e9a
correct endian 2018-11-30 09:42:05 -05:00
Jeff Becker
79cffacafd
new exit packet buffer format 2018-11-29 16:19:20 -05:00
Jeff Becker
11372c9544
Merge branch 'dev' into snode-endpoint 2018-11-29 09:34:19 -05:00
Jeff Becker
c1e494c2c4
have llarp_ev_* use llarp_buffer_t 2018-11-23 09:37:26 -05:00
Ryan Tharp
090fac7b4e Merge branch 'master' of https://github.com/loki-project/loki-network 2018-11-22 00:30:58 +00:00
Ryan Tharp
811b8451f5 llarp_buffer_t update 2018-11-21 23:47:11 +00:00
Ryan Tharp
d11ba89fbc Merge branch 'master' of https://github.com/loki-project/loki-network 2018-11-21 23:38:57 +00:00
Michael
6ea0362167
Minor fixes for macOS build 2018-11-21 23:06:57 +00:00
Jeff Becker
67eadff143
node whitelist option via jsonrpc 2018-11-21 12:46:33 -05:00
Ryan Tharp
40522639ce Merge branch 'master' of https://github.com/loki-project/loki-network 2018-11-21 13:39:27 +00:00
Jeff Becker
2bd2815290
don't sign traffic 2018-11-21 07:31:36 -05:00
Ryan Tharp
a9b92628a1 fix unit_test to remove the redundant params from the response functions 2018-11-20 19:51:14 +00:00
Jeff Becker
b543d6243d
Merge branch 'master' into dev 2018-11-20 07:42:17 -05:00
Michael
d750ec0605
Rename logic.h 2018-11-20 00:52:19 +00:00
Michael
0b2ebc83e0
De-C-ify several .h headers 2018-11-19 22:45:37 +00:00
Jeff Becker
4e105f3cd5
add std::optional backport option for cxx11 2018-11-19 11:31:12 -05:00
Jeff Becker
d37daf7996
Merge branch 'master' into dev 2018-11-19 06:57:29 -05:00
despair
c325246beb need to start winsock to use any networking
try fixing this
2018-11-19 04:29:39 -06:00
Jeff Becker
602a883038
add missing include for linux 2018-11-18 07:49:35 -05:00
Jeff Becker
f5ac1b5c0d
Merge branch 'master' into dev 2018-11-18 07:43:13 -05:00
Michael
3c5e3e79f9
Create ThreadPool component with test suite 2018-11-17 21:13:34 +00:00
Michael
8a52bf448e
Create Queue component with test suite 2018-11-17 21:13:34 +00:00
Michael
951a065867
Create QueueManager component with test suite 2018-11-17 21:13:34 +00:00
Jeff Becker
17297837d9
that's dumb af, use std::unique_ptr 2018-11-15 16:47:05 -05:00
Jeff Becker
09945dce62
initial exit/service node comm code with some unit tests (incomplete) 2018-11-12 11:43:40 -05:00
Jeff Becker
fd87f2ac96
purge VLAs from the codebase 2018-11-09 07:25:14 -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
Michael Thorpe
a2d5d80779
Enable warnings as errors
test criteria:
- Built from clean on macOS
2018-11-06 22:48:17 +00:00
Ryan Tharp
5d90cbe895 Merge branch 'master' of https://github.com/loki-project/loki-network 2018-11-03 13:43:21 +00:00
Ryan Tharp
67390de0c2 merge 2018-11-03 06:19:18 -07:00
Jeff Becker
080c0da4a0
remvoe const requirement and update unit tests for jsonrpc server 2018-11-02 14:02:45 -04:00
Jeff Becker
3e84915d47
add timer for test 2018-11-02 13:56:48 -04:00
Jeff Becker
be975b252c
fix freebsd unit test crash 2018-11-02 13:49:01 -04:00
Jeff Becker
f285a0ac3e
update tests 2018-11-02 13:08:01 -04:00
Jeff Becker
2d279e83fd
initial tcp connect for epoll 2018-11-01 08:47:14 -04:00
despair
561c5228d3 fixed race condition in event loop....dns seems to work now :DDD 2018-10-30 07:30:21 -05:00
despair
9afe63d738 polish new build script
pass cxxflags down to c++ driver
2018-10-30 00:18:25 -05:00
despair
5aba9776d0 fix unit test 2018-10-30 00:16:33 -05:00
Jeff Becker
56132f365f
update test 2018-10-29 12:49:09 -04:00
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 2018-10-19 07:53:06 -07:00
Jeff Becker
15c99f3192
unit tests for bogons 2018-10-16 11:25:50 -04:00
Ryan Tharp
fd41f7b3db just make sure everything is initialized, fix typo in testing debug 2018-10-11 12:22:29 +00:00
Ryan Tharp
14ccb2f81e Merge branch 'master' of https://github.com/loki-project/loki-network 2018-10-11 12:21:16 +00:00
Ryan Tharp
da9850f0e3 start of dns unit tests 2018-10-11 04:51:13 -07:00
Jeff
0023c15d0f fix introset expiration 2018-10-10 17:31:03 -04:00
despair86
7f809eb53b fix windows build 2018-10-01 15:06:07 -05:00
Jeff Becker
5fb08c2139
check introset timestamps 2018-09-20 07:27:18 -04:00
despair86
8c7f5547a9 finally enabled gtest on win32
update authorship
2018-09-19 19:43:16 -05:00
Jeff Becker
c3c388b6aa
remove iwp and start on curvecp
does not compile
2018-09-02 14:25:42 -04:00
Jeff Becker
186bd7d573
use NTRU for introset end to end encryption 2018-08-13 19:22:31 -04:00
Jeff Becker
e79708c1dc
hidden services sorta work 2018-08-10 17:34:11 -04:00
Jeff Becker
d511057b7d * logging updates
* nicknames in RC (yw kee)

* spec update

* more hidden service code
2018-08-02 10:48:43 +10:00
Jeff Becker
53b80e8448 remove unused code 2018-07-24 16:39:52 +10:00
Jeff Becker
02ca1796b2 all the files 2018-07-20 14:50:28 +10:00
Jeff Becker
7fbc21207f more hidden service stuff 2018-07-19 14:58:39 +10:00
Jeff Becker
77aadf1d90
more api stuff 2018-07-13 15:26:28 -04:00
Jeff Becker
6ad79b97dc
broken 2018-07-09 13:32:11 -04:00
Jeff Becker
6cb31ecb1a
base32 encoding and unit tests 2018-07-06 12:08:30 -04:00
Jeff Becker
21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
2018-07-05 11:44:06 -04:00
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
2018-06-29 10:25:09 -04:00
Jeff Becker
c88d3860b8
some api code 2018-06-22 20:00:44 -04:00
Jeff Becker
39c63432be
ALMOST got path building working 2018-06-21 20:25:30 -04:00
Jeff Becker
a2d9dc1d93
it does stuff :+DDDDD 2018-06-21 08:55:02 -04:00
Jeff Becker
78f3ca0155
more 2018-06-20 08:34:48 -04:00
Jeff Becker
ccf8574c03
make unit tests work 2018-06-14 10:04:42 -04:00
Jeff Becker
bcb5e4fcbb
axe tests they don't compile 2018-06-01 14:25:21 -04:00
Jeff Becker
8181670bf3
format 2018-04-30 12:14:20 -04:00
Jeff Becker
a7703b0dbc
refactor threadpool 2018-04-30 10:57:13 -04:00
Jeff Becker
8c2bbbb2eb
more 2018-04-04 12:10:27 -04:00
Jeff Becker
284c55f5aa
more optimizations 2018-02-18 13:45:06 -05:00
Jeff Becker
b949e61752
omg optimize 2018-02-15 12:09:27 -05:00
Jeff
43f9be08c8 format 2018-02-01 17:34:04 -05:00
Jeff Becker
212165500d
more 2018-02-01 17:04:58 -05:00
Jeff Becker
ae76b6b376
google format 2018-02-01 08:21:00 -05:00
Jeff Becker
4718281202
awe yeh 2018-01-31 14:59:26 -05:00