Commit Graph

228 Commits

Author SHA1 Message Date
Jeff Becker
5bbaae4e2e
more 2018-07-12 14:21:44 -04:00
Jeff Becker
bae4f746be
publish hidden service descriptors and acknoledge publish 2018-07-11 12:11:19 -04:00
Jeff Becker
6ad79b97dc
broken 2018-07-09 13:32:11 -04:00
Jeff Becker
dfa567e816
Merge remote-tracking branch 'sachaaaa/refactor' into hidden-service-dht 2018-07-09 10:24:44 -04:00
sachaaaaa
61bb7905f0 fix method calls in server.cpp + use ctor instead of factory/allocator
to squash
2018-07-09 15:01:30 +10:00
sachaaaaa
661f050636 Fix includes/forward declarations 2018-07-09 15:01:30 +10:00
sachaaaaa
c7940076bf Remove most of the extern "C"
remove extern "C"
2018-07-09 14:34:09 +10:00
Ryan Tharp
840a50abbc don't skip private interfaces quite yet/we need them for NAT to work correctly, try_connect refactor clean up 2018-07-08 06:28:10 -07:00
Jeff Becker
21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
2018-07-05 11:44:06 -04:00
Ryan Tharp
938cfec657 Revert "resolve_job_type() and on_verify_client_rc() clean u"
This reverts commit 9805cc153f.
2018-07-04 14:01:32 -07:00
Ryan Tharp
9805cc153f resolve_job_type() and on_verify_client_rc() clean u 2018-07-04 05:09:18 -07:00
Jeff Becker
cc23d8ddbd
format 2018-07-03 09:34:53 -04:00
Jeff Becker
2b8cd93d6a
make it compile :^) 2018-07-03 09:34:46 -04:00
Jeff Becker
ab509e0a13
try not to crash 2018-07-03 09:33:37 -04:00
Jeff Becker
4ca34995bf
add inbound server connections to DHT 2018-07-03 09:13:56 -04:00
Jeff Becker
8cfcc101b4
* path latency ticks every 5s
* retransmit xmit if we haven't gotten an ack yet (IWP)
2018-06-29 12:02:39 -04:00
Jeff Becker
9c57be0301
look up remote not self 2018-06-29 10:43:06 -04:00
Jeff Becker
7d9bffdf9c
make format 2018-06-29 08:15:15 -04:00
Ryan Tharp
0af33b4205
Merge pull request #3 from neuroscr/master
vendor libtuntap, set log level c api, codel fixes, private network detection, nat address override, --locate and --localInfo utils
2018-06-28 21:10:11 -07:00
Jeff Becker
eeb9c9e5b4
do correct dht lookup 2018-06-28 11:10:25 -04:00
Ryan Tharp
0cc0c8f476 better public override detection 2018-06-28 04:59:50 -07:00
Ryan Tharp
d5a89b91b3 clean up debug, detect override better 2018-06-28 04:50:01 -07:00
Ryan Tharp
b93943ab32 support for public-address/public-port overrides for NAT, decrease min paths to 3, add debugging 2018-06-28 04:29:10 -07:00
Ryan Tharp
07f0653e83 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-28 08:20:19 +00:00
Jeff Becker
92d1f50203
make path latency tests work 2018-06-26 12:23:43 -04:00
Jeff Becker
6633fb151d
make it work 2018-06-26 09:39:29 -04: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
16f7de99e4 disable llarp_nodedb_async_load_rc 2018-06-23 07:55:25 -07:00
Ryan Tharp
deb97fda3f Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-23 11:28:37 +00:00
Jeff
65233617ac fix macos build 2018-06-22 16:13:56 -04:00
Ryan Tharp
9dff277a7e Merge branch 'master' of https://github.com/majestrate/llarp
(upstream repo was broken)
2018-06-22 05:42:50 +00:00
Jeff Becker
39c63432be
ALMOST got path building working 2018-06-21 20:25:30 -04:00
Jeff Becker
50402820e1
more 2018-06-21 11:46:35 -04:00
Jeff Becker
9b73be11cc
fix up dht a bit 2018-06-21 10:20:14 -04:00
Ryan Tharp
4b0c1b35eb proper merge of resolved conflicts 2018-06-21 13:33:42 +00:00
Ryan Tharp
c4dd8f4a29 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-21 13:26:46 +00:00
Ryan Tharp
8b9652dae3 fix git 2018-06-21 06:06:13 -07:00
Jeff Becker
a2d9dc1d93
it does stuff :+DDDDD 2018-06-21 08:55:02 -04:00
Ryan Tharp
f3f68e4bcb llarp_findOrCreateEncryption refactor, llarp_rc_set_pubkey(), llarp_rc_set_pubenckey(), llarp_rc_set_pubsigkey(), include more debug on sig verify failure 2018-06-21 05:52:45 -07:00
Ryan Tharp
5bb70c6ddb llvm 3.8 compile fixes 2018-06-21 02:31:53 -07:00
Ryan Tharp
fe3bc37c8c Merge branch 'master' of https://github.com/neuroscr/loki-network 2018-06-21 09:26:14 +00:00
Jeff Becker
44e34f81e8
tweaks to testnet 2018-06-20 13:45:44 -04:00
Jeff Becker
78f3ca0155
more 2018-06-20 08:34:48 -04:00
Jeff Becker
f68ffbc33d
more path building stuff 2018-06-19 13:11:24 -04:00
Ryan Tharp
fa82d6258c llarp_rc_read() 2018-06-19 02:43:18 -07:00
Jeff Becker
aa251cdd01
make format 2018-06-18 18:05:02 -04:00
Jeff Becker
08c0318e82
initial path building stuff (broken) 2018-06-18 18:03:50 -04:00
Jeff Becker
53eb3d0a59
default to c++11 2018-06-14 15:22:26 -04:00
Jeff Becker
0d85577fac
exponential backoff 2018-06-14 13:35:12 -04:00
Jeff Becker
d645c07290
fix up dht 2018-06-14 11:39:54 -04:00
Jeff Becker
6e5ebd62bf
do dht lookup for unknown routers 2018-06-14 11:10:31 -04:00
Jeff Becker
ccf8574c03
make unit tests work 2018-06-14 10:04:42 -04:00
Jeff Becker
d5fe7623fc
more dht stuff 2018-06-13 12:32:34 -04:00
Jeff Becker
09d6a46cad
correct encoding of aligned buffer 2018-06-13 09:18:18 -04:00
Jeff Becker
10ddc3da8a
async load rc 2018-06-13 08:58:51 -04:00
Ryan Tharp
d8329b9955 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-13 11:53:18 +00: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
0d9025bc7d
Merge remote-tracking branch 'ryan/master' into dev 2018-06-13 07:31:34 -04:00
Ryan Tharp
1cf247e36e Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-12 21:53:55 +00: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
Jeff Becker
315798a0c4
* loopback test network
* fix various crashes and race conditions

