Commit Graph

141 Commits

Author SHA1 Message Date
Michael
7cb1b525c9
Dump more info from router contact 2019-08-19 23:25:46 +01:00
Michael
777261cb20
Use ToString over ToHex 2019-08-19 22:26:37 +01:00
Michael
094b697b01
Replace StatusObject with underlying JSON type 2019-08-19 10:33:26 +01:00
Michael
4763888d2c
Add fail-able docker build for gcc trunk 2019-08-02 10:28:09 +01:00
Thomas Winget
baf8019fe5 Refactor Router code into more classes
This commit refactors functionality from the Router class into separate,
dedicated classes.
There are a few behavior changes that came as a result of discussion on
what the correct behavior should be.
In addition, many things Router was previously doing can now be provided
callback functions to alert the calling point when the asynchronous
action completes, successfully or otherwise.
2019-07-25 14:11:02 -04:00
Jeff Becker
16e20a9e79
try fixing bootstrap 2019-07-15 12:56:09 -04:00
Jeff Becker
58005c5f81
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-08 10:17:21 -04:00
Michael
a2326efa37
Revert "Merge pull request #679 from tewinget/revert-config-refactor"
This reverts commit 2996a7f29c, reversing
changes made to 10df3bd4b3.
2019-07-06 14:46:25 +01:00
Thomas Winget
d044d60101 Reverts #678 #677 and #669 with hashes:
10df3bd
766ece8
979f095

