Commit Graph

4940 Commits

Author SHA1 Message Date
Jeff Becker
2af64671bf
make it compile 2020-01-14 13:10:10 -05:00
Jeff Becker
0526fef37b
store RCs if valid 2020-01-14 13:08:27 -05:00
Jeff Becker
495ad6d566
testnet patch 2020-01-14 07:07:29 -05:00
Jeff Becker
09f5f6dfa7
disable iterative lookup 2020-01-14 07:07:10 -05:00
Jeff
0e2c5736a8
Merge pull request #1034 from majestrate/dht-timeout-fixes-2020-01-10
dht timeout tweak
2020-01-10 17:35:56 -05:00
Jeff
0ad2809ac7
Merge pull request #1033 from majestrate/prevent-segfault-2020-01-10
prevent segfault
2020-01-10 17:35:49 -05:00
Jeff Becker
78cdf8f96b
variable lookup timeout on participants 2020-01-10 11:23:30 -05:00
Jeff Becker
8bb492da6e
dht timeout tweak 2020-01-10 10:45:25 -05:00
Jeff Becker
77f0944d6d
use shared_from_this 2020-01-10 07:35:00 -05:00
Jeff
a3bd44ae4f
Merge pull request #1032 from majestrate/dht-explore-faster-2020-01-09
explore dht faster
2020-01-10 07:33:32 -05:00
Jeff
7b36f45f26
Merge pull request #1031 from jagerman/avx2-detection-again
Fix avx2 cpu detection on amd64 (again)
2020-01-09 13:22:54 -05:00
Jeff Becker
78e325c4c5
always lookup introset from nearest router 2020-01-09 07:21:38 -05:00
Jeff Becker
2d82e931da
try doing lookup from close router, randomize when above lookup threshold 2020-01-09 06:26:41 -05:00
Jeff Becker
b2784dd5ec
explore faster 2020-01-09 06:14:04 -05:00
Jason Rhinelander
955c475dbe Enable cpu detection on amd64
The optional runtime detection shouldn't rely on being compiled in avx2
mode.
2020-01-08 20:45:25 -04:00
Jeff
71bed2e52d
Merge pull request #1030 from loki-project/dev
Dev into master for 0.6.2 release
2020-01-08 17:23:15 -05:00
Jeff
ac46d99107
Merge pull request #1029 from majestrate/expire-snode-sessions-based-off-activity-2020-01-08
Expire snode sessions based off activity
2020-01-08 16:37:17 -05:00
Jeff Becker
eb174923ad
m_LastUse shouldn't be 0 ever now 2020-01-08 11:05:29 -05:00
Jeff Becker
1a80153352
mark used on costructed so it doesn't go away 2020-01-08 11:05:04 -05:00
Jeff Becker
9e50920dad
dont update timestamp of last use using when we get exit only when we use it 2020-01-08 11:03:52 -05:00
Jeff
cefdaeadee
Merge pull request #1028 from majestrate/remove-assert-with-sideffect-2020-01-08
remove side effect from address detection assert
2020-01-08 10:38:34 -05:00
Jeff Becker
a96fd645c5
remove side effect from address detection assert 2020-01-08 09:57:23 -05:00
Jeff
71d5fd27d0
Merge pull request #1005 from majestrate/staitc-link-2019-12-26
make static linking actually static
2020-01-08 09:00:57 -05:00
Jeff
2e15310afb
Merge pull request #1025 from jagerman/download-sodium-avx2-fix
Fix ntru avx2 compilation when DOWNLOAD_SODIUM
2020-01-07 19:06:29 -05:00
Jason Rhinelander
6069b726e1 Fix ntru avx2 compilation when DOWNLOAD_SODIUM
We don't explicitly have to link against it, but it doesn't hurt *and*
this also pulls in the proper sodium include path, which we do need.
2020-01-07 19:58:18 -04:00
Jeff Becker
da5eb913e9
use proper cmake call 2020-01-07 18:14:26 -05:00
Jeff Becker
fde0ca374f
i hate curl 2020-01-07 18:14:25 -05:00
Jeff Becker
336a748695
make it build in normal mode too 2020-01-07 18:14:25 -05:00
Jeff Becker
77213d7fa4
add hashpinned curl tarball for static build 2020-01-07 18:14:25 -05:00
Jeff Becker
80cbddde7b
fixups for review 2020-01-07 18:14:25 -05:00
Jeff Becker
7ffc786bce
fix up docs 2020-01-07 18:14:25 -05:00
Jeff Becker
2ce592e4af
static link with docs 2020-01-07 18:14:25 -05:00
Jeff
de819d3876
Merge pull request #1024 from jagerman/ntru-avx2-compilation
Enable AVX2 compilation whenever possible
2020-01-07 18:06:52 -05:00
Jason Rhinelander
7cec0db371 Simplify CRYPTO_FLAGS logic, remove RYZEN_HACK
We currently spend a bunch of time setting CRYPTO_FLAGS and then just
completely wipe it out if NATIVE_BUILD is specified.

The AMD_RYZEN_HACK is really not needed; it was only some early CPU
microcode and compiler combinations that had trouble detecting Ryzen's
FMA3 support (and Ryzen *doesn't* properly support FMA4--it can be
forced on and runs, but apparently it can give wrong results).
2020-01-07 18:57:40 -04:00
Jason Rhinelander
6f3757e933 Modernize non-AVX2 tuning to haswell
Tuning to an ancient architecture doesn't make a lot of sense; we want
to support the ancient architecture, but don't want to optimize for it.

Also change the AVX2 tuning to use haswell so that optimizations don't
depend on the CPU in the system the build runs on.
2020-01-07 18:53:00 -04:00
Jason Rhinelander
210cb837c6 Enable -avx2 -fma for ntru even when compiling without AVX2 support
This code is runtime guarded with CPU feature tests, so even if we are
making a non-AVX2 build we still want to compile the avx code path with
-mavx2 -mfma so that it can be opportunistically used when run on
AVX2-supporting CPUs (particularly for the debs and release binaries).
2020-01-07 18:39:46 -04:00
Jeff
e223f5d023
Merge pull request #1016 from loki-project/dev
propagate dev into master
2020-01-07 15:37:26 -05:00
Jeff
cceb531e58
version bump 2020-01-07 14:41:41 -05:00
Jeff
a5f8568c9c
Merge pull request #1020 from majestrate/dev
recent fixes
2020-01-07 14:36:40 -05:00
Jeff Becker
58c601c73d
update readme to include pkg-config 2020-01-07 14:33:31 -05:00
Jeff Becker
37b11614d0
if select_random_hop_excluding returns false we should probably break anyways so do that 2020-01-07 14:31:35 -05:00
Jeff Becker
c6d77e72f2
fix up tcp connection logic 2020-01-07 13:04:12 -05:00
Jeff Becker
989146f63a
handle write failure 2020-01-07 13:03:58 -05:00
Jeff Becker
c38c055488
return result 2020-01-07 13:03:53 -05:00
Jeff Becker
42f721d691
don't queue on full write queue 2020-01-07 13:03:47 -05:00
Jeff Becker
6d42b5f997
reduce logic calls 2020-01-07 13:03:41 -05:00
Jeff Becker
8a5365d9a6
diversify endpoints 2020-01-07 13:00:15 -05:00
Jeff Becker
9f153f12e0
actually connect to random routers 2020-01-07 13:00:09 -05:00
Jeff Becker
a3e7324e9a
make it compile 2020-01-07 13:00:03 -05:00
Jeff Becker
c3b14b32b4
relays do profiling and not hand out "shit" routers in explore 2020-01-07 12:59:53 -05:00