Commit Graph

217 Commits

Author SHA1 Message Date
Michael
a062186f2d
or not 2019-07-29 23:23:55 +01:00
Michael
ee2dd0fb68
Use __cpp_lib_filesystem 2019-07-29 21:44:14 +01:00
Michael
3c2f7792c2
Fixup 2019-07-29 21:32:29 +01:00
Michael
614b669fd5
Abandon debian 2019-07-29 21:31:26 +01:00
Michael
df498c7bf8
try to make some windows 2019-07-29 21:31:26 +01:00
Jeff Becker
b0406e1a76
on logic queue overflow put job on timer instead 2019-07-28 13:13:52 -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
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
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
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
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
36c89363b3
try to fix pid_t issue 2019-07-21 16:57:11 +01:00
Michael
0cbd7b3116
Fixup fs 2019-07-21 16:57:10 +01:00
Michael
5cef2865bd
Fix Ubuntu builds 2019-07-15 22:46:57 +01:00
Jeff Becker
dc87b6dc6b
use correct uint128 functions when doing endian flipping 2019-07-12 10:06:56 -04:00
Jeff Becker
1fd6b5ae74
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-12 09:53:52 -04:00
Jeff
1a145ea515
Merge pull request #697 from majestrate/fix-freebsd-pthread
typo fix
2019-07-12 09:50:37 -04:00
Jeff Becker
8c67f14838
typo fix lel 2019-07-12 08:31:37 -04:00
Jeff
a768a9ad59
Merge pull request #695 from majestrate/fix-freebsd-pthread
fix freebsd build for real
2019-07-11 13:29:48 -04:00
Jeff Becker
ebab9b8905
fix freebsd build for real 2019-07-11 11:07:16 -04:00
Jeff
8e6c830641
Merge pull request #691 from majestrate/fix-freebsd-pthread
fix freebsd build
2019-07-11 10:00:37 -04:00
Jeff Becker
b207990d01
use elseif 2019-07-11 07:27:00 -04:00
Jeff Becker
4206132ea1
use correct function from free bsd pthread 2019-07-10 18:03:52 -04:00
Jeff Becker
e0d8e34369
fix freebsd build 2019-07-10 12:46:21 -04:00
Michael
488695047f
Remove redundant else blocks 2019-07-09 22:54:46 +01:00
Jeff Becker
8ac9ef6f18
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-09 09:48:15 -04:00
Jeff Becker
b9bcc2b775
make threadpool consice 2019-07-09 09:47:24 -04:00
Michael
b01e5accbb
Add function to set threadname, and use from threadpool impl 2019-07-09 01:06:22 +01: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
Jeff Becker
ec1910b8ca
remove threadpool.hpp
make link layer not use null lock and null mutex
2019-07-02 15:01:14 -04:00
Jeff Becker
fc8f58822c
remove threadpool.hpp
make link layer not use null lock and null mutex
2019-07-02 15:00:24 -04:00
Jeff Becker
04c9c61dfb
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-02 11:25:10 -04: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
8c2d67f8f1
Fix tests 2019-07-02 10:06:29 +01:00
Michael
b51f7d8015
Convert to load config in config loader 2019-07-02 01:58:39 +01:00
Michael
bd78471dae
Move ini parser as well 2019-07-02 01:58:38 +01:00
Michael
80d1e4aef9
Add in-source version of std::filesystem::permissions 2019-07-02 00:01:25 +01:00
Jeff Becker
d6ec528a72
start work on seperating ips out of endpoint 2019-07-01 10:56:56 -04:00
Jeff Becker
64e9622270
start seperating tun and endpoint 2019-07-01 09:44:25 -04:00