Commit Graph

2911 Commits

Author SHA1 Message Date
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
Michael
b89689fec3
Refactor path build code 2019-06-18 22:51:41 +01:00
Jeff Becker
bcde59569e
make freebsd compile 2019-06-18 09:10:44 -04:00
Jeff Becker
2557a9ab25
check for expiration 2019-06-18 08:58:22 -04:00
Jeff Becker
cd05fa6150
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-18 08:46:35 -04:00
Rick V
0b1e3ce959
fix windows native console 2019-06-17 23:38:10 -05:00
Rick V
c6c31efec9
make format 2019-06-17 23:29:54 -05:00
Rick V
5092a1fa85
restore llarp_make_ev_loop() as we only use libuv now; separate function is now ded code 2019-06-17 23:29:46 -05:00
Rick V
97fad8194c
fix legacy windows console logger 2019-06-17 23:29:25 -05:00
Jeff Becker
aadde2e9c6
save all nodedb entries in memory on exit 2019-06-17 10:23:38 -04:00
Jeff Becker
389c414ee3
add handover window to router contact updating 2019-06-17 10:02:12 -04:00
Jeff Becker
30f6a8ccd2
make format 2019-06-17 09:05:37 -04:00
Jeff Becker
6ae9cf8c2e
store looked up routers 2019-06-17 09:05:27 -04:00
Jeff Becker
9c24fc15a8
try not spamming network with builds 2019-06-17 08:43:16 -04:00
Jeff Becker
dcefcd7879
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-17 08:38:08 -04:00
Jeff
3833cc32cf
Merge pull request #648 from michael-loki/move_publishers
Move local publishers to their own files
2019-06-17 08:36:06 -04:00
Michael
26e16d5389
Fix event loop tests post-libuv 2019-06-16 22:44:11 +01:00
Michael
c0525f2ea3
Move local publishers to their own files 2019-06-15 15:48:48 +01:00
Jeff Becker
97b4e27704
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-14 09:42:41 -04:00
Jeff Becker
5853e5e3f4
pass in path 2019-06-14 09:13:06 -04:00
Jeff Becker
a323003824
differentiate between inbound and outbound convos 2019-06-14 08:49:45 -04:00
Jeff
3a7d74b08c
Merge pull request #647 from despair86/remove-old-evloops
we libuv now
2019-06-14 08:23:24 -04:00
Jeff Becker
227f561ffc
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-14 08:11:16 -04:00
Rick V
68862cc830
we libuv now 2019-06-13 21:21:44 -05:00
Rick V
271cfcb64e
remove all disused platform-specific event loops
(cherry picked from commit 94d00a169ba7934ef719cc38fe0ca1eff8e1b675)
2019-06-13 21:02:57 -05:00
Michael
95646d2d87
Publish metric tags 2019-06-13 23:09:58 +01:00
Michael
7d4126407c
Introduce tags for metrics 2019-06-13 22:58:17 +01:00
Michael
bb0c05a2ca
Introduce tag types 2019-06-13 22:58:16 +01:00
Jeff
ef7d2c8de9
Merge pull request #645 from majestrate/json-logging
json logging option
2019-06-13 15:16:13 -04:00
Jeff Becker
8d72d9e034
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-13 09:32:45 -04:00
Jeff
b857be3d02
Merge pull request #639 from majestrate/master
[WIP] libuv
2019-06-13 09:27:42 -04:00
Jeff Becker
6714b06470
json logging option 2019-06-13 09:26:34 -04:00
Jeff Becker
7d443f83bc
add guard 2019-06-12 15:35:02 -04:00
Jeff Becker
d8aebf36fb
swap intros on message rejection 2019-06-12 10:30:47 -04:00
Jeff Becker
1883c63997
swap intros on message rejection 2019-06-12 10:27:25 -04:00
Jeff Becker
c60099002b
reverse dns for ipv6 2019-06-12 09:48:14 -04:00
Jeff Becker
eb10638497
Merge branch 'master' into ipv6-tun 2019-06-12 09:21:37 -04:00
Jeff Becker
4c1ac0e991
update for win32 parts 2019-06-12 09:20:00 -04:00
Jeff Becker
3174e581b7
make format 2019-06-12 09:15:02 -04:00
Jeff Becker
79cdff20a4
fix tpyos and pass event loop by l value 2019-06-12 09:14:38 -04:00
Jeff Becker
584cc61f8f
Merge remote-tracking branch 'origin/master' 2019-06-12 09:11:22 -04:00
Jeff
0bf5aa88cc
Merge pull request #2 from cathugger/ipv6-tun
proper IPv6 option processing
2019-06-11 20:06:45 -04:00
cathugger
ddaf0834e2
net/ip: correct IPv6 fragment processing, also check for length before modifying 2019-06-12 03:04:05 +03:00
cathugger
53f3be2013
net/ip: skip IPv6 option headers 2019-06-12 02:42:05 +03:00
Jeff Becker
ec3ddfa425
typofixes 2019-06-11 18:29:45 -04:00
Jeff
8407c20b91
Merge branch 'ipv6-tun' into ipv6-tun 2019-06-11 17:46:47 -04:00
cathugger
72b1ea613c
make format 2019-06-12 00:28:55 +03:00
cathugger
a9dac85c28
fix stuff 2019-06-12 00:27:06 +03:00
cathugger
88acadf415
net/ip: update names 2019-06-11 23:56:48 +03:00
cathugger
e085f3e6c5
net/ip: IPv6 packet deltachecksum 2019-06-11 23:52:13 +03:00
Michael
d244674339
Unfuck integer metrics 2019-06-11 21:46:51 +01:00
Michael
0a5ac10880
Unfuck metrics 2019-06-11 21:46:51 +01:00
Michael
a1ef2ca342
Tidy up metric code 2019-06-11 21:38:31 +01:00
Michael
cec2b97134
Log when we publish to metrictank 2019-06-11 21:38:31 +01:00
cathugger
6730af207f
net/ip: IPv6 TCP/UDP delta chksum funcs 2019-06-11 23:30:59 +03:00
cathugger
891f5d156c
net/ip: cleanup 2019-06-11 23:17:59 +03:00
Jeff Becker
a2d01ff2d3
fix exit traffic for v6 2019-06-11 15:57:52 -04:00
Jeff Becker
a780789b2c
handle ipv6 exit traffic 2019-06-11 15:48:21 -04:00
Jeff Becker
0cf09d6435
make exits support v6 probably 2019-06-11 15:42:11 -04:00
Jeff Becker
de51ef23bf
more 2019-06-11 14:23:53 -04:00
Jeff Becker
2403ab8f86
ipv6 2019-06-11 12:44:05 -04:00
Jeff Becker
3d64c5aacf
(more freebsd fixes) 2019-06-10 12:31:51 -04:00
Jeff Becker
0bca54b1da
another freebsd fix 2019-06-10 12:31:01 -04:00
Jeff Becker
6bf2ec94e6
again 2019-06-10 12:27:36 -04:00
Jeff Becker
8b63326d8c
try fixing freebsd build 2019-06-10 12:26:19 -04:00
Jeff Becker
4c0a52ac9c
try addressing issue #642 2019-06-10 11:54:04 -04:00
Jeff Becker
d95d03593a
put deltas in timestamps 2019-06-10 09:20:48 -04:00
Jeff Becker
bbeda7c014
use timetamps 2019-06-10 08:51:45 -04:00
Jeff Becker
9ec41b8831
update RC expiration logic, lookup more often and remove stale entries 2019-06-10 08:47:21 -04:00
Jeff Becker
73c1538518
fix 2019-06-06 07:16:03 -04:00
Jeff Becker
f7ccbf0c78
eh 2019-06-06 07:10:18 -04:00
Jeff Becker
f8e2edae28
fix 2019-06-06 07:06:34 -04:00
Jeff Becker
223f2702d3
Merge branch 'fix-big-ooooofff' 2019-06-06 06:53:54 -04:00
Jeff Becker
a33dbce680
try switching logic 2019-06-06 06:52:27 -04:00
Jeff Becker
92f8c059e9
please don't work 2019-06-05 16:25:45 -04:00
Jeff Becker
802fda4a1a
please don't work 2019-06-05 16:19:53 -04:00
Jeff Becker
3c4d557942
dont use timers use check for tick 2019-06-04 10:36:54 -04:00
Jeff Becker
f8026b8a2d
use latest tag not oldest tag in inbound convos 2019-06-04 09:53:50 -04:00
Jeff Becker
39b1f104a8
revert 2019-06-04 09:43:49 -04:00
Jeff Becker
471a4bf6dd
use reply intro for inbound sessions 2019-06-04 09:34:24 -04:00
Jeff Becker
c2803e3020
fix 2019-06-04 09:29:16 -04:00
Jeff Becker
cacc73db7b
add rc expiration (again) 2019-06-04 09:19:45 -04:00
Jeff Becker
35bb7444fe
make tcp work with libuv probably 2019-06-03 10:03:59 -04:00
Jeff Becker
4c7f8e8351
more libuv jizz 2019-06-03 08:02:54 -04:00
Jeff Becker
301bd260a4
try fixing tcp 2019-06-03 07:14:31 -04:00
Jeff Becker
b6a1fc4c86
use timers not idle 2019-06-02 17:37:29 -04:00
Michael
75430a234c
Convert to use memFn 2019-06-02 22:19:10 +01:00
Michael
3822fe2341
Create util::MemFn and memFn to make binding callbacks easier 2019-06-02 22:19:10 +01:00
Jeff Becker
9deafa4cb8
use libuv 2019-06-02 17:17:05 -04:00
Jeff Becker
0808060a61
fix previous commit 2019-05-31 06:59:47 -04:00
Jeff Becker
9ea13a9ee3
ingore paths that drop exit traffic 2019-05-31 06:57:41 -04:00
Jeff Becker
a51f4c8328
make debian stable happy 2019-05-29 08:41:00 -04:00
Jeff Becker
762a0c534f
Merge remote-tracking branch 'origin/master' 2019-05-29 08:09:02 -04:00
Michael
8323725509
Initial No-Op Crypto implementation 2019-05-29 09:46:34 +01:00
Michael
a62655d501
Move tests to use top-level LlarpTest 2019-05-28 20:45:09 +01:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers 2019-05-28 20:45:08 +01:00
Michael
aea0e32efc
Add CryptoManager class to provide a guard-style class to manage the current Crypto instance 2019-05-28 20:45:08 +01:00
Jeff Becker
e13e4646cc
fix previous commit 2019-05-28 10:07:00 -04: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
9c15f87da1
uncomment 2019-05-27 19:59:18 -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
1e57a7082d
don't log ips 2019-05-27 08:17:21 -04:00
Jeff Becker
372bc40032
add member to rpc response indicating weither or not a peer is a service node 2019-05-27 08:16:39 -04:00
Jeff Becker
c77e0aff8a
only check for ready paths when counting in future 2019-05-25 12:27:54 -04:00
Jeff Becker
fa25bfc797
more strict connection timeouts 2019-05-25 12:27:42 -04:00
Jeff Becker
27c101cc32
close timed out sessions 2019-05-25 10:54:30 -04:00
Jeff Becker
56e8147861
delete inbound messages right after being handled
be more virgous with utp acks
2019-05-25 10:46:22 -04:00
Jeff Becker
d113f06ebd
use for each loop
don't lookup expired routers we don't need that right now
2019-05-25 10:11:40 -04:00
Jeff Becker
fbf9b06685
* don't lookup routers in sendtoorqueue
* don't lookup routers that are not public when committing
2019-05-24 15:57:40 -04:00
Jeff Becker
5f55e53331
prefer inbound links over outbound links 2019-05-24 11:28:39 -04:00
Jeff Becker
72dbbd53d6
update docs and discard pending traffic on connect timeout to prevent memleak 2019-05-24 11:06:07 -04:00
Michael
3f53965b71
Remove all use of IBEncodeMessage 2019-05-24 03:01:36 +01:00
Jeff Becker
13190284f7
double path build timeout 2019-05-23 09:38:31 -04:00
Jeff Becker
8b2dd72472
Merge remote-tracking branch 'origin/master' 2019-05-23 09:21:31 -04:00
Jeff Becker
41523b934c
more 2019-05-23 09:13:03 -04:00
Jeff Becker
2ac89c0afb
DRY 2019-05-23 08:22:48 -04:00
Michael
d49e57aa8d
Fix thread safety issue in service::Endpoint::ProcessDataMessage 2019-05-22 21:28:17 +01:00
Jeff Becker
e85cc1bc8a
fix 2019-05-22 13:47:33 -04:00
Jeff Becker
b679dd7341
fixit 2019-05-22 13:38:02 -04:00
Jeff Becker
c355d37beb
use limited size queue for logic and singled threaded threadpool 2019-05-22 13:18:19 -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
Jeff
28623766c1
Merge pull request #617 from majestrate/master
changes after consensous
2019-05-22 08:06:26 -04:00
Jeff
3bd1aa50ff
Merge pull request #616 from michael-loki/reader_removal
Replace dict_reader/list_reader with version which doesn't involve indirection
2019-05-22 08:01:14 -04:00
Rick V
6caed8d8a5
jeff forgot to bump
(cherry picked from commit 05c96c6ed2550a81a252a26ad57654da8e14b122)
2019-05-22 05:14:16 -05:00
Michael
7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection 2019-05-22 01:36:03 +01:00
Jeff Becker
0f68e6b4dd
don't move, instead copy 2019-05-21 11:24:20 -04:00
Jeff Becker
5bcb205a9f
try allowing ip addresses in bind section 2019-05-20 08:32:11 -04:00
Jeff Becker
b86e834e1b
Merge remote-tracking branch 'origin/master' 2019-05-20 08:25:57 -04:00
Jeff Becker
73f1d34239
make format and revert stupid alloc changes 2019-05-20 08:19:33 -04:00
Michael
dd8a93a400
Apply rule of zero to code base 2019-05-19 23:11:07 +01:00
Jeff
65766a501f
Merge pull request #610 from michael-loki/more_thread_pool
Convert more things to use thread::ThreadPool
2019-05-19 17:16:14 -04:00
Jeff
a8941afbf4
Merge pull request #608 from michael-loki/fix_asan_build
Fix ASAN build
2019-05-19 17:15:57 -04:00
Jeff Becker
4862dec4be
commit recent stuff 2019-05-19 10:39:50 -04:00
Michael
06882338bb
Change ExecShellHookBackend to use a modern thread pool 2019-05-18 23:04:08 +01:00
Michael
b11bd01637
Drain diskworker pool on close 2019-05-18 23:04:08 +01:00
Michael
636bb2a17d
Convert router diskworker to use a modern ThreadPool 2019-05-18 23:04:08 +01:00
Michael
a83be769e2
More explicit error when keyfile is not a valid file 2019-05-18 18:34:25 +01:00
Michael
19578fa8fc
Fix ASAN build 2019-05-18 16:34:03 +01:00
Jeff Becker
5f823f8ba3
fix 2019-05-17 07:41:11 -04:00
Jeff Becker
a954f2000e
shift introduction 2019-05-17 07:36:08 -04:00
Jeff Becker
895e5659bb
Merge branch 'master' of ssh://github.com/loki-project/loki-network 2019-05-17 07:20:33 -04:00
Jeff Becker
8da3b51589
more hax 2019-05-17 07:18:42 -04:00
Rick V
4815e0d04c
move tun autoconfig from config parser to tun setup
refactor/combine common code

