Commit Graph

424 Commits

Author SHA1 Message Date
Jeff Becker
4bf6882c8a
more async cryptography 2019-09-05 13:39:09 -04:00
Jeff
325b697e90
Merge pull request #787 from despair86/master
make build internally consistent, bump windows version to 0.5.0
2019-09-04 08:59:51 -04:00
Michael
edd0ec398f
Move thread stuff to subdirectory 2019-09-03 20:52:28 +01:00
Michael
0950571313
Move metrics to subdirectory 2019-09-03 20:52:28 +01:00
Michael
4d8fe2a8a8
Move meta programming to subdirectory 2019-09-03 20:52:28 +01:00
Rick V
6205e96c36
move non-string version info to common header 2019-09-03 08:02:34 -05:00
Rick V
51279075d8
iconv 🅱roke 2019-09-03 08:02:34 -05:00
Rick V
df430650ef
undo utf8 conversion 2019-09-03 08:02:33 -05:00
Rick V
fb70d7afc9
bump version for release 2019-09-03 08:02:32 -05:00
Jeff
146d977945 make osx unit tests compile on old gcc 2019-09-02 13:34:45 -04:00
Jeff
b42605d1ba
Merge pull request #783 from majestrate/iwp-redux
Add "new" (old) link protocol: IWP
2019-08-27 09:33:37 -04:00
Jeff Becker
b5402dc6c3
Merge remote-tracking branch 'origin/master' into iwp-redux 2019-08-27 08:15:41 -04:00
Rick V
b3a975ff8e
sun fix
fix testing on sun
2019-08-27 06:53:08 -05:00
Michael
70937ab503
Fix docker-compose isolated network 2019-08-27 01:57:37 +01:00
Jeff Becker
647f874d0f
ignore test on win32 2019-08-23 16:49:12 -04:00
Jeff Becker
f8bf907f24
disable log spew 2019-08-23 08:27:57 -04:00
Jeff Becker
426ee41c46
initial iwp 2019-08-22 16:53:27 -04:00
Jeff Becker
aea4542edd
more 2019-08-22 07:18:05 -04:00
Jeff Becker
c1f33bb1ac
initial mempipe implementation 2019-08-07 12:33:29 -04:00
Jeff
10d7e7cb77
Merge branch 'master' into master 2019-08-05 07:59:30 -04:00
Michael
f9e9227e19
Fix gcc trunk warnings 2019-08-02 10:29:08 +01:00
Rick V
5b0b6e4ae2
fix header case
do not use Microsoft <filesystem>
add build stamp to version resource if we're doing local CI
2019-08-01 21:39:47 -05:00
Jeff Becker
822f529be8
add link layer delivery feedback 2019-07-26 12:19:31 -04:00
Thomas Winget
baf8019fe5 Refactor Router code into more classes
This commit refactors functionality from the Router class into separate,
dedicated classes.
There are a few behavior changes that came as a result of discussion on
what the correct behavior should be.
In addition, many things Router was previously doing can now be provided
callback functions to alert the calling point when the asynchronous
action completes, successfully or otherwise.
2019-07-25 14:11:02 -04:00
Jeff
f154c9a0d0
Merge pull request #721 from majestrate/fix-dht-2019-07-19
handle dht case
2019-07-22 16:27:25 -04:00
Michael
52b9158a5a
fix test.rc 2019-07-21 16:57:12 +01:00
Michael
e32470ae5a
Skip 3 tests on windows 2019-07-21 16:57:12 +01:00
Michael
5da5c77104
Delete ev loop tests 2019-07-21 16:57:12 +01:00
Michael
ca4af6af89
fix test.rc 2019-07-21 16:57:12 +01:00
Michael
6ede15888e
Change manifest ids 2019-07-21 16:57:12 +01:00
Michael
91c1ba87cc
Change ConfigParser too 2019-07-21 16:57:11 +01:00
Michael
8fd4ceb55b
Don't use LoadFromString 2019-07-21 16:57:11 +01:00
Jeff Becker
1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply 2019-07-19 13:21:20 -04:00
Michael
5cef2865bd
Fix Ubuntu builds 2019-07-15 22:46:57 +01:00
Jeff Becker
fcc3c05124
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-10 10:07:19 -04:00
michael-loki
0cd9b4c380
Merge pull request #687 from michael-loki/config_env
Allow environment variable override of config
2019-07-09 21:42:31 +01:00
Jeff Becker
8ac9ef6f18
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-09 09:48:15 -04:00
Jeff Becker
b9bcc2b775
make threadpool consice 2019-07-09 09:47:24 -04:00
Michael
b01e5accbb
Add function to set threadname, and use from threadpool impl 2019-07-09 01:06:22 +01:00
Michael
3ce90b678e
Allow override of the rest of the config 2019-07-09 00:29:43 +01:00
Michael
fbb83704a0
Allow override of some config via env variables 2019-07-09 00:29:43 +01:00
Jeff Becker
58005c5f81
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-07-08 10:17:21 -04:00
Michael
f310160065
Fixup and add tests 2019-07-06 14:46:25 +01:00
Michael
a2326efa37
Revert "Merge pull request #679 from tewinget/revert-config-refactor"
This reverts commit 2996a7f29c, reversing
changes made to 10df3bd4b3.
2019-07-06 14:46:25 +01:00
Thomas Winget
d044d60101 Reverts #678 #677 and #669 with hashes:
10df3bd
766ece8
979f095