* rename iwp-connect to connect in config

* rename iwp-links to bind in config

* always make a link just for outbound sessions even if no bind section is provided
2018-06-07 12:22:49 -04:00
Ryan Tharp
70579e6846 finish implementing llarp_nodedb_async_verify, move context inside llarp_async_verify_rc 2018-06-07 02:36:30 -07:00
Ryan Tharp
7b8ef635e4 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-07 06:49:57 +00:00
Jeff Becker
a0f1d548f8
more shadow stuff 2018-06-06 17:23:57 -04:00
Jeff Becker
90611731a5
initial shadow test net 2018-06-06 13:02:57 -04:00
Jeff Becker
0278ba559c
add single threaded mode for shadow 2018-06-06 08:46:26 -04:00
Ryan Tharp
56fcaaa567 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-03 22:49:04 +00:00
Jeff Becker
c2d76dce3a
inbound message fixes 2018-06-03 09:36:38 -04:00
Jeff Becker
2075f9a6b8
add discard message for testing 2018-06-03 09:04:51 -04:00
Jeff Becker
87aabefddc
some fixups on link layer
only add trusted routers to DHT
2018-06-02 09:18:11 -04:00
Ryan Tharp
3f6a5c4ca5 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-01 21:55:48 +00:00
Jeff Becker
fe7388bd69
make it work 2018-06-01 17:47:38 -04: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
Jeff Becker
0724479eba
fix logging 2018-06-01 10:24:58 -04:00
Jeff Becker
5649d261ae
start fleshing out dht subsystem a bit 2018-06-01 10:08:54 -04:00
Ryan Tharp
40dedf7471 start of async version of verifying router contacts 2018-05-31 06:08:06 -07:00
Jeff Becker
fe19314484
more stuff 2018-05-30 16:56:47 -04:00
Jeff Becker
31cbfd255e
ipv4 fixes 2018-05-29 09:40:26 -04:00
Ryan Tharp
9f2d7f717a Merge branch 'master' of https://github.com/majestrate/llarp 2018-05-29 12:21:50 +00:00
Ryan Tharp
a57cffa481 AF_LINK support (AF_PACKET guard), fallback to ipv4 if ipv6 doesn't connect 2018-05-29 05:16:08 -07:00
Jeff Becker
bee7c2b271
ipv4 fixes 2018-05-29 08:15:48 -04: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
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
c51d29a0c6
add link level keepalive
remove debugging messages