See those commits for further details
2019-07-02 11:02:20 -04:00
Michael
b51f7d8015
Convert to load config in config loader 2019-07-02 01:58:39 +01:00
Jeff Becker
ba6f9ed2d7
continue using llarp::openfilestream 2019-06-24 12:51:29 -04:00
Jeff Becker
54a098356d
continue using llarp::openfilestream 2019-06-24 12:39:03 -04:00
Jeff Becker
389c414ee3
add handover window to router contact updating 2019-06-17 10:02:12 -04:00
Jeff Becker
9ec41b8831
update RC expiration logic, lookup more often and remove stale entries 2019-06-10 08:47:21 -04:00
Jeff Becker
c2803e3020
fix 2019-06-04 09:29:16 -04:00
Jeff Becker
cacc73db7b
add rc expiration (again) 2019-06-04 09:19:45 -04:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers 2019-05-28 20:45:08 +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
Jeff Becker
20e398b684
fix exit info 2019-04-08 13:40:51 -04:00
Michael
e4cf1f245c
Convert most of llarp to use Printer 2019-02-24 23:46:44 +00:00
Michael
a00d6afc5e
Convert llarp_buffer_t to be a class with methods 2019-02-17 13:09:48 +00:00
Jeff Becker
62c200c6fa
disable rc expiration 2019-02-11 12:26:52 -05:00
Jeff Becker
46222df421
refactor 2019-02-11 12:14:43 -05:00
Jeff Becker
e1522faeaa
add introspection rpc endpoint 2019-02-08 14:43:25 -05:00
Michael
24066ea9e0
Fix warning on macOS 2019-02-05 21:18:38 +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
ac2c1ad434 another build fix 2019-01-29 03:11:54 -08:00
Jeff Becker
7bc0b5f82b
try addressing issue #233 2019-01-24 10:13:41 -05:00
Jeff Becker
1e0d82848f
revert to use u instead of t for timestamp in RC for backwards compat reasons 2019-01-24 08:18:15 -05:00
Rick V
828c5d36f7
remove extra braces 2019-01-22 18:17:03 -06:00
Jeff Becker
6064ff5a68
try fixing unit tests 2019-01-17 10:11:17 -05:00
Michael
04e0fe3ad7
Move crypto code to a subdirectory 2019-01-13 15:06:16 +00:00
Michael
a3463120cc
Move net components into a distinct folder 2019-01-11 01:42:02 +00:00
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library 2019-01-10 20:07:24 +00:00
Michael
535c65ca52
Fix RCTest dependency ordering 2019-01-05 00:49:06 +00:00
Michael
be2354663d
Fix RCTest.TestSignVerify 2019-01-02 22:21:29 +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
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
6fc42dc7ad
fixes 2018-12-19 12:48:29 -05:00
Jeff Becker
c025755b99
make lifetime smaller for test networks 2018-12-19 11:19:16 -05:00
Jeff Becker
cca19290de
session renegotiation, RC expiration, more utp unit tests, network isolation. 2018-12-19 11:17:41 -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
Michael
85dde7b6b0
Move remaining include/llarp headers to llarp/ 2018-12-12 02:53:02 +00:00
Michael
b92ea0521b
Move router_contact.hpp 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
Jeff Becker
38c9633ca2
make bootstrap happen only when we have very few nodes
add strict-connect option
2018-11-28 09:58:38 -05:00
Michael
e39d02ddc2
Rename version.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
d3278946f2
ipv4 bogon checking 2018-10-15 08:02:32 -04:00
Jeff
a1d1518bc0 update logging to use human readable time 2018-10-08 07:56:17 -04:00
Jeff Becker
b23dab09fb
don't overwrite our RC, hide parameter. 2018-09-09 07:23:21 -04:00
Jeff Becker
60d5277351
broken 2018-09-06 07:46:19 -04:00
Jeff Becker
4e693a2414
make signatures work again ;~; 2018-08-31 09:51:24 -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
Jeff Becker
b6ec1e94db
only write nickname if present in rc 2018-08-09 11:36:58 -04:00
Jeff Becker
f8e3ef16b9 correct typo 2018-08-02 10:53:14 +10: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
Ryan Tharp
cfb69224b5 Merge branch 'master' of https://github.com/neuroscr/loki-network 2018-07-13 07:54:27 +00:00
Jeff Becker
dfa567e816
Merge remote-tracking branch 'sachaaaa/refactor' into hidden-service-dht 2018-07-09 10:24:44 -04:00
sachaaaaa
c7940076bf Remove most of the extern "C"
remove extern "C"
2018-07-09 14:34:09 +10:00
Ryan Tharp
3a21ca604f llarp_rc_new to initialize properties correctly 2018-07-08 06:26:24 -07:00
Jeff Becker
21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
2018-07-05 11:44:06 -04:00
Jeff Becker
4ca34995bf
add inbound server connections to DHT 2018-07-03 09:13:56 -04:00
Jeff Becker
a2d9dc1d93
it does stuff :+DDDDD 2018-06-21 08:55:02 -04:00
Jeff Becker
d5fe7623fc
more dht stuff 2018-06-13 12:32:34 -04:00
Jeff Becker
0d9025bc7d
Merge remote-tracking branch 'ryan/master' into dev 2018-06-13 07:31:34 -04:00
Jeff Becker
d2700f818b
comply with spec
update spec
2018-06-12 08:49:23 -04:00
Jeff Becker
a8ab66f4f8
refactor to use AlignedBuffer for public key, shared secret, nonce, secret key etc 2018-06-12 07:57:14 -04:00
Jeff Becker
ec53cab169
more onion routing stuff 2018-06-10 10:05:48 -04:00
Ryan Tharp
3f6a5c4ca5 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-01 21:55:48 +00:00
Jeff Becker
620b9616a6
initial dht implementation 2018-06-01 17:35:17 -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
Ryan Tharp
ee28623dbf important threading note 2018-05-31 06:07:52 -07:00
Jeff Becker
fe19314484
more stuff 2018-05-30 16:56:47 -04:00
Jeff Becker
39b1714f27
add minimal logger
move some printf to use logger

remove warnings from bencode.h
2018-05-27 09:42:55 -04:00
Jeff Becker
76d885d39e
more 2018-05-10 19:32:46 -04:00
Jeff Becker
8181670bf3
format 2018-04-30 12:14:20 -04:00
Jeff Becker
02dfb7c3a9
more 2018-04-08 08:18:16 -04:00
Jeff Becker
09be72b5b6
clang format 2018-04-05 10:43:16 -04:00
Jeff Becker
dcc5e6e348
more 2018-04-04 11:19:11 -04:00
Jeff Becker
58247343bf
format 2018-02-01 12:07:01 -05:00
Jeff Becker
1fdfdc0244
more 2018-02-01 12:06:49 -05:00
Jeff Becker
ae76b6b376
google format 2018-02-01 08:21:00 -05:00
Jeff Becker
de3ddbb93e
clang-format 2018-01-29 09:27:24 -05:00
Jeff Becker
b7d4499f43
more 2018-01-26 09:17:51 -05:00