Commit Graph

6820 Commits

Author SHA1 Message Date
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
Jason Rhinelander
e2f96631a6 Fix SockAddr test code
Exception error messages changed and broke tests

Also adds two test cases for the separate string/port constructor.
2021-02-25 12:21:18 -04:00
Jeff
541912326b
Merge pull request #1545 from jagerman/no-siit
SockAddr fixes and cleanups
2021-02-24 19:46:39 -05:00
Jason Rhinelander
56cbef6086 SockAddr fixes and cleanups
- Remove SIIT from method names & comments because we're doing IPv4
mapped addresses (::ffff:0:0/96) rather than actual SIIT
(::ffff:0:0:0/96).

- add constructor taking a string+numeric port (and then don't allow a
port in the string).

- simplify IP string parsing by using parse_int()

- replace addrIsV4 with call to ipv6_is_mapped_ipv4 (this also fixes a
bug where addrIsV4 was not checking for leading 0s and so could return
true for a public IPv6 that happened to have ffff in the wrong spot).
2021-02-24 19:34:42 -04:00
Jeff
291aa2e56d
Merge pull request #1526 from majestrate/interactive-auth-2021-01-01
feedback auth result via lmq rpc
2021-02-24 14:10:06 -05:00
Jeff Becker
dcdd147e74
use static_cast with enum class 2021-02-24 14:08:21 -05:00
Jeff Becker
5fe7e00765
make AuthResultCode an enum class 2021-02-24 14:08:21 -05:00
Jeff Becker
94b8743b1c
fix typo 2021-02-24 14:08:21 -05:00
Jeff Becker
5b2abce86f
add string reason to auth messages 2021-02-24 14:08:21 -05:00
Jeff Becker
2cb889013b
revise lambda captures 2021-02-24 14:08:21 -05:00
Jeff Becker
85867bd7be
make service restart 2021-02-24 14:08:20 -05:00
Jeff Becker
6d5f1b0c6a
feedback auth result via lmq rpc 2021-02-24 14:07:50 -05:00
Jeff
c76f2fe8de
Merge pull request #1496 from majestrate/rpc-kill-endpoint-sessions-2020-11-28
add llarp.endpoint rpc command
2021-02-23 18:53:06 -05:00
Jeff
59aa0768c8
Merge pull request #1544 from majestrate/only-set-public-address-when-provided-2021-02-23
only set public address when provided
2021-02-23 09:43:44 -05:00
Jeff Becker
785b4258ed
only set public address when provided 2021-02-23 09:35:24 -05:00
Jeff
4fc1f8e4bf
Merge pull request #1543 from majestrate/try-remove-cpu-bottleneck-2021-02-22
remove packet rate based cpu bottleneck
2021-02-23 05:54:10 -05:00
Jeff Becker
d7842d18ee
add missing header 2021-02-23 05:53:48 -05:00
Jeff Becker
cb3b89457f
remove pointless operator overload 2021-02-23 05:49:32 -05:00
Jeff Becker
be3faeb402
feedback from tom.
* remove unneeded header.
* fix typo in docs
2021-02-23 05:48:50 -05:00