start handling more messages
2018-05-26 14:31:45 -04:00
Jeff Becker
93f0e03958
handle inter node messages
currently only handling LIM
2018-05-25 13:52:10 -04:00
Jeff Becker
c2ef57d9a2
Merge remote-tracking branch 'ryan/master' 2018-05-25 08:27:54 -04:00
Jeff Becker
b2a9605745
it does stuff :DDDDDDDD 2018-05-23 16:37:43 -04:00
Jeff Becker
d426f9e65e
more 2018-05-23 09:49:00 -04:00
Ryan Tharp
4d911f94d6 remove debug 2018-05-22 23:54:42 +00:00
Jeff Becker
d8631bb2b5
fix leaks 2018-05-22 15:19:06 -04:00
Jeff Becker
71c34231b2
Merge remote-tracking branch 'ryan/master' 2018-05-22 14:41:38 -04:00
Jeff Becker
bc9e32d690
clang format and lots of stupid bug fixes 2018-05-22 11:54:19 -04:00
Ryan Tharp
ea5f4ba2d5 Merge branch 'master' of https://github.com/majestrate/llarp 2018-05-21 13:22:02 +00:00
Jeff Becker
4e19ce8191
add buffer helper 2018-05-21 09:17:07 -04:00
Ryan Tharp
fa49085e43 llarp_findOrCreateIdentity(), llarp_rc_write(), llarp_rc_clear(), llarp_rc_addr_list_iter(), llarp_rc_set_addrs(), llarp_rc_set_pubkey(), llarp_rc_sign(), minor whitespace cleanup 2018-05-21 12:43:32 +00:00
Jeff Becker
6cc469775f
implement rc signing 2018-05-20 13:45:47 -04:00
Jeff Becker
14d2de8edb
add initial iwp async crypto for intro 2018-05-18 16:08:57 -04:00
Jeff Becker
cb351ae9ff
refactor iwp, get rid of dtls 2018-05-18 10:40:06 -04:00
Jeff Becker
4959067af2
it binds 2018-05-18 09:17:58 -04:00
Jeff Becker
64d5265102
more 2018-05-18 08:39:17 -04:00
Jeff Becker
f022a5bcdf
more 2018-05-17 16:00:58 -04:00
Jeff Becker
91a9108300
refactor 2018-05-16 14:13:18 -04:00
Jeff Becker
c0ff64868d
more meat 2018-05-16 12:41:20 -04:00
Jeff Becker
7b46e44859
more 2018-05-16 11:49:16 -04:00
Jeff Becker
f7e52a1878
more 2018-05-16 11:30:05 -04:00
Jeff Becker
63150549fc
start moving to cmake 2018-05-16 09:56:51 -04:00
Jeff Becker
4cc5059cbe
format 2018-04-30 14:18:34 -04:00
Jeff Becker
8aa898aef8
more 2018-04-30 14:18:18 -04:00
Jeff Becker
a5611e2206
format 2018-04-30 12:14:29 -04:00
Jeff Becker
8181670bf3
format 2018-04-30 12:14:20 -04:00
Jeff Becker
09be72b5b6
clang format 2018-04-05 10:43:16 -04:00
Jeff Becker
84ab8a792a
more 2018-04-05 10:38:22 -04:00
Jeff Becker
2687d9aeee
more 2018-04-05 10:23:14 -04:00
Jeff Becker
a449dffc09
more 2018-04-04 09:54:37 -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
a704a28f34
make it compile and link 2018-01-29 09:19:00 -05:00
Jeff Becker
f50a49b7cb
progress (does not compile) 2018-01-26 20:18:10 -05:00
Jeff Becker
b7d4499f43
more 2018-01-26 09:17:51 -05:00
Jeff Becker
485e780552
sarp -> llarp 2018-01-25 11:24:33 -05:00
Jeff Becker
045a692522
more 2018-01-25 11:11:45 -05:00
Jeff Becker
62fb43a52c
refactor 2018-01-25 10:38:14 -05:00