Commit Graph

6644 Commits (ffe9bbc984da2f0c48dde2883718bfe7db38f543)
 

Author SHA1 Message Date
Jason Rhinelander ffe9bbc984 Tweak clang-tidy rules
Turn off modernize-use-trailing-return because it's *really* annoying
(and clangd picks it up when using it for editing).

Turn off modernize-use-nodiscard as well because it's already annoying.

Add bugprone-* as well because it includes a lot of useful checks.
3 years ago
Jason Rhinelander dfb62d06ce Shut up noisy catch tests 3 years ago
Jason Rhinelander 8b00eacabf Fix signed/unsigned char comparison bug
These functions would not working properly if given a high bit char
value.
3 years ago
Jason Rhinelander 00df8b85da Bump required oxenmq version
Current lokinet dev relies on something from oxenmq dev branch which is
in the not-yet-released next version; without this lokinet tries using
the system 1.2.3 install, which then fails the build.
3 years ago
Jason Rhinelander e3aff6c36c Add more junk & clangd symlinks to .gitignore
Ignore any root directory starting with build so that you can have many
build directories (build, build2, build-win32, ...) that get ignored.

Add .cache which clangd creates

Ignore compile_commands.json (and generate it by default) which helps
clangd, but needs to be symlinked to a compile_commands.json in a build
dir so isn't suitable for inclusion in the repo.
3 years ago
Jeff db515e48ec
Merge pull request #1561 from majestrate/catch2_migrate-2021-03-03
totally remove gtest/gmock from unit tests.
3 years ago
Jeff abf057d6e3
Merge pull request #1536 from majestrate/memleak-fix-2021-02-15
plug super slow memory leak
3 years ago
Jeff 72c9b0f1b4
Merge pull request #1535 from majestrate/no-iwp-multiack-2021-02-13
only do single ack packets
3 years ago
Jeff Becker 4cf0f1ee35
decaying hashset unit test fixes 3 years ago
Jeff Becker 5fd15fa044
generate keys in unit test 3 years ago
Jeff Becker 6c8e5256d6
catchAll -> testAll 3 years ago
Jeff Becker 60bfdacc23
get rid of the rest of gtest/gmock 3 years ago
lyyn ece91e87fc
Migrate tests from gtest to catch2 3 years ago
Jeff Becker ec0f45eeb7
plug memory leak in outbound message queue.
sometimes we use rxid in our pathid so we need to clear those queues too.
if we don't it'll leak from never clearing those queues.
3 years ago
Jeff Becker 7dbd25f271
don't leave old multi ack codepath in 3 years ago
Jeff Becker 8a4417cb1a
reduce test message count so it can pass 3 years ago
Jeff Becker c9ff917e0d
revert priority queue ordering change 3 years ago
Jeff Becker ad3c23ba2b
simplify call 3 years ago
Jeff Becker 5cffc3b0f8
consolidate rx message handling in iwp
* add toggle flag for using multi ack
* check replay filter before processing message
3 years ago
Jeff Becker e6ac7e721d
use a std::map instead of a std::unordered_map for holding message buffers by their sequentially increasing message id.
when retransmissions happen, they will be executed in a deterministic order by their delivery id.
this reduces the jitter from delayed message delivery on link layer as with an unordered map the order of iteration is "random",
so when we iterate all messages for retransmission we do it lowest id first (the messages queued first).
3 years ago
Jeff Becker 74f707ee01
only do single ack packets 3 years ago
Jeff 4992629f20
Merge pull request #1563 from majestrate/dont-multiplex-from-outbound-context-2021-03-03
use lowest latency path for send context
3 years ago
Jeff d5baeaa425
Merge pull request #1564 from majestrate/exit-backwards-comapt-issue-2021-03-03
unbreak ipv4 exits
3 years ago
Jeff e379200ba6
Merge pull request #1566 from majestrate/redo-cmake-setcap-check-2021-03-04
redo cmake setcap check
3 years ago
Jeff Becker b9d439558f
dont include lokinet-bootstrap.ps1 in ci builds 3 years ago
Jeff Becker 4540c964f5
rework cmake install targets
* redo setcap on linux so that it's required to do install targets on linux
* add -DWITH_SETCAP=OFF option to bypass setcap requirement on linux
* remove lokinet-bootstrap.ps1 as we bundle the bootstrap in the win32 installer now
* remove references to lokinet-bootstrap.ps1 in cmake
3 years ago
Jeff 32ed709839
Merge pull request #1565 from majestrate/ci-fixup-2021-03-04
explicitly turn off setcap on ci builds so they pass
3 years ago
Jeff Becker 7060a60c84
enable route poker poking before going "up" 3 years ago
Jeff Becker 849c8b6aa8
explicitly turn off setcap on ci builds so they pass 3 years ago
Jeff Becker f77cbfb48e
fixes for ipv4 traffic: dont use new range because that breaks backwards comapt 3 years ago
Jeff Becker f67668f0a6
use lowest latency path for send context 3 years ago
Jeff f2b234d6c3
Merge pull request #1539 from majestrate/path-algorithm-flavors-2021-02-18
add option to enforce unique netblocks per path.
3 years ago
Jeff b4b8b84e57
Merge pull request #1548 from majestrate/lns-mx-records-2021-02-25
add mx records to lns names
3 years ago
Jeff Becker d6567614e3
use mutable lambda instead of shared_ptr for handling mx dns reply for lns 3 years ago
Jeff d0e4069762
Merge pull request #1554 from majestrate/cmake-check-for-setcap-2021-03-01
add explicit check for setcap
3 years ago
Thomas Winget 49037e8be9
Merge pull request #1560 from jagerman/gradle-cache
Allow multiple gradles to run on the same box
3 years ago
Jason Rhinelander 6c176330a4 Allow multiple gradles to run on the same box
/cache is shared among multiple runners that can potentiall run at
once, but gradle's cache is retarded and just completely blocks anything
from using the cache for the span of the entire build.  Work around it
by sticking the unique builder identifier in the cache path.
3 years ago
Jason Rhinelander c2689ee7e6
Merge pull request #1558 from majestrate/disallow-ci-fail-android-2021-03-02
disallow fail on ci pipeline for android builds
3 years ago
Jeff Becker b8d7d0327f
disallow fail on ci pipeline for android builds 3 years ago
Jeff f685d615bf
Merge pull request #1537 from majestrate/android-works-now-2021-02-11
Android
3 years ago
Jeff 7c02b6ea08
Merge pull request #1550 from majestrate/docker-ci-jizz-2021-02-25
speed up ci pipeline
3 years ago
Thomas Winget 4c630e0437 Large collection of changes to make android work
- Previous android java and jni code updated to work, but with much love
  still needed to make it work nicely, e.g. handling when the VPN is
  turned off.

