Commit Graph

2680 Commits

Author SHA1 Message Date
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
Jeff Becker
b0d850afb5
durable write for nodedb 2019-07-15 13:19:31 -04:00
Jeff Becker
16e20a9e79
try fixing bootstrap 2019-07-15 12:56:09 -04:00
Michael
e52492911d
Refactor endpoint state management to a new class 2019-07-15 10:15:51 +01:00
Jeff
0a7021d827
Merge pull request #704 from michael-loki/findlibuv
Add FindLibUV and migrate to use it
2019-07-14 08:13:05 -04:00
Jeff Becker
9a2ffb85e6
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-14 08:10:09 -04:00
Jeff Becker
750397d085
use std::string instead of fs::path 2019-07-14 07:25:33 -04:00
Michael
2cc180b6a4
Add FindLibUV and migrate 2019-07-13 14:06:34 +01:00
Jeff
284a352dda fix previous commit 2019-07-13 07:57:41 -04:00
Jeff
b9cdfd116e correct worker threads amounts 2019-07-13 07:54:58 -04:00
Jeff Becker
8dab4b87bb
more logging 2019-07-12 13:39:13 -04:00
Jeff Becker
0d0efe7007
try bailing when configration failed 2019-07-12 13:23:38 -04:00
Jeff Becker
4e4c0b85ce
change order of configuration 2019-07-12 13:21:29 -04:00
Jeff Becker
6882e627ba
make format 2019-07-12 10:07:12 -04: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
96a4c027d7
Merge pull request #699 from majestrate/disable-shell-hooks-compile
disable shell hooks by default
2019-07-12 09:50:49 -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
095330b787
disable shell hooks by default 2019-07-12 09:06:59 -04:00
Jeff Becker
8c67f14838
typo fix lel 2019-07-12 08:31:37 -04:00
Michael
be997020dd
Fixup two minor warnings 2019-07-12 07:27:21 +01: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
Jeff Becker
749ee7cb9f
make it compile 2019-07-10 10:11:06 -04:00
Jeff Becker
fcc3c05124
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-10 10:07:19 -04:00
Michael
99798a74e1
Address Jeff's comment 2019-07-09 23:04:07 +01:00
Michael
488695047f
Remove redundant else blocks 2019-07-09 22:54:46 +01:00
michael-loki
0cd9b4c380
Merge pull request #687 from michael-loki/config_env
Allow environment variable override of config
2019-07-09 21:42:31 +01:00
Jeff Becker
5460cb5aa6
* pump after stopping hidden service context
* flush nodedb after stopping links
2019-07-09 15:44:53 -04:00
Jeff Becker
d86633bc96
remove comment that is wrong 2019-07-09 15:27:48 -04:00
Jeff Becker
f5291951f6
use logical or not bitwise or and change function name to be plural 2019-07-09 15:20:01 -04:00
Jeff Becker
3ed8dec78b
use const reference and don't log invalid packets 2019-07-09 15:17:27 -04:00
Jeff Becker
454fb3bb72
use logical or instead of bitwise or 2019-07-09 14:51:43 -04:00
Jeff Becker
edd3611166
correct name 2019-07-09 10:05:31 -04:00
Jeff Becker
ec6a1cfddc
make it compile 2019-07-09 09:58:16 -04:00
Jeff Becker
84407b3557
make it compile 2019-07-09 09:54:13 -04:00
Jeff Becker
fb803cfe11
lel 2019-07-09 09:50:50 -04: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
Michael
3ce90b678e
Allow override of the rest of the config 2019-07-09 00:29:43 +01:00
Michael
fbb83704a0
Allow override of some config via env variables 2019-07-09 00:29:43 +01:00
Michael
08d306f6e9
Have fromSection return void 2019-07-09 00:29:43 +01:00
Michael
937f28f75d
Move router config to be encapsulated 2019-07-09 00:29:43 +01:00
Jeff Becker
0eb6431eb1
initialize tun with 0 and set defaults in correct places 2019-07-08 11:26:06 -04:00
Jeff Becker
fd911d0c52
make format 2019-07-08 10:22:47 -04:00
Jeff Becker
58005c5f81
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-08 10:17:21 -04:00
Michael
6418c67f75
Set netid before doing anything else 2019-07-07 12:29:44 +01:00
Michael
661a8b6537
Fix macos build after rebase 2019-07-06 15:59:13 +01:00
Michael
f310160065
Fixup and add tests 2019-07-06 14:46:25 +01:00
Michael
2acb163083
Fix llvm 8 build 2019-07-06 14:46:25 +01: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
c15fc4c8fb
Merge pull request #684 from majestrate/fix-mac-os-tun-pi
Fix mac os tun pi
2019-07-05 11:50:15 -04:00
Jeff Becker
89a3e375d2
fix last commit 2019-07-05 10:48:10 -04:00
Jeff Becker
a781589b52
try fix for localhost.loki 2019-07-05 10:41:26 -04:00
Jeff Becker
6467d21ba0
* fix testnet codepath
* add packet info for osx
2019-07-05 10:13:58 -04:00
Jeff
0c5ee8a5a5 Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-05 08:33:13 -04:00
Jeff Becker
81cab62bb9
* fix testnet codepath
* add packet info for osx
2019-07-05 08:07:06 -04:00
Jeff Becker
c4aaa80e75
use sane defaults and deprecated "auto" as it's horribly bad style 2019-07-03 10:32:51 -04:00
Jeff Becker
fdfd8c6150
don't lock when visiting links 2019-07-03 08:42:11 -04: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
Jeff Becker
191ebe32ce
actually set config for network 2019-07-02 09:33:36 -04:00
Jeff Becker
a82be1d040
disable rpc by default 2019-07-02 09:19:28 -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
00c237dc6d
Move config class to its own dir 2019-07-02 01:58:38 +01:00
Jeff
52314d81fa
Merge pull request #673 from michael-loki/unfuck_fslib
Re-import cppbackport
2019-07-01 20:17:13 -04:00
Michael
80d1e4aef9
Add in-source version of std::filesystem::permissions 2019-07-02 00:01:25 +01:00
Jeff Becker
5874c38b38
swap path on inbound convo if expires soon 2019-07-01 17:35:49 -04:00
Jeff Becker
f211ff182a
pick ready paths for reply 2019-07-01 16:45:00 -04:00
Jeff Becker
20e5f8964c
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-01 16:39:43 -04:00
Jeff Becker
0b090b671a
relax timeouts for handshake and make format 2019-07-01 14:06:17 -04:00
Jeff Becker
2216376fe2
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-01 13:58:00 -04:00
Jeff Becker
915b11b0bb
ping on send idle not recv idle 2019-07-01 13:53:08 -04:00
Jeff Becker
abb1924eef
pump write when handshaking 2019-07-01 13:48:46 -04:00
Jeff Becker
45384deaa0
close after 30 seconds of dead 2019-07-01 13:21:34 -04:00
Jeff Becker
00ca1c6f3e
close after 30 seconds of dead 2019-07-01 13:20:41 -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
Jeff Becker
ef50c726b1
better logging 2019-07-01 08:55:01 -04:00
Jeff Becker
5eb7ec493f
do direct lookup when in endgame scenario as client when looking for router 2019-07-01 08:17:59 -04:00
Michael
59e8a7316f
Revert "Merge pull request #668 from michael-loki/remove_cppbackport"
This reverts commit 33142d5005, reversing
changes made to 408a652a01.
2019-07-01 10:33:03 +01:00
Jeff Becker
a225759c0f
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-28 16:12:34 -04:00
Jeff
01b3c0363c
Merge pull request #672 from majestrate/master
track dropping of messages in metrics
2019-06-28 15:32:53 -04:00
Jeff Becker
eaab454e80
track drop in metrics 2019-06-28 15:28:59 -04:00
Jeff
e06882cf89
Merge pull request #670 from majestrate/master
add more metrics
2019-06-28 15:07:36 -04:00
Jeff Becker
146cc8d3b2
add more metrics 2019-06-28 15:02:00 -04:00
Jeff Becker
fbf01bd129
fix order 2019-06-28 11:56:25 -04:00
Jeff Becker
1061ae4fee
set outbound context to be outbound session 2019-06-28 11:53:29 -04:00
Jeff Becker
0146a967d0
fix convotag inbound state setting 2019-06-28 11:49:29 -04:00
Jeff Becker
6ab3678f5c
correct comparison 2019-06-28 11:39:54 -04:00
Jeff Becker
5c8b17154c
swap intros only on path build success 2019-06-28 11:32:47 -04:00
Jeff Becker
4734fa91fe
check for zero 2019-06-28 11:31:02 -04:00
Jeff Becker
f66e37ca37
oooof 2019-06-28 11:27:53 -04:00
Jeff Becker
289eb2a04c
fix previous commit 2019-06-28 11:23:39 -04:00
Jeff Becker
5c679a10e8
outbound context build more 2019-06-28 11:19:12 -04:00
Jeff Becker
6bca652182
choose first timestamp 2019-06-28 10:48:00 -04:00
Jeff Becker
0b90acff75
handle reply intro 2019-06-28 10:12:20 -04:00
Michael
1639c58cb6
Remove cppbackport from vendor dir 2019-06-27 16:25:44 +01:00
Jeff Becker
4e355327d8
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-26 09:12:19 -04:00
Jeff Becker
8830ac8fac
tweak 2019-06-26 09:09:40 -04:00
Jeff Becker
c7e9118bb6
fix fs stuff 2019-06-24 15:34:30 -04:00
Jeff Becker
3038a13373
explore faster via all peers 2019-06-24 15:15:02 -04:00
Jeff Becker
6c1a04e804
reset errno and make unit tests pass 2019-06-24 13:36:25 -04:00
Jeff Becker
b178aa1a36
make it compile and make it secure files 2019-06-24 13:08:36 -04:00
Jeff Becker
ba6f9ed2d7
continue using llarp::openfilestream 2019-06-24 12:51:29 -04:00
Jeff Becker
bf3212820b
finish up issue 17 2019-06-24 12:48:55 -04:00
Jeff Becker
e265661adb
try fixing issue number 17 (not done) 2019-06-24 12:48:48 -04:00
Jeff Becker
54a098356d
continue using llarp::openfilestream 2019-06-24 12:39:03 -04:00
Jeff Becker
38d5a4855a
finish up issue 17 2019-06-24 12:26:15 -04:00
Jeff Becker
aad71c2022
try fixing issue number 17 (not done) 2019-06-24 11:51:58 -04:00
Jeff Becker
228afcec7e
only kill rcs as client 2019-06-24 09:42:46 -04:00
Jeff Becker
b0612e2ee1
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-21 11:23:53 -04:00
Jeff Becker
ade1966b13
Merge branch 'libuv-proper-close' into ipv6-tun 2019-06-21 10:12:38 -04:00
Jeff
37aed7a664
Merge pull request #662 from majestrate/libuv-proper-close
fix up libuv close logic
2019-06-21 10:00:09 -04:00
Jeff Becker
9820315337
=default 2019-06-21 09:00:17 -04:00
Jeff Becker
53d2034a73
fix up libuv close logic 2019-06-20 14:28:59 -04:00
Jeff Becker
2bd2068b4f
fix up libuv close logic 2019-06-20 14:28:26 -04:00
Michael
b6b400baef
Tidy up pathbuilder code 2019-06-20 17:35:40 +01:00
Jeff Becker
5c61df08b5
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-20 10:35:51 -04:00
Jeff
d05dd7d526
Merge pull request #650 from michael-loki/move_messages
Move messages code to right subdir
2019-06-20 10:34:39 -04:00
Jeff Becker
f56273eb6a
fix comparision 2019-06-20 10:01:34 -04:00
Michael
fedf6cb8e0
Send netid to metrictank 2019-06-20 00:00:59 +01:00
Michael
08609f9e5a
Rename message files 2019-06-19 23:30:07 +01:00
Michael
68063b320c
Rename InboundMessageParser to LinkMessageParser 2019-06-19 21:48:25 +01:00
Michael
8884d0d9d4
Merge changes from upstream 2019-06-19 21:40:40 +01:00
Michael
333b23b59c
Tweak link message parser 2019-06-19 21:35:57 +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
2291d48bcc
Move remaining messages around 2019-06-19 21:12:10 +01:00
Michael
66cf5cc73d
Move exit messages to match header 2019-06-19 21:11:34 +01:00
Jeff Becker
698cc076e9
fix borken unit tests 2019-06-19 16:01:18 -04:00
Jeff
3bdee8150c
Merge pull request #652 from michael-loki/refactor_path
Refactor path build code
2019-06-19 12:48:35 -04:00
Rick V
042baf9270
fix callback hell 2019-06-18 18:56:48 -05:00