Jeff Becker
1a864832c8
make format
2019-11-14 10:07:40 -05:00
Thomas Winget
23a9773e1e
remove our paths from outbound queues
2019-11-07 13:23:14 -05:00
Thomas Winget
ef1a5652ef
remove our paths from outbound queues
2019-11-07 13:23:06 -05:00
Thomas Winget
17de3f2478
do...while; make format; remove erroneous GUARDED_BY
2019-11-06 10:26:51 -05:00
Thomas Winget
75512b1b58
ban zero id for pathid; clarity and cleanup
2019-11-06 10:26:51 -05:00
Thomas Winget
9d3e7d349c
Add per-path queues, prioritize control messages over traffic
2019-11-06 10:26:51 -05:00
Jeff Becker
7ee026fa50
make path builds work again
2019-11-05 11:58:53 -05:00
Jeff Becker
7c35b00f98
Revert "move calling of path build sccess hook to correct place"
...
This reverts commit 902cd86a3b
.
2019-11-04 08:39:29 -05:00
Jeff Becker
902cd86a3b
move calling of path build sccess hook to correct place
2019-11-03 16:07:39 -05:00
Jeff Becker
9d266dbec7
meh
2019-11-03 15:52:00 -05:00
jeff
32ed821763
Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography
2019-10-01 10:51:28 -04:00
jeff
f9fb40f590
final touches
2019-09-20 12:56:19 -04:00
jeff
6c2ebbb925
try fixing handover and add snapp traffic to multithreaded crypto workers
2019-09-19 10:41:31 -04:00
Jeff Becker
5863e33825
move it arround
2019-09-16 12:21:21 -04:00
Jeff Becker
327c545530
finish multithread cryptography first pass
2019-09-16 12:12:05 -04:00
jeff
14c9ef15ed
try calling stuff in logic thread from event loop
2019-09-16 06:21:12 -04:00
Jeff Becker
bcf9135da6
testnet
2019-09-05 16:20:55 -04:00
Jeff Becker
3c0245f8b3
Merge remote-tracking branch 'github/master' into iwp-multi-ack
2019-09-05 13:40:04 -04:00
Jeff Becker
4bf6882c8a
more async cryptography
2019-09-05 13:39:09 -04:00
Jeff Becker
12314e8d00
ensure no crash on quit
2019-09-04 08:41:07 -04:00
Jeff Becker
5cdd92e2a3
remove more locking and make it safe
2019-09-04 08:24:17 -04:00
Jeff Becker
1adae338ce
Merge remote-tracking branch 'origin/master'
2019-09-04 07:58:02 -04:00
Michael
edd0ec398f
Move thread stuff to subdirectory
2019-09-03 20:52:28 +01:00
Michael
4d8fe2a8a8
Move meta programming to subdirectory
2019-09-03 20:52:28 +01:00
Jeff Becker
c01112e4b7
tracy lock contention testing and other fun things
2019-09-03 11:56:56 -04:00
Michael
094b697b01
Replace StatusObject with underlying JSON type
2019-08-19 10:33:26 +01:00
Michael
40aabd6d92
Use the right version of clang-tidy
2019-08-13 22:38:00 +01:00
Michael
0a1620aff2
make format
2019-08-12 22:10:07 +00:00
Michael
16cdfbd5f0
clang-tidy modernize pass
2019-08-12 16:52:58 +01:00
Michael
84601fa474
Make format
2019-08-08 00:26:40 +01:00
Michael
d1990b5e93
Fix suspicious thread-unsafety
2019-08-08 00:18:56 +01:00
Jeff
10d7e7cb77
Merge branch 'master' into master
2019-08-05 07:59:30 -04:00
Michael
c429f0cec9
Jeff's fixes
2019-08-04 22:30:47 +01:00
Michael
a270fe5f33
fixup! Fix gcc trunk warnings
2019-08-02 10:34:56 +01:00
Michael
f9e9227e19
Fix gcc trunk warnings
2019-08-02 10:29:08 +01:00
Michael
4763888d2c
Add fail-able docker build for gcc trunk
2019-08-02 10:28:09 +01:00
Rick V
f6c97091fd
clang-format
2019-08-01 22:25:48 -05:00
Rick V
16096c6adb
add debug helper lib for core dump generation on all supported windows targets
...
had an epiphany earlier
i kept having problems with static linking because
i merged the GNU C runtime with the SEH library
instead of merging the latter with pthread
2019-08-01 21:39:42 -05:00
Jeff Becker
aa0a795689
call path build fail stuff in logic thread
2019-07-31 08:51:24 -04:00
Jeff Becker
60fbeca9d4
const correctness
2019-07-29 12:43:24 -04:00
Jeff Becker
db2206664a
fix crashes in testnet
2019-07-29 11:10:20 -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
bbb5339b33
add debug-level log message on path build success
2019-07-25 14:48:14 -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
Michael
e52492911d
Refactor endpoint state management to a new class
2019-07-15 10:15:51 +01:00
Jeff Becker
1fd6b5ae74
Merge remote-tracking branch 'origin/master' into ipv6-tun
2019-07-12 09:53:52 -04:00
Michael
be997020dd
Fixup two minor warnings
2019-07-12 07:27:21 +01:00
Michael
488695047f
Remove redundant else blocks
2019-07-09 22:54:46 +01:00
Jeff Becker
b9bcc2b775
make threadpool consice
2019-07-09 09:47:24 -04: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
Michael
b6b400baef
Tidy up pathbuilder code
2019-06-20 17:35:40 +01:00
Michael
08609f9e5a
Rename message files
2019-06-19 23:30:07 +01:00
Michael
8a058fcb34
Move other messages
2019-06-19 21:35:57 +01:00
Michael
83bd9227a7
Move exit messages
2019-06-19 21:35:26 +01:00
Michael
d6751e3eeb
Move subset of messages to right directory
2019-06-19 21:35:26 +01:00
Michael
b89689fec3
Refactor path build code
2019-06-18 22:51:41 +01:00
Rick V
c6c31efec9
make format
2019-06-17 23:29:54 -05:00
Jeff Becker
9ea13a9ee3
ingore paths that drop exit traffic
2019-05-31 06:57:41 -04:00
Jeff Becker
762a0c534f
Merge remote-tracking branch 'origin/master'
2019-05-29 08:09:02 -04:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers
2019-05-28 20:45:08 +01:00
Jeff Becker
068fec82fb
set lifetime of paths
2019-05-28 10:06:01 -04:00
Jeff Becker
2897141036
make format and introduce new function EnsureRouter on router to check nodedb or do dht lookup
2019-05-28 07:35:26 -04:00
Jeff Becker
a375f1103f
explicitly lookup router if not connected to it on LRCM forward.
2019-05-27 15:01:09 -04:00
Jeff Becker
c77e0aff8a
only check for ready paths when counting in future
2019-05-25 12:27:54 -04:00
Jeff Becker
13190284f7
double path build timeout
2019-05-23 09:38:31 -04:00
Jeff Becker
64c7ed42fc
make format
2019-05-22 12:20:50 -04:00
Jeff Becker
9c96aecf3f
move llarp::Logic to std::shared_ptr
...
add sequence numbers to HSD messages
begin work on network isolation code
add more docs
2019-05-22 12:20:03 -04:00
Michael
dd8a93a400
Apply rule of zero to code base
2019-05-19 23:11:07 +01:00
Jeff Becker
a4e90ee769
hax to make it work.
2019-05-16 14:55:12 -04:00
Jeff Becker
d3a98db267
don't resize frames
2019-05-15 10:55:01 -04:00
Jeff Becker
f832c9a593
use shared_ptr
2019-05-11 10:13:35 -04:00
Jeff
06f8bb2f42
add blacklist-snode option
2019-05-10 12:19:33 -04:00
Jeff Becker
ad019cab71
add changes for review
2019-05-08 10:59:28 -04:00
Jeff Becker
486042511c
log hops
2019-05-08 10:30:55 -04:00
Jeff Becker
540c2e1666
fix previous commit
2019-05-08 10:18:04 -04:00
Jeff Becker
df322e1149
don't include duplicate hops in paths
2019-05-08 10:01:31 -04:00
Jeff Becker
9d466cd09d
pump only on send queue full and clear exit roles when closing exit
2019-05-08 08:50:33 -04:00
Jeff Becker
b68f539de6
limit outbound connections
2019-05-08 08:17:48 -04:00
Jeff Becker
1d852a1e83
send exit close ack
2019-05-07 14:27:21 -04:00
Jeff Becker
7b03b63d13
more sighup code
2019-05-07 14:15:22 -04:00
Jeff Becker
a53da68700
start work on sighup
2019-05-07 13:46:38 -04:00
Jeff Becker
744ebac579
only use ready paths
2019-05-07 09:49:49 -04:00
Jeff Becker
61d42811be
prevent crash
2019-05-07 09:04:43 -04:00
Jeff Becker
34533db620
add urgent build that builds over an existing path for an endpoint
2019-05-07 08:31:34 -04:00
Jeff Becker
b9adf90fb9
remove random timer fuzz
2019-05-06 12:13:41 -04:00
Jeff Becker
6c17bf35b3
decrease minimum path build interval
2019-05-06 12:00:10 -04:00
Jeff Becker
5fa85acaf7
rebuild exit paths if they die
2019-05-06 10:54:05 -04:00
Jeff Becker
92ad98be8b
refactor hooks to be have more c++isms
...
make path build timeouts use log level warning
2019-05-05 09:51:48 -04:00
Jeff Becker
d423ee02d2
use shared_ptr
2019-05-03 09:15:03 -04:00
Jeff Becker
d50b18d7b0
try fixing leak also make format
2019-04-30 08:22:15 -04:00
Jeff
01906c5d94
Merge remote-tracking branch 'origin/master'
2019-04-28 13:33:27 -04:00
Michael
0b4d787042
More work on router docker image
...
- Multi-stage docker build (final image only 15MB!)
- Build in release mode
- Fix bug with release mode
- Fix compiler being dumb AF
- Disable FORTIFY for now
- Enable LTO when making a staticly linked release
- Fix some gcc specific warnings
- Refactor cmake stuff into multiple files
2019-04-28 17:04:52 +01:00
Michael
9ee525a006
Fix shadowing warnings
2019-04-26 00:21:19 +01:00
Jeff Becker
af1529fa72
Merge remote-tracking branch 'origin/master'
2019-04-25 07:25:22 -04:00
Michael
4143472a17
Add cmake module to target a library as 'system', and fix a few warnings
2019-04-25 00:27:31 +01:00
Jeff Becker
6711296b26
finish converting to shared_ptr
2019-04-23 12:13:22 -04:00
Jeff Becker
99c29cf05a
prepare for ios/android jazz
...
move to use std::shared_ptr instead of bare pointers so we can
multithread everything.
2019-04-23 10:28:59 -04:00