Jeff Becker
5fd15fa044
generate keys in unit test
2021-03-04 15:46:12 -05:00
Jeff Becker
6c8e5256d6
catchAll -> testAll
2021-03-04 15:45:52 -05:00
Jeff Becker
60bfdacc23
get rid of the rest of gtest/gmock
2021-03-04 15:41:53 -05:00
lyyn
ece91e87fc
Migrate tests from gtest to catch2
2021-03-04 15:41:42 -05:00
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.
2021-03-04 15:29:09 -05:00
Jeff Becker
7dbd25f271
don't leave old multi ack codepath in
2021-03-04 15:25:11 -05:00
Jeff Becker
8a4417cb1a
reduce test message count so it can pass
2021-03-04 15:21:51 -05:00
Jeff Becker
c9ff917e0d
revert priority queue ordering change
2021-03-04 15:21:51 -05:00
Jeff Becker
ad3c23ba2b
simplify call
2021-03-04 15:21:51 -05:00
Jeff Becker
5cffc3b0f8
consolidate rx message handling in iwp
...
* add toggle flag for using multi ack
* check replay filter before processing message
2021-03-04 15:21:51 -05:00
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).
2021-03-04 15:21:51 -05:00
Jeff Becker
74f707ee01
only do single ack packets
2021-03-04 15:21:51 -05:00
Jeff
4992629f20
Merge pull request #1563 from majestrate/dont-multiplex-from-outbound-context-2021-03-03
...
use lowest latency path for send context
2021-03-04 15:16:40 -05:00
Jeff
d5baeaa425
Merge pull request #1564 from majestrate/exit-backwards-comapt-issue-2021-03-03
...
unbreak ipv4 exits
2021-03-04 14:30:53 -05:00
Jeff
e379200ba6
Merge pull request #1566 from majestrate/redo-cmake-setcap-check-2021-03-04
...
redo cmake setcap check
2021-03-04 14:14:04 -05:00
Jeff Becker
b9d439558f
dont include lokinet-bootstrap.ps1 in ci builds
2021-03-04 14:05:44 -05:00
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
2021-03-04 14:02:53 -05:00
Jeff
32ed709839
Merge pull request #1565 from majestrate/ci-fixup-2021-03-04
...
explicitly turn off setcap on ci builds so they pass
2021-03-04 12:39:14 -05:00
Jeff Becker
7060a60c84
enable route poker poking before going "up"
2021-03-04 06:22:23 -05:00
Jeff Becker
849c8b6aa8
explicitly turn off setcap on ci builds so they pass
2021-03-04 06:00:03 -05:00
Jeff Becker
f77cbfb48e
fixes for ipv4 traffic: dont use new range because that breaks backwards comapt
2021-03-03 20:08:38 -05:00
Jeff Becker
f67668f0a6
use lowest latency path for send context
2021-03-03 18:42:10 -05:00
Jeff
f2b234d6c3
Merge pull request #1539 from majestrate/path-algorithm-flavors-2021-02-18
...
add option to enforce unique netblocks per path.
2021-03-03 14:06:40 -05:00
Jeff
b4b8b84e57
Merge pull request #1548 from majestrate/lns-mx-records-2021-02-25
...
add mx records to lns names
2021-03-03 14:06:28 -05:00
Jeff Becker
d6567614e3
use mutable lambda instead of shared_ptr for handling mx dns reply for lns
2021-03-03 10:37:31 -05:00
Jeff
d0e4069762
Merge pull request #1554 from majestrate/cmake-check-for-setcap-2021-03-01
...
add explicit check for setcap
2021-03-03 10:28:24 -05:00
Thomas Winget
49037e8be9
Merge pull request #1560 from jagerman/gradle-cache
...
Allow multiple gradles to run on the same box
2021-03-02 23:24:14 -05:00
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.
2021-03-02 21:23:37 -04:00
Jason Rhinelander
c2689ee7e6
Merge pull request #1558 from majestrate/disallow-ci-fail-android-2021-03-02
...
disallow fail on ci pipeline for android builds
2021-03-02 20:51:18 -04:00
Jeff Becker
b8d7d0327f
disallow fail on ci pipeline for android builds
2021-03-02 15:21:39 -05:00
Jeff
f685d615bf
Merge pull request #1537 from majestrate/android-works-now-2021-02-11
...
Android
2021-03-02 14:08:40 -05:00
Jeff
7c02b6ea08
Merge pull request #1550 from majestrate/docker-ci-jizz-2021-02-25
...
speed up ci pipeline
2021-03-02 13:30:20 -05:00
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
2021-03-02 13:18:22 -05:00
Jeff Becker
d4112b157c
add explicit check for setcap binary when doing setcap so when it's missing it's not a nop / silent failure
2021-03-02 07:22:31 -05:00
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
2021-03-02 07:21:57 -05:00
Jeff Becker
b59a92aa01
add mx records to lns names
2021-03-02 07:21:05 -05:00
Jeff Becker
ed97d29c97
fix up pyllarp parts
...
* expose paths config in pyllarp
* fix up pyllarp unit tests
2021-03-02 07:20:29 -05:00
Jeff Becker
0fa91381ba
add llarp::CSRNG for cryptographically secure random number generator for use in std::shuffle
2021-03-02 07:20:29 -05:00
Jeff Becker
a88aec5f01
fix typo
2021-03-02 07:20:29 -05:00
Jeff Becker
a3585caa70
add value 0 to disable unique-range-size
2021-03-02 07:20:29 -05:00
Jeff Becker
f7424b8bbe
dont use std::optional
2021-03-02 07:20:29 -05:00
Jeff Becker
4478cf6f72
use pointers to entries instead of lookups by key
2021-03-02 07:20:29 -05:00
Jeff Becker
b865ffb736
use 64-bit Mersenne Twister instead of 32 bit flavor in nodedb
2021-03-02 07:20:29 -05:00
Jeff Becker
e584cbe44d
make non 64 bit platforms happy
2021-03-02 07:20:29 -05:00
Jeff Becker
3425069b41
feedback from jason
...
* use emplace in PeerSectionConfig::Acceptable use insert everywhere else
* use const l-value references
* fix typos and spelling mistakes
2021-03-02 07:20:29 -05:00
Jeff Becker
5d465264a8
truly random access in nodedb iteration
2021-03-02 07:20:29 -05:00
Jeff Becker
9457da27d9
add option to enforce unique netblocks per path.
2021-03-02 07:20:28 -05:00
Jeff
f2f0486f13
Merge pull request #1555 from majestrate/lokimq-oxenmq-rename-2021-03-01
...
loki-mq -> oxen-mq
2021-03-02 05:15:51 -05:00
Jeff Becker
979a652446
loki-mq -> oxen-mq
2021-03-01 07:57:57 -05:00
Jeff
4565f31990
Merge pull request #1549 from jagerman/no-siit-tests
...
Fix SockAddr test code
2021-02-25 12:09:49 -05:00