Commit Graph

2622 Commits

Author SHA1 Message Date
Jeff Becker
822f529be8
add link layer delivery feedback 2019-07-26 12:19:31 -04:00
Jeff Becker
b29ec20ad4
try deferred resolve for exit handler 2019-07-26 12:19:08 -04:00
Thomas Winget
697ece64cc make TransitHop self-destruct if path is invalidated 2019-07-25 19:54:10 -04:00
Thomas Winget
38fd0552d3 Adds Link-Relay Status Messages
Success case:
  - the path endpoint creates and sends a LR_StatusMessage upon
    successful path creation

Failure case:
  - an intermediate hop creates and sends a LR_StatusMessage upon
    failure to forward the path to the next hop for any reason

Both cases:
  - transit hops receive LR_StatusMessages and add a frame
    to them reflecting their "status" with respect to that path
  - the path creator receives LR_StatusMessages and decrypts/parses
    the LR_StatusRecord frames from the path hops.  If all is good,
    the Path does as it would when receiving a PathConfirmMessage.
    If not, the Path marks the new path as failed.

LR_StatusMessage is now used/sent in place of PathConfirmMessage
2019-07-25 17:46:56 -04:00
Thomas Winget
011abde5ec make travis happy again *and* don't break message sending 2019-07-25 15:04:48 -04:00
Thomas Winget
af2c960867 revert change that made travis happy because it broke things 2019-07-25 14:48:32 -04:00
Thomas Winget
bbb5339b33 add debug-level log message on path build success 2019-07-25 14:48:14 -04:00
Thomas Winget
5e0fc2bc71 change log level of message send success 2019-07-25 14:31:53 -04:00
Jeff
183ec25717
Merge pull request #729 from majestrate/fix-android-2019-07-24
make android compile again
2019-07-25 14:24:13 -04: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
43cb62af16
fix android compile, have makefile pull in libuv for cmake on android 2019-07-24 11:25:40 -04:00
Jeff Becker
909e0399d6
make android compile 2019-07-24 10:17:54 -04:00
Jeff
f154c9a0d0
Merge pull request #721 from majestrate/fix-dht-2019-07-19
handle dht case
2019-07-22 16:27:25 -04:00
Jeff
dc259e339f
Merge pull request #708 from michael-loki/travis_windows
Test windows support in travis
2019-07-22 08:20:39 -04:00
Michael
53bccc4f23
try to ensure on windows, but don't fail 2019-07-21 16:57:12 +01:00
Michael
9b40c0eb67
Fixup some tests 2019-07-21 16:57:12 +01:00
Michael
6ede15888e
Change manifest ids 2019-07-21 16:57:12 +01:00
Michael
4806e52f62
Try to silence some warnings to reduce noise 2019-07-21 16:57:11 +01:00
Michael
5c064d7ddc
Silence spammy threadpool warning 2019-07-21 16:57:11 +01:00
Michael
91c1ba87cc
Change ConfigParser too 2019-07-21 16:57:11 +01:00
Michael
8fd4ceb55b
Don't use LoadFromString 2019-07-21 16:57:11 +01:00
Michael
302c0ff18c
fixup printer.cpp 2019-07-21 16:57:11 +01:00
Michael
533d12e52e
more fs.cpp 2019-07-21 16:57:11 +01:00
Michael
3b17e65b0b
Fix more headers for fs.cpp 2019-07-21 16:57:11 +01:00
Michael
4b3920006e
fix str.cpp 2019-07-21 16:57:11 +01:00
Michael
0326f2ea56
fix fs.cpp 2019-07-21 16:57:11 +01:00
Michael
ac8624698d
Fix some string_view problems 2019-07-21 16:57:11 +01:00
Michael
71c6aca820
include cctype 2019-07-21 16:57:11 +01:00
Michael
36c89363b3
try to fix pid_t issue 2019-07-21 16:57:11 +01:00
Michael
5fdd68fa44
exceptions BE GONE 2019-07-21 16:57:11 +01:00
Michael
0cbd7b3116
Fixup fs 2019-07-21 16:57:10 +01:00
Jeff Becker
1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply 2019-07-19 13:21:20 -04:00
Jeff Becker
7a3c8e5ca0
set limits correctly 2019-07-18 12:32:26 -04:00
Jeff Becker
f48754c45d
make hop count and length configurable 2019-07-18 12:28:17 -04:00
Jeff Becker
cdf02eae6e
only issue deferred utp acks before timeout checks in pump 2019-07-18 10:10:08 -04:00
Jeff Becker
d465400840
revert 2019-07-18 09:34:46 -04:00
Jeff Becker
59653119fa
set timestamps to zero 2019-07-18 09:31:28 -04:00
Jeff Becker
961dd247ce
when lastSend is zero don;t time out 2019-07-18 09:30:43 -04:00
Jeff Becker
f62446e1a4
make it compile 2019-07-17 10:51:42 -04:00
Jeff Becker
a0f32fde13
reduce logging 2019-07-17 08:25:51 -04:00
Jeff
abf99df93b
Merge pull request #714 from majestrate/fix-net-if-iterate
fix network interface iteration infinite loop
2019-07-16 15:33:56 -04:00
Jeff Becker
b2fd0e86cc
fix network interface iteration infinite loop 2019-07-16 15:16:49 -04:00
Jeff Becker
1f761a1cb0
* fix arm cross compile on ubuntu disco
* add toolchain option for cross compile
2019-07-16 09:41:43 -04:00
Michael
5cef2865bd
Fix Ubuntu builds 2019-07-15 22:46:57 +01:00
Michael
5300568da5
Fix config builds 2019-07-15 22:46:57 +01:00
Jeff
4724bbf279
Merge pull request #707 from majestrate/fix-bootstrap
Fix bootstraping
2019-07-15 17:43:18 -04:00
Jeff Becker
12d4bfc379
always ask peers for next closest 2019-07-15 14:15:53 -04:00
Jeff Becker
4cc0c9b4d1
unconditional insert so that we dont run out of peers 2019-07-15 14:06:18 -04:00
Jeff Becker
c4ca61b76a
use static lookup timeout 2019-07-15 14:04:53 -04:00
Jeff Becker
86aabff256
only update if newer 2019-07-15 13:26:42 -04:00