See those commits for further details
2019-07-02 11:02:20 -04:00
Michael
8c2d67f8f1
Fix tests 2019-07-02 10:06:29 +01:00
Michael
bd78471dae
Move ini parser as well 2019-07-02 01:58:38 +01:00
Jeff Becker
5c61df08b5
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-20 10:35:51 -04:00
Michael
08609f9e5a
Rename message files 2019-06-19 23:30:07 +01:00
Michael
83bd9227a7
Move exit messages 2019-06-19 21:35:26 +01:00
Michael
d6751e3eeb
Move subset of messages to right directory 2019-06-19 21:35:26 +01:00
Jeff Becker
cd05fa6150
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-18 08:46:35 -04:00
Rick V
5092a1fa85
restore llarp_make_ev_loop() as we only use libuv now; separate function is now ded code 2019-06-17 23:29:46 -05:00
Jeff Becker
dcefcd7879
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-17 08:38:08 -04:00
Jeff
3833cc32cf
Merge pull request #648 from michael-loki/move_publishers
Move local publishers to their own files
2019-06-17 08:36:06 -04:00
Michael
26e16d5389
Fix event loop tests post-libuv 2019-06-16 22:44:11 +01:00
Michael
c0525f2ea3
Move local publishers to their own files 2019-06-15 15:48:48 +01:00
Jeff Becker
227f561ffc
Merge remote-tracking branch 'origin/master' into ipv6-tun 2019-06-14 08:11:16 -04:00
Michael
95646d2d87
Publish metric tags 2019-06-13 23:09:58 +01:00
Michael
7d4126407c
Introduce tags for metrics 2019-06-13 22:58:17 +01:00
Jeff Becker
c60099002b
reverse dns for ipv6 2019-06-12 09:48:14 -04:00
Jeff Becker
eb10638497
Merge branch 'master' into ipv6-tun 2019-06-12 09:21:37 -04:00
Jeff Becker
584cc61f8f
Merge remote-tracking branch 'origin/master' 2019-06-12 09:11:22 -04:00
Michael
d244674339
Unfuck integer metrics 2019-06-11 21:46:51 +01:00
Michael
0a5ac10880
Unfuck metrics 2019-06-11 21:46:51 +01:00
Michael
a1ef2ca342
Tidy up metric code 2019-06-11 21:38:31 +01:00
Jeff Becker
2403ab8f86
ipv6 2019-06-11 12:44:05 -04:00
Jeff Becker
32d73199e6
another fix for freebsd 2019-06-10 12:42:29 -04:00
Jeff Becker
223f2702d3
Merge branch 'fix-big-ooooofff' 2019-06-06 06:53:54 -04:00
Jeff Becker
4c7f8e8351
more libuv jizz 2019-06-03 08:02:54 -04:00
Michael
3822fe2341
Create util::MemFn and memFn to make binding callbacks easier 2019-06-02 22:19:10 +01:00
Jeff Becker
9deafa4cb8
use libuv 2019-06-02 17:17:05 -04:00
Michael
19802229ac
Update cmake to point to vendor dir 2019-05-29 23:18:47 +01:00
Michael
f263ee1bcd
Move gtest to vendor dir 2019-05-29 21:39:44 +01:00
Michael
cd86dcf1bd
Update LinkLayer tests to use no-op crypto 2019-05-29 09:46:34 +01:00
Michael
a62655d501
Move tests to use top-level LlarpTest 2019-05-28 20:45:09 +01:00
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers 2019-05-28 20:45:08 +01:00
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
2019-05-22 12:20:03 -04:00
Jeff
3bd1aa50ff
Merge pull request #616 from michael-loki/reader_removal
Replace dict_reader/list_reader with version which doesn't involve indirection
2019-05-22 08:01:14 -04:00
Rick V
f0a4b93431
fix
(cherry picked from commit 0d2e1da774580917dcf6a05c6be81ebfe823adef)
2019-05-22 05:14:04 -05:00
Michael
7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection 2019-05-22 01:36:03 +01:00
Michael
a83be769e2
More explicit error when keyfile is not a valid file 2019-05-18 18:34:25 +01:00
Jeff Becker
cd85bd2c2d
re-enable unit test 2019-05-16 10:32:06 -04:00
Jeff Becker
4bf2020839
whatever 2019-05-15 14:36:49 -04:00
Jeff Becker
a8f307dd09
fuck 2019-05-15 14:33:10 -04:00
Jeff Becker
351c241c0f
more 2019-05-15 12:15:20 -04:00
Rick V
7788d6ec3c
fix windows
lto stuff remains for now
since native builds work