DRY

(cherry picked from commit 2e44d29d4a93aa22d99d62b457071b14516b83ac)
2019-05-17 03:10:00 -05:00
Jeff Becker
81f73bccc2
pick newer intros only 2019-05-16 19:37:32 -04:00
Jeff Becker
04499db0c5
add comment 2019-05-16 17:05:29 -04:00
Jeff Becker
baf4f5b495
hard code range for now as a /16 don't revert me 2019-05-16 17:05:03 -04:00
Jeff Becker
20efac9015
Merge remote-tracking branch 'origin/master' 2019-05-16 14:57:00 -04:00
Jeff Becker
a4e90ee769
hax to make it work. 2019-05-16 14:55:12 -04:00
Jeff Becker
6058b6f195
revert breaking change 2019-05-16 10:30:47 -04:00
Michael
f734ffeae4 Fixup MSVC build 2019-05-15 23:03:24 +01:00
Jeff Becker
351c241c0f
more 2019-05-15 12:15:20 -04:00
Jeff Becker
a793eee4b7
fix 2019-05-15 11:56:50 -04:00
Jeff Becker
5d388bc9f2
meh 2019-05-15 11:54:26 -04:00
Jeff Becker
d3a98db267
don't resize frames 2019-05-15 10:55:01 -04:00
Jeff Becker
0f6f03a77a
const 2019-05-14 13:35:01 -04:00
Jeff Becker
8bee0a3d5e
fix 2019-05-14 12:41:47 -04:00
Jeff Becker
06be908369
use 1 for dht exploration 2019-05-14 12:15:46 -04:00
Jeff Becker
ec100cffee
attempt every time 2019-05-14 11:51:56 -04:00
Jeff Becker
4b79912dc8
more 2019-05-14 10:36:18 -04:00
Jeff Becker
d9463d534c
prevent crash 2019-05-14 10:27:12 -04:00
Jeff Becker
686fb311ad
null check 2019-05-12 17:21:18 -04:00
Jeff Becker
b5602228a3
don't kill nodes as service node 2019-05-12 13:54:30 -04:00
Jeff Becker
eb5afb41a1
connect out to committed routers if we don't have a session each tick 2019-05-12 10:09:26 -04:00
Jeff Becker
990acc1ff9
disable 2019-05-11 19:40:53 -04:00
Jeff Becker
944eaedea6
aaaaaaA 2019-05-11 18:15:31 -04:00
Jeff Becker
8018207e98
don't kill bootstrap 2019-05-11 16:53:08 -04:00
Jeff Becker
d7fb54c957
mor potatoe 2019-05-11 16:47:37 -04:00
Jeff Becker
6b28b46c78
potatoe 2019-05-11 15:48:17 -04:00
Jeff Becker
87bdfa6e78
aaaaaaaaaaAAAah 2019-05-11 11:10:17 -04:00
Jeff Becker
24a27df402
i am a potatoe 2019-05-11 10:56:11 -04:00
Jeff Becker
78816b2315
bump version 2019-05-11 10:44:14 -04:00
Jeff Becker
d2ef6fc77b
just use new/delete :^) 2019-05-11 10:34:42 -04:00
Jeff Becker
f832c9a593
use shared_ptr 2019-05-11 10:13:35 -04:00
Jeff
84ce9460f5 fix 2019-05-11 09:52:44 -04:00
Jeff
e21f1020ee don't std::move 2019-05-11 08:48:54 -04:00
Jeff
06f8bb2f42 add blacklist-snode option 2019-05-10 12:19:33 -04:00
Jeff
bae926d3d6 fix osx compile 2019-05-10 12:18:26 -04:00
Jeff Becker
faacc86eb5
qualify 2019-05-10 07:52:50 -04:00
Jeff Becker
11b9aea4a7
fix 2019-05-10 07:49:56 -04:00
Jeff Becker
018dd008ec
add custom single threaded allocator for utp buffers
fix up test net stuff
2019-05-09 16:28:56 -04:00
Jeff Becker
85fcb4bd84
fix it up 2019-05-09 11:54:22 -04:00
Jeff Becker
1d74585637
don't crash when we get no routers from lookup 2019-05-09 11:51:21 -04:00
Jeff Becker
a0c9d912f5
make it compile
(faaaaaaaaaaaaaaaAAAAAAAAAaaaaaAAaaaaaaaaAAaaaAAAAAAAAaak)
2019-05-09 11:39:12 -04:00
Jeff Becker
ecc39428f6
count routers correctly 2019-05-09 11:36:39 -04:00
Jeff Becker
767b521325
log node name 2019-05-09 11:36:14 -04:00
Jeff Becker
e80f7419b0
check for allowed by network 2019-05-09 08:48:21 -04:00
Jeff Becker
15fd9c1bef
explicit not found for non staked nodes 2019-05-09 08:38:21 -04:00
Jeff Becker
8853e1d3d8
when whitelisted chose random routers from whitelist 2019-05-09 08:31:10 -04:00
Jeff Becker
8f68ceeb11
force ipv4 2019-05-09 08:24:38 -04:00
Jeff Becker
9b379a1659
add explicit constructor 2019-05-08 11:42:38 -04:00
Jeff Becker
9d7ff9b35e
compare based on pointer when one or both are nullptr 2019-05-08 11:09:57 -04:00
Jeff Becker
ad019cab71
add changes for review 2019-05-08 10:59:28 -04:00
Jeff Becker
3821b4801c
fix intro section to not use first hop as intro 2019-05-08 10:54:03 -04:00
Jeff Becker
e7a40ac4e5
Revert "permit outbound context to select an intro who is a first hop."
This reverts commit c8c00e2d9f.
2019-05-08 10:49:09 -04:00
Jeff Becker
c8c00e2d9f
permit outbound context to select an intro who is a first hop. 2019-05-08 10:43:56 -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
982a751cea
minor tweak 2019-05-08 09:08:21 -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
a4ed8991b8
urgent build exit 2019-05-07 13:27:32 -04:00
Jeff Becker
7c782440fb
round robin the exit endpoints on exit handler 2019-05-07 12:07:44 -04:00
Jeff Becker
32363ea622
more vigorus exit path building 2019-05-07 11:08:57 -04:00
Jeff Becker
b44372bdc5
emplace queue 2019-05-07 11:08:49 -04:00
Jeff Becker
dee639500a
set intro 2019-05-07 10:11:10 -04:00
Jeff Becker
744ebac579
only use ready paths 2019-05-07 09:49:49 -04:00
Jeff Becker
e08c8bf919
correct timeout for dht request 2019-05-07 09:19:36 -04:00
Jeff Becker
61d42811be
prevent crash 2019-05-07 09:04:43 -04:00
Jeff Becker
12589c4a3a
have exit session do aligned build on demand 2019-05-07 08:34:02 -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
66fbac7f6e
Merge remote-tracking branch 'origin/master' 2019-05-07 07:36:23 -04:00
Jeff Becker
fa7a631c1b
Merge remote-tracking branch 'origin/master' 2019-05-07 06:43:57 -04:00
Michael
1744ae7686
Tidy up service endpoint a bit more 2019-05-07 09:29:47 +01:00
Jeff Becker
e42f4c99f1
try preventing crash 2019-05-06 14:37:32 -04:00
Jeff Becker
f0e3653842
spread exit traffic across all paths 2019-05-06 13:32:53 -04:00
Jeff
62355efa11
Merge pull request #595 from majestrate/master
remove random timer fuzz
2019-05-06 12:18:24 -04:00
Jeff Becker
b9adf90fb9
remove random timer fuzz 2019-05-06 12:13:41 -04:00
Jeff
e3ec082c5f
Merge pull request #594 from majestrate/master
decrease minimum path build interval
2019-05-06 12:01:50 -04:00
Jeff Becker
6c17bf35b3
decrease minimum path build interval 2019-05-06 12:00:10 -04:00
Jeff
dd57e8aa05
Merge pull request #593 from majestrate/master
rebuild exit paths on same hops if they die
2019-05-06 10:56:58 -04:00
Jeff Becker
5fa85acaf7
rebuild exit paths if they die 2019-05-06 10:54:05 -04:00
Jeff
0c7c2cc2b1
Merge pull request #592 from majestrate/master
recent changes
2019-05-06 10:23:05 -04:00
Jeff Becker
779b1f4df5
more timeout tweaks and disable profiling on service nodes 2019-05-06 10:21:47 -04:00
Jeff Becker
728c6005a3
propagate strict-connect to tun handler for hooks 2019-05-06 08:42:21 -04:00
Jeff
236434e5c3
Merge pull request #591 from despair86/upstream-push
build fixes, but keep lto
2019-05-06 05:51:54 -04:00
Rick V
2e49c2ffc7
fix non-loonix 2019-05-05 23:02:24 -05:00
Rick V
7788d6ec3c
fix windows
lto stuff remains for now
since native builds work