- DNS handling refactored to allow android to intercept and handle DNS
  requests as we can't set the system DNS to use a high port
  (and apparently Chrome ignores system DNS settings anyway)

- add packet router structure to allow separate handling of specific
  intercepted traffic, e.g. UDP traffic to port 53 gets handled by our
  DNS handler rather than being naively forwarded as exit traffic.

- For now, android lokinet is exit-only and hard-coded to use exit.loki
  as its exit.  The exit will be configurable before release, but
  allowing to not use exit-only mode is more of a challenge.

- some old gitignore remnants which were matching to things we don't
  want them to (and are no longer relevant) removed

- some minor changes to CI configuration
3 years ago
Jeff Becker d4112b157c
add explicit check for setcap binary when doing setcap so when it's missing it's not a nop / silent failure 3 years ago
Jeff Becker 2655a64da0
redo ci pipeline:
* make cached docker containers for ci
* remove old docker files from root of repo
* use cached docker containers for ci
3 years ago
Jeff Becker b59a92aa01
add mx records to lns names 3 years ago
Jeff Becker ed97d29c97
fix up pyllarp parts
* expose paths config in pyllarp
* fix up pyllarp unit tests
3 years ago
Jeff Becker 0fa91381ba
add llarp::CSRNG for cryptographically secure random number generator for use in std::shuffle 3 years ago
Jeff Becker a88aec5f01
fix typo 3 years ago
Jeff Becker a3585caa70
add value 0 to disable unique-range-size 3 years ago
Jeff Becker f7424b8bbe
dont use std::optional 3 years ago