(cherry picked from commit 37814472af5e7c35d514bae16d19b08050765d52)

i'm not porting the UNIX-tier cppfs thing

(cherry picked from commit d6edbd789534d4fd0bce6c8c2418347cd80bebdb)

none of this had to be specified directly ffs

(cherry picked from commit 5dbefa7131a6fe0b2006c90ecdba7e466fdd1ecc)

stop breaking shit reee

(cherry picked from commit 14be89902ccc75a7fc21863593da393ca976d0d4)
2019-05-05 23:01:51 -05:00
Jeff Becker
241dba0476
fix dns for smaller domains 2019-05-03 14:56:31 -04:00
Jeff Becker
0cc8517bca
add error messages to ini parser and catch base cases. 2019-05-03 09:39:25 -04:00
Jeff Becker
e060082441
hook every dns for .loki and .snode when applicable
make {n,h}uint{32,16}_t templated type.
2019-05-01 09:40:10 -04:00
Jeff Becker
fea64eaf12
handle subdomains 2019-04-26 08:14:29 -04:00
Michael
9ee525a006
Fix shadowing warnings 2019-04-26 00:21:19 +01:00
Michael
3a8715d8e4
Fix introset tests 2019-04-23 10:25:03 +01:00
Michael
98e691f315
Tidy up more parts of the service/ directory 2019-04-22 22:28:10 +01:00
Michael
e33a33635c
Remove usage of raw new from service classes 2019-04-22 18:38:29 +01:00
michael-loki
0195152e05 Allow builds on MSVC (#518)
* Import cxxopts to replace getopts usage

* Add visual studio build things

* Fixup abseil build parts

* Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED

* Fixup minor windows build issues

* Replace getopts usage

* Temporarily fixup .rc files

* More minor windows fixes

* Get a working build

* Revert .rc files

* Revert changes to nodedb
2019-04-19 13:24:33 -05:00
Michael
3b5d49e0f8 MetricTank metric collector 2019-04-14 17:18:32 +01:00
Michael
544c5f9b61 Move metrics publishers to their own directory 2019-04-14 17:18:32 +01:00
Jeff
b25b84e672
Merge pull request #514 from majestrate/master
fix integration tests
2019-04-12 11:32:07 -04:00
Jeff Becker
c26145f70e
* fix up integration tests
* make recursive router lookup backtrack
2019-04-12 11:29:48 -04:00
Rick V
b1fa597fa0
include what i use 2019-04-11 10:36:12 -05:00
Jeff Becker
20e398b684
fix exit info 2019-04-08 13:40:51 -04:00
Jeff Becker
2edf1da819
add more android stuff 2019-04-08 10:27:55 -04:00
Jeff Becker
ac69213dd7
unit tests for llarp_ev_pkt_pipe 2019-04-08 10:04:58 -04:00
Jeff Becker
e178a70929
use shared_ptr for event loop 2019-04-08 08:01:52 -04:00
Jeff Becker
c910a2a2fb
more 2019-04-05 10:58:22 -04:00
Michael
efb61da56a
Tidy up libabyss test 2019-04-02 10:03:56 +01:00
Michael
25f10d5b11
Fix more address sanitiser issues 2019-04-02 10:03:53 +01:00
Michael
6b5a688e08
Fix Catalog.Iterator test failure 2019-03-29 22:14:22 +00:00
Michael
561b997c93
Move IWP code to its own directory 2019-03-29 16:00:12 +00:00
Michael
17b39b0ed4
Move UTP code to its own directory 2019-03-29 16:00:12 +00:00
Jeff Becker
230e84c742
make signing work 2019-03-28 15:15:20 -04:00
Jeff Becker
e08986e457
fix previous commit 2019-03-27 09:53:37 -04:00
Jeff Becker
c931ac069f
add AAAA records that return SIIT addresses 2019-03-27 09:36:11 -04:00
Jeff Becker
3a4d8f16a7
more 2019-03-27 08:36:27 -04:00
Michael
8f0f6dde9d
Include What You Use 2019-03-25 23:16:28 +00:00
Michael
f2c5d32399
Metric collection subsystem 2019-03-25 20:36:23 +00:00
Michael
acfff4ca5c
Threading structures for metrics 2019-03-25 20:36:23 +00:00
Rick V
abb9284167
add sun link libs 2019-03-25 12:03:53 -05:00
Rick V
8443c5ab8c
Support abseil on i686-pc-winnt-gnu 2019-03-18 16:13:09 -05:00
Jeff Becker
e042fadf18
forgot test 2019-03-13 16:02:01 -04:00
Jeff Becker
990049f423
make rpc do basic auth and shit like that 2019-03-13 16:01:10 -04:00
Ryan Tharp
75c7c12502 fix linux gcc 7.3 issues, feeling like #include <condition_variable> should be in one of the threading headers tho 2019-03-07 21:45:37 +00:00
Jeff
1a09a12ee0
Merge branch 'staging' into absl_mutex 2019-03-05 17:06:23 -05:00
Jeff Becker
b245453ef6
fix unit test 2019-03-04 11:31:05 -05:00
Michael
61f3273dc4
Add threading annotations and fix potential deadlocks 2019-03-04 00:03:52 +00:00
Michael
c5a129ddff
Convert to use abseil synchronisation primitives 2019-03-03 21:20:38 +00:00
Michael
31441b46dc
Convert from rapidjson to use nlohmann::json 2019-03-02 02:32:50 +00:00
Jeff Becker
71302ee48b
Merge remote-tracking branch 'origin/staging' into fix-libabyss-352 2019-02-27 07:55:38 -05:00
Jeff Becker
f8d6becce8
make whitelist happy 2019-02-27 07:55:26 -05:00
Jeff Becker
ef13ec7499
Merge remote-tracking branch 'origin/staging' into staging 2019-02-26 07:55:27 -05:00
Michael
e6e19369e9
Create Printer - A general-purpose, stateful printer class 2019-02-24 23:46:44 +00:00
Michael
95a5c386fe
Initial type trait work 2019-02-24 23:46:44 +00:00
Michael
b80ecfa4d6
Use string_view for string_view 2019-02-24 23:46:44 +00:00
Michael
13a9f65520
Fully define interface for dht::Context 2019-02-22 15:08:08 +00:00
Michael
4132f883a7
Make libabyss mandatory 2019-02-20 22:08:49 +00:00
Jeff Becker
445ed05b32
make format 2019-02-18 14:44:41 -05:00
Michael
a0125ffe86
Move abyss/json to llarp/util/json 2019-02-15 23:43:26 +00:00
Michael
048fa83c39
Finish replacement of Router with AbstractRouter 2019-02-14 22:31:31 +00:00
Jeff
6144a888c9
Merge pull request #299 from michael-loki/cmake_refactor
Refactor CMakeLists into distinct directories
2019-02-14 08:44:12 -05:00
Michael
ebf2800c3f Fixup windows 2019-02-14 00:22:21 +00:00
Ryan Tharp
5cb15d3a23 fix llvm compile 2019-02-12 23:24:39 -08:00
Michael
656843e9a3
Fix issues on debian 2019-02-12 01:19:38 +00:00
Michael
342cdaddd0
Add support for gtest_add_tests 2019-02-12 01:19:38 +00:00
Michael
1aeacb0043
Refactor CMakeLists into distinct directories 2019-02-12 01:19:37 +00:00
Jeff Becker
46222df421
refactor 2019-02-11 12:14:43 -05:00
Jeff Becker
e1fceb3636
fix it (again) 2019-02-08 17:44:21 -05:00
Jeff
1369c3b23c
Merge pull request #283 from despair86/dev
more windows fixes
2019-02-06 21:10:30 -05:00
Rick V
4c19f562f0
A compromise for C++17 ports.
Remove abseil build config for such targets.
Include headers (which should fall through by definition).
Macintosh can go fuck itself.
2019-02-06 19:53:15 -06:00
Rick V
72d0720da0
use c++17 stl on windows
While the absl:: namespace is aliased to std:: in a
standard win32 build, it also needlessly adds the
library to the build process, only to discard most
of it at link time. This also makes the distinction
between Abseil STL and G++ STL more explicit, to avoid
some forms of confusion.

From the product page:
"...We think not: if you look at the preprocessor conditional
structure in our string_view.h you'll see that we are trying
to identify whether your C++ installation has std::string_view.
If you do, absl::string_view is defined only as an alias to the
standard type. If you don't, you get a C++11/C++14 compatible
implementation of the type. This means you can adopt Abseil,
and for types we are b you can use the type from the absl
namespace. As soon as your project is built with the appropriate
compiler/standard library version, we'll fall away and leave you
with the standard type, albeit spelled funny. Better: as soon as
you know that your project will only build with the appropriate
language version you can run tools that we will provide to change
the places that refer to absl::string_view to spell it std::string_view
-- since those are the same type, this is safe to do, even across
API boundaries.

So, one reason you might want to adopt Abseil: early access to facilities
from upcoming C++ standard library releases, with a clear migration path."
2019-02-06 19:53:14 -06:00