Jeff Becker
9447a1bb25
ammend previous commit
5 years ago
Jeff Becker
473ceedb9d
try linking for freebsd
5 years ago
Jeff Becker
223f2702d3
Merge branch 'fix-big-ooooofff'
5 years ago
Jeff Becker
9deafa4cb8
use libuv
5 years ago
Michael
19802229ac
Update cmake to point to vendor dir
5 years ago
Michael
19578fa8fc
Fix ASAN build
5 years ago
Jeff Becker
3e0585e0b8
remove fatal error message from git revision when not in git
6 years ago
Michael
8c570653ee
Refactor top level cmake file into multiple components
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
Michael
9ee525a006
Fix shadowing warnings
6 years ago
Michael
4143472a17
Add cmake module to target a library as 'system', and fix a few warnings
6 years ago
Rick V
4c4efd1aaa
irrelevant on Microsoft C++
6 years ago
Rick V
01ec1cc61c
fix windows ( #535 )
6 years ago
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
6 years ago
Jeff Becker
2c5fa94170
fix freebsd build
6 years ago
Rick V
853d19209c
Revert "unbreak windows target"
...
select 64-bit target by default (since normal devs REEEEEEEE at the sight of 4 byte ptrs)
pretty much every _other_ linux/unix has a c++17 windows compiler
This reverts commit a844c61049
.
6 years ago
Jeff Becker
a844c61049
unbreak windows target
6 years ago
Jeff Becker
3da6551e82
make android compile
6 years ago
Jeff Becker
2edf1da819
add more android stuff
6 years ago
Jeff Becker
e178a70929
use shared_ptr for event loop
6 years ago
Michael
25f10d5b11
Fix more address sanitiser issues
6 years ago
Michael
6b5a688e08
Fix Catalog.Iterator test failure
6 years ago
Rick V
07e5978144
only pick one event loop on sol2
6 years ago
Rick V
bbba2c0eea
improve windows select loop
...
add generic svr4 poll(2) event loop
6 years ago
Michael
f2c5d32399
Metric collection subsystem
6 years ago
Rick V
490f3f31d0
minimal build system plumbing for backports to oracle solaris
6 years ago
Rick V
abb9284167
add sun link libs
6 years ago
Rick V
2e1b2ff8b1
abseil should pick up all of our compile flags (and stop on warnings if enabled), temp disable tuntap on Solaris
6 years ago
Rick V
87cebd9ba6
port abseil-cpp to Solaris 2.x and legacy compiler
...
fuck oracle with a rusty knife, we only support compilers with a full implementation of G++ (so, basically, only clang)
6 years ago
Rick V
67845e342a
distinguish good solaris from bad solaris
6 years ago
Rick V
866643f099
public releases should run reasonably well on most
...
devices in spite of the buiild system
currently, the instruction scheduling is tuned for the AMD K10 uarch, which is the CPU
of the unix build agent
6 years ago
Rick V
be5e70f9eb
update clang bits for release
6 years ago
Rick V
072ff9a50e
finally make -WX/-Werror optional
6 years ago
Rick V
8443c5ab8c
Support abseil on i686-pc-winnt-gnu
6 years ago
Rick V
53f7360094
added warning for AMD users
6 years ago
Rick V
61fb9a9c82
added some notes to gear up for the #371 putback by @michael-loki
...
moved platform-specifc stuff *to* platform specifc lib
removed -Wno-format on windows and *actually* turn on proper format checking
here using compiler-specifc extension for C99
6 years ago
Rick V
aab8167408
remove AMD FPU hack, remove FPU opts for crypto code in debug mode
...
see https://www.digitaltrends.com/computing/ryzen-amd-bios-fix-fma3-crash/
AMD has released a fix for Zen and later
6 years ago
Jeff
a79f27cfd0
Merge pull request #395 from majestrate/staging
...
lokinet rpc use http digest auth instead of basic auth
6 years ago
Jeff Becker
990049f423
make rpc do basic auth and shit like that
6 years ago
michael-loki
8ada001bc9
Remove negative thread safety warning flag
...
This is experimental, and has a bunch of false positives.
6 years ago
Jeff Becker
734a5b5fae
more
6 years ago
Jeff Becker
2218749134
Merge remote-tracking branch 'origin/staging' into staging
6 years ago
Jeff Becker
6a09348c47
today's work
6 years ago
Jeff
1a09a12ee0
Merge branch 'staging' into absl_mutex
6 years ago
Michael
61f3273dc4
Add threading annotations and fix potential deadlocks
6 years ago
Michael
c5a129ddff
Convert to use abseil synchronisation primitives
6 years ago
Michael
93399fdbb4
Make nlohmann::json part of the build
6 years ago
Michael
c6e6bdb90f
Fix for windows just being the Worst
6 years ago
Michael
4132f883a7
Make libabyss mandatory
6 years ago
Michael
a0125ffe86
Move abyss/json to llarp/util/json
6 years ago
Jeff Becker
1d958d95de
* make rpc compile right
...
* make link sessions introspectable
* make utp write buffers fully flush each tick
6 years ago
Michael
90373b806c
Fix log tag after cmake changes
6 years ago
Jeff
cdc19c52fa
Merge branch 'staging' into abstract_router_replacement
6 years ago
Michael
048fa83c39
Finish replacement of Router with AbstractRouter
6 years ago
Rick V
e9048559b2
late-breaking hotfix patch for libabyss-win32
6 years ago
Rick V
1bb441a367
fix clang cross-compile nt shared lib
6 years ago
Michael
ebf2800c3f
Fixup windows
6 years ago
Michael
2997b38e35
Fixup after rebase
6 years ago
Michael
656843e9a3
Fix issues on debian
6 years ago
Michael
1aeacb0043
Refactor CMakeLists into distinct directories
6 years ago
Jeff
f84ceb3b6a
Merge pull request #300 from majestrate/staging
...
add rpc endpoint for dumping internal state
6 years ago
Jeff Becker
46222df421
refactor
6 years ago
Michael
4f3c2a7e80
Add support for building with ccache
6 years ago
Jeff Becker
e1522faeaa
add introspection rpc endpoint
6 years ago
Rick V
1fafe27300
damn it
6 years ago
Jeff
1369c3b23c
Merge pull request #283 from despair86/dev
...
more windows fixes
6 years ago
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.
6 years ago
Rick V
406e3a6b6c
document option correctly
6 years ago
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."
6 years ago
Rick V
8800cee785
fix crash on exit
6 years ago
Rick V
3931b7d9d7
implement missing libabyss functionality
...
remove some finished TODOs
6 years ago
Rick V
59c6184233
linker flags have no effect in compilation
...
and will cause -Werror=unused-command-line-option
on apple cc
6 years ago
Rick V
6d608d292f
add warning message for libg++ runtime
6 years ago
Rick V
00a095b61c
update description
6 years ago
Rick V
7f52c9eae7
restore gtest win32 patch (stripped during gtest rebase)
...
enable lokinet shared library on win32
TODO: define an API to expose from this library
currently, it resorts to exporting *everything*
including system implementation details that otherwise
should remain hidden out of sight
(i.e. the winsock2 load stubs for new socket API, or entire libstdc++ classes!)
6 years ago
Rick V
d0448dfb64
finish moving event loop implementations out of headers
...
ok
ah so that was the mac build problem
6 years ago
Rick V
6e93697214
surprisingly a full abyss build works
...
also move the event loop code back into platform lib (!!!)
6 years ago
Rick V
f277f368a1
win32 g++ is set to c++17 by default, so we use the _real_ string_view class
6 years ago
Michael
6d8d910aff
Refactor and add tests for bits.hpp
6 years ago
Michael
4c3734a146
Build everything with -fPIC
6 years ago
Ryan Tharp
5769e5c716
Merge pull request #259 from michael-loki/more_dht_tests
...
More dht tests
6 years ago
Michael
40e85f0f69
Tests for dht::RCNode and dht::ISNode
6 years ago
Michael
1ba6507a2f
Tests for dht::ServiceAddressLookup
6 years ago
Michael
b1213c7a7c
Tests for dht::TagLookup
6 years ago
Michael
6055829df4
Remove tl::optional and use absl::optional always
6 years ago
Michael
41f9f5fad6
Import abseil LTS 20181200
6 years ago
Michael
1f95f1e78f
More unit tests of dht internals
6 years ago
Michael
40449df0f1
Split classes out of dht::Context
6 years ago
Michael
9d0d3a4cc9
Fix build on darwin
6 years ago
Michael
f4e0cb2d4b
Import latest gtest from upstream - commit 569fba4d742b67753b5374b6686170afb74acb0c
6 years ago
Jeff
832ad942aa
Merge pull request #237 from despair86/dev
...
separate header and implementation
6 years ago
Jeff Becker
cbfbdc506d
Merge branch 'staging' of ssh://github.com/loki-project/loki-network into staging
6 years ago
Rick V
b062504590
static link windows unconditionally
6 years ago
Rick V
d70a9fbfd4
oops, that patch would have tanked a 64-bit windows profile run
6 years ago
Rick V
bef0316aab
more sun notes
6 years ago
Rick V
ce9f455bf3
be more descriptive in version-info
...
(cherry picked from commit 427a6668ffbc1ed46042727b2ee9420cdc88aad8, it almost slipped out)
6 years ago
Rick V
3a47c96aee
how the hell does someone skip over these while redoing source tree layout
6 years ago
Rick V
3037de9450
lower non-AVX2 minimum CPU target to NetBust Xeon (Nocona, Prescott)
...
(cherry picked from commit e7ae0e5258
)
6 years ago
Jeff Becker
9991d17976
Merge branch 'staging' into use-lokid-seed
6 years ago
Jeff Becker
465a3d3e43
redo ini parser
6 years ago
Jeff Becker
d89e58199a
add initial identity key seed stuff
...
add more kubernetes stuff
make shared library installed if built
6 years ago
Michael
ccb5f6b696
Add tests for dht::TXOwnere
6 years ago
Michael
2d395cc3f9
Move code to correct home
6 years ago
Michael
80bd41916e
More tidying of dht code
6 years ago
Michael
03d56c1591
Add test suites for dht bucket, kademlia and key
6 years ago
Michael
7296ebcbe8
Tidy dht code
6 years ago
Michael
fec75125f4
Add tests for crypto/types
6 years ago
Michael
da6cdfc0b2
More refactoring to continue to make dependency graph acylic
6 years ago
Michael
6e38e85a79
Produce hierarchy of 'libraries' inside libllarp
6 years ago
Jeff
11257e7b4d
Merge pull request #222 from michael-loki/crypto_folder
...
Split and move crypto code to a subdirectory
6 years ago
Michael
79157414f3
Split crypto.hpp into 3 different files
6 years ago
Michael
04e0fe3ad7
Move crypto code to a subdirectory
6 years ago
Michael
8a0eb6b71f
Enable C++14 for all builds
6 years ago
Jeff
328ce40212
Merge pull request #216 from michael-loki/coverage
...
Add flag to generate coverage data
6 years ago
Michael
c655600704
Add flag to generate coverage data
6 years ago
Michael
70a55612eb
Create initial set of test cases for llarp_findOrCreate* functions
6 years ago
Michael
a3463120cc
Move net components into a distinct folder
6 years ago
Michael
317e29b777
Move win32 specific files to win32 dir
6 years ago
Michael
081d4dfa32
Reorganise source into more folders
6 years ago
Michael
fa2b466ffe
Reorganise tests to mirror source layout
6 years ago
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library
6 years ago
Michael
167d5aca6d
Add test suite for bencode
6 years ago
Jeff Becker
6206fb2a41
Merge branch 'datagram' into staging
6 years ago
Jeff Becker
5b87fb509e
start on kubernetes shim and fix up shared library target and ffi python code
6 years ago
Jeff Becker
e88c39b9e2
more work
6 years ago
Michael
a54b9a2dc4
Fix UTPTest test failures
6 years ago
Michael
9658c80b48
Minor build fixes
6 years ago
Jeff Becker
f9d30b9b96
commit day's work
6 years ago
Michael
8f053106e6
Add tests for llarp::dht::Key_t
6 years ago
Jeff Becker
180ca69d02
fix issue #185
6 years ago
Jeff Becker
49c898ed92
Merge remote-tracking branch 'origin/master' into staging
6 years ago
Rick
febb1a0207
version resource
6 years ago
Rick
d58e17ba48
make lokinet-win32 installer safe to use for in-place upgrades
...
add version resource
6 years ago
despair
43afede986
make RPI option more descriptive
6 years ago
Jeff Becker
15e0597fb1
merge
6 years ago
Jeff Becker
8c8172aeb1
Merge remote-tracking branch 'origin/master' into dev
6 years ago
Michael
ba95767f57
Add tests for alignedbuffer
6 years ago
Jeff Becker
b39c46fc03
!!! this breaks backwards compat :^) !!!
...
redo link protocol to use 2 session keys, add unit tests.
6 years ago
Ryan Tharp
2e9511c978
fix make install
6 years ago
Jeff Becker
ba02076122
fix up cmake more
6 years ago
Jeff Becker
49cd52adc7
include lokinet-bootstrap
6 years ago
Michael
4257b62e88
Add .cpp files for all .hpp files
6 years ago
Jeff Becker
09e01adf32
flush snode traffic queues
6 years ago
despair
624eec8179
>make this a native app
...
this will be packed up by the inno-setup installer script already
cleaned up CMakeLists
make it more readable
exposed (nearly?) all of the configurable options
6 years ago
Jeff Becker
fad734a5ce
strict types for pubkey, secretkey and routerid
6 years ago
Jeff Becker
a770b9516f
update makefile to use cmake install
6 years ago
Jeff Becker
1704c7e234
make cmake install target work and setcap on linux
6 years ago
Jeff Becker
2e98ad804b
patch for RPI build
6 years ago
Jeff Becker
f63045d5a4
Merge remote-tracking branch 'origin/master' into dev
6 years ago
Jeff Becker
1d1bde2e88
add dnslib
6 years ago