Thomas Winget
2c6e7b86c3
SRV records fixes ( #1332 )
...
* fix a log print log level
* correctly match SRV record service and protocol...
* tests for new dns question functions
4 years ago
Thomas Winget
b1c14af938
SRV Record handling for introsets ( #1331 )
...
* update loki-mq submodule for tuple support
* srv record reply implementation
still need to encode srv records into intro sets / router contacts
as well as decode from them and match against queried service.proto
* inverted condition fix in config code
* SRV record struct (de-)serialization for intro sets
* parsing and using srv records from config (for/in introsets)
* adopt str utils from core and use for srv parsing
* changes to repeat requests
no longer drop repeat requests on the floor, but do not make
an *actual* request for them if one is in progress.
do not call reply hook for each reply for a request, as
each userland request is actually made into several lokinet
requests and this would result in duplicate replies.
* fetch SRVs from introsets for .loki
* make format
* dns and srv fixes, srv appears to be working
4 years ago
jeff
b0bb0b7609
initial route poking
4 years ago
jeff
75f9643776
attempt to fix snode traffic ip rewrite bug
4 years ago
Jeff Becker
0f21eeccb0
* rework exit codepath to allow multiple exits
...
* rework net code for ip ranges to be cleaner
* clean up endpoint auth code
* refactor config to validate network configs before setting up endpoints
* remove buildone from path/pathbuilder.cpp so we don't spam connection attempts
4 years ago
Jeff Becker
3cdca30a74
more auth shit
4 years ago
Jeff Becker
f4971a88fd
use lokimq workers instead of llarp: 🧵 :ThreadPool
4 years ago
Jeff Becker
a42d3d51c3
more
4 years ago
Jeff Becker
1e8368b636
make it compile
4 years ago
Jeff Becker
61c5808765
exit authentication (initial)
4 years ago
Jeff Becker
f40ffc0fd6
simplify header for tom.
4 years ago
Jeff Becker
c6885ec285
remove Endpoint::GetExitRouters()
4 years ago
Jeff Becker
6af498092b
exit traffic via loki addresses
4 years ago
Jason Rhinelander
26ecf23ad8
Silence various warnings
4 years ago
Stephen Shelton
960dc37c1f
Refactor TunEndpoint::Configure() (partially)
4 years ago
Stephen Shelton
f2a26adcaa
Move all [endpoint] options to [network]
4 years ago
Stephen Shelton
dd9ab0f1d5
Remove ability to have multiple endpoints/snodes from config
4 years ago
Stephen Shelton
df01770466
Rename SnappConfig -> EndpointConfig
4 years ago
Stephen Shelton
93b35c92a7
Eradicate service::Config
4 years ago
Jason Rhinelander
5cf2126bb9
make format
4 years ago
Jason Rhinelander
1697bf90fe
C++17
...
Compiles with C++17, replaces ghc::filesystem with std::filesystem,
nonstd::optional with std::optional, and llarp::string_view with
std::string_view.
4 years ago
Stephen Shelton
273270916e
The Great Wall of Blame
...
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.
Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
5 years ago
Thomas Winget
84a1d7dbcc
clang format.......
5 years ago
Jeff Becker
877443d95c
more introspection code
5 years ago
Stephen Shelton
f0374eb2b7
Use existing 'lastBuild' var for spacing path builds
5 years ago
Stephen Shelton
c2f719c996
Build endpoint paths at even[ish] intervals
5 years ago
Jeff Becker
524726e4cc
cast interval to std::chrono::milliseconds before dividing by 4
5 years ago
Jeff Becker
d2d109e92c
llarp_time_t is now using std::chrono
5 years ago
Stephen Shelton
0429bafbb3
Merge pull request #1111 from notlesh/redundant-introset-propagation-2020-02-19
...
Redundant introset propagation
5 years ago
Jeff
6ac5f19b3a
Merge pull request #1110 from jagerman/no-abseil-optional
...
De-abseil, part 1: remove absl::optional
5 years ago
Stephen Shelton
dff9aeb250
Propagate Introset publishing redundantly
5 years ago
Jason Rhinelander
ac1486d0be
Replace absl::optional with optional-lite
...
Step 1 of removing abseil from lokinet.
For the most part this is a drop-in replacement, but there are also a
few changes here to the JSONRPC layer that were needed to work around
current gcc 10 dev snapshot:
- JSONRPC returns a json now instead of an optional<json>. It doesn't
make any sense to have a json rpc call that just closes the connection
with returning anything. Invoked functions can return a null (default
constructed) result now if they don't have anything to return (such a
null value won't be added as "result").
5 years ago
Jeff
20bc168d1c
Merge pull request #1093 from majestrate/toggle-publishing-introsets-2020-02-11
...
make publishing introsets optional
5 years ago
Jeff Becker
e907d2ae19
handover fixes
5 years ago
Jason Rhinelander
9e096d1996
Reduce introset publishing interal to 2.5min instead of 1.25min
...
We want to have some redundancy, but having 8 active at once seems
extreme; reduce to 4.
5 years ago
Jason Rhinelander
c3637c81fd
Remove another unused randomize parameter
5 years ago
Jeff Becker
70eb353c42
make publishing introsets optional using reachable=false to disable
5 years ago
Jeff Becker
99eb7726ff
initial dht key blinding
5 years ago
Jeff Becker
79badd6714
* clients expore dht faster
...
* use random path when doing dht lookups for .loki
5 years ago
Jeff Becker
79c3c748e4
limit number of snode sessions client side
5 years ago
Jeff Becker
8849173112
try async decrypt then verify
5 years ago
Jeff Becker
7ee026fa50
make path builds work again
5 years ago
jeff
52757fef0e
Merge remote-tracking branch 'micheal/background_mode' into vpn-api-2019-10-03
5 years ago
jeff
32ed821763
Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography
5 years ago
jeff
7c691cf334
handover should be fixed now
5 years ago
Jeff Becker
1adae338ce
Merge remote-tracking branch 'origin/master'
5 years ago
Michael
edd0ec398f
Move thread stuff to subdirectory
5 years ago
Jeff Becker
c01112e4b7
tracy lock contention testing and other fun things
5 years ago
Michael
16cdfbd5f0
clang-tidy modernize pass
5 years ago
Michael
e52492911d
Refactor endpoint state management to a new class
5 years ago
Jeff Becker
b9bcc2b775
make threadpool consice
5 years ago
Jeff Becker
d6ec528a72
start work on seperating ips out of endpoint
5 years ago
Jeff Becker
64e9622270
start seperating tun and endpoint
5 years ago
Jeff Becker
0b90acff75
handle reply intro
5 years ago
Jeff Becker
5853e5e3f4
pass in path
5 years ago
Jeff Becker
a323003824
differentiate between inbound and outbound convos
5 years ago
Jeff Becker
2403ab8f86
ipv6
5 years ago
Jeff Becker
9ec41b8831
update RC expiration logic, lookup more often and remove stale entries
5 years ago
Jeff Becker
a33dbce680
try switching logic
5 years ago
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers
5 years ago
Jeff Becker
64c7ed42fc
make format
5 years ago
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
5 years ago
Jeff
06f8bb2f42
add blacklist-snode option
5 years ago
Jeff Becker
018dd008ec
add custom single threaded allocator for utp buffers
...
fix up test net stuff
5 years ago
Jeff Becker
a53da68700
start work on sighup
5 years ago
Michael
1744ae7686
Tidy up service endpoint a bit more
5 years ago
Jeff Becker
d423ee02d2
use shared_ptr
6 years ago
Jeff Becker
cde4fcc00a
queue pending traffic
6 years ago
Jeff Becker
2a7ebce8f4
Merge remote-tracking branch 'origin/master'
6 years ago
Jeff Becker
5e0acc1197
separate upstream/downstream flush
6 years ago
Michael
725ee293c1
Refactor well named functionality in service::Endpoint into new struct
6 years ago
Jeff
01906c5d94
Merge remote-tracking branch 'origin/master'
6 years ago
Michael
0b4d787042
More work on router docker image
...
- Multi-stage docker build (final image only 15MB!)
- Build in release mode
- Fix bug with release mode
- Fix compiler being dumb AF
- Disable FORTIFY for now
- Enable LTO when making a staticly linked release
- Fix some gcc specific warnings
- Refactor cmake stuff into multiple files
6 years ago
Jeff Becker
0529e45ebe
more
6 years ago
Jeff Becker
6711296b26
finish converting to shared_ptr
6 years ago
Jeff Becker
8484e29c9b
turn more stuff into std::shared_ptr
...
remove dead codepaths
6 years ago
Jeff Becker
99c29cf05a
prepare for ios/android jazz
...
move to use std::shared_ptr instead of bare pointers so we can
multithread everything.
6 years ago
Jeff Becker
a2912ff860
Merge remote-tracking branch 'origin/master'
6 years ago
Michael
98e691f315
Tidy up more parts of the service/ directory
6 years ago
Michael
e33a33635c
Remove usage of raw new from service classes
6 years ago
Jeff Becker
c0d7b53328
make it work
6 years ago
Jeff Becker
3a8cb0bfb5
add shell based hooks for service::Endpoint, also make format
6 years ago
Michael
33c80b7c16
Move service::Session to its own componet
6 years ago
Michael
94ad84363a
Move CachedTagResult and TagLookupJob to its own component
6 years ago
Michael
6bf54e0925
Remove AsyncKeyExchange, HiddenServiceAddressLookup and OutboundContext to their own components
6 years ago
Michael
2412ed59ee
Move SendContext to its own component
6 years ago
Michael
c39c931d03
Remove IStateful virtual inheritance
6 years ago
Jeff Becker
57dc6cc965
make bundling rc in path builds configurable on runtime
6 years ago
Jeff Becker
e178a70929
use shared_ptr for event loop
6 years ago
Jeff Becker
c910a2a2fb
more
6 years ago
Jeff Becker
b849ff9a94
handle path death better
6 years ago
Michael
3bada02d89
Fixup one ASAN warning
6 years ago
Jeff
ed10ef0b7d
don't shift only build
6 years ago
Jeff Becker
714f5c6b5e
more
6 years ago
michael-loki
94ba88bafc
Fix missing override
6 years ago
Jeff Becker
f5b9bd40ed
track lookup fails and kill outbound context if too many
6 years ago
Jeff Becker
6489ea2152
make it work
6 years ago
Jeff Becker
8a4c0ce841
more
6 years ago
Jeff Becker
280d85d478
handle protocol discard
6 years ago
Jeff Becker
c9a4c77fb9
better chill with path building
6 years ago