(cherry picked from commit 37814472af5e7c35d514bae16d19b08050765d52)

i'm not porting the UNIX-tier cppfs thing

(cherry picked from commit d6edbd789534d4fd0bce6c8c2418347cd80bebdb)

none of this had to be specified directly ffs

(cherry picked from commit 5dbefa7131a6fe0b2006c90ecdba7e466fdd1ecc)

stop breaking shit reee

(cherry picked from commit 14be89902ccc75a7fc21863593da393ca976d0d4)
2019-05-05 23:01:51 -05:00
Jeff Becker
69ffef30bb
increase dht request timeout from 5s to 30s 2019-05-05 19:15:58 -04:00
Jeff Becker
b02a3715df
call hook on timeout 2019-05-05 10:42:13 -04:00
Jeff Becker
fc3db98e66
change log priority 2019-05-05 10:15:48 -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
d05471c989
bump version to 0.4.1 2019-05-04 08:39:02 -04:00
Jeff Becker
241dba0476
fix dns for smaller domains 2019-05-03 14:56:31 -04:00
Jeff Becker
b1b6076742
fix 2019-05-03 13:57:05 -04:00
Jeff Becker
2775de8675
try connect on no exit 2019-05-03 13:42:48 -04:00
Jeff Becker
fc3bccb161
revert 2019-05-03 10:07:17 -04:00
Jeff Becker
0cc8517bca
add error messages to ini parser and catch base cases. 2019-05-03 09:39:25 -04:00
Jeff Becker
9bc7508b5b
remove nuint128_t 2019-05-03 09:25:57 -04:00
Jeff Becker
d423ee02d2
use shared_ptr 2019-05-03 09:15:03 -04:00
Jeff Becker
986e831579
make bundle-rc option configurable on snode tld 2019-05-02 14:11:44 -04:00
Jeff Becker
e0892f7d23
gfdi 2019-05-02 12:33:53 -04:00
Jeff Becker
407f895c86
ooff 2019-05-02 12:31:08 -04:00
Jeff Becker
5b49008bca
more 2019-05-02 12:23:31 -04:00
Jeff Becker
4404d272b2
remove uint128_t for now 2019-05-02 11:19:21 -04:00
Jeff Becker
a97e1e37a7
dont filter intros they are already good 2019-05-02 09:47:22 -04:00
Jeff Becker
aa5d4c17fe
win32 guards 2019-05-01 11:36:20 -04:00
Jeff Becker
6b2ad94731
fix compile warning 2019-05-01 09:53:43 -04:00
Jeff Becker
e060082441
hook every dns for .loki and .snode when applicable
make {n,h}uint{32,16}_t templated type.
2019-05-01 09:40:10 -04:00
Jeff
59e6a4bc3d make snode work again probably 2019-04-30 17:36:27 -04:00
Jeff Becker
20ba2c7b8c
try not to die 2019-04-30 12:57:59 -04:00
Jeff Becker
cde4fcc00a
queue pending traffic 2019-04-30 12:49:34 -04:00
Jeff Becker
bb47d612b3
more 2019-04-30 12:07:17 -04:00
Jeff Becker
0b68d3db5d
move stuff arround so that flushing queues are done in the correct event loops
TODO: locking
2019-04-30 11:09:42 -04:00
Jeff Becker
2a7ebce8f4
Merge remote-tracking branch 'origin/master' 2019-04-30 11:01:13 -04:00
Jeff Becker
5e0acc1197
separate upstream/downstream flush 2019-04-30 09:56:39 -04:00
Jeff Becker
d50b18d7b0
try fixing leak also make format 2019-04-30 08:22:15 -04:00
Michael
725ee293c1
Refactor well named functionality in service::Endpoint into new struct 2019-04-30 02:06:31 +01:00
Jeff
a5cc5225ab static function 2019-04-29 14:34:47 -04:00
Jeff
359804e8db fix size 2019-04-29 14:34:38 -04:00
Jeff
ac7b331ca0 unconditional pump 2019-04-29 14:34:29 -04:00
Jeff
7cb659343b static function 2019-04-29 14:27:30 -04:00
Jeff
f8679b6405 fix size 2019-04-29 14:06:16 -04:00
Jeff
785f1366ed unconditional pump 2019-04-29 13:13:40 -04:00
Jeff
27fac68716 fix 2019-04-28 14:22:38 -04:00