Commit Graph

88 Commits (16cdfbd5f04e74665d93e66ff3990c5e16e56431)

Author SHA1 Message Date
Michael 16cdfbd5f0
clang-tidy modernize pass 5 years ago
Michael 488695047f
Remove redundant else blocks 5 years ago
Michael 95646d2d87
Publish metric tags 5 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
5 years ago
Michael 7212baa062
Add implicit conversion from ManagedBuffer to llarp_buffer_t 5 years ago
Michael 7ca3e13e78
Rename to ManagedBuffer 5 years ago
Michael f3b0af9d2f
Create CopyableBuffer type 5 years ago
Michael 2de621b0ad
Disable copy constructing llarp_buffer_t 5 years ago
Michael a3463120cc
Move net components into a distinct folder 6 years ago
Michael e5eda0fb8f
Move lokinet unspecific components to a util/ library 6 years ago
Jeff Becker be234e4b6e
* make format
* snode to snode direct traffic

* wire up dns on service node tun
6 years ago
Michael 85dde7b6b0
Move remaining include/llarp headers to llarp/ 6 years ago
Michael a5c3ba0fdd
Move logger.hpp to llarp/ 6 years ago
Michael d9ce493a9e
Move dns* to llarp/ 6 years ago
Michael 30e9dca2e5
Convert llarp_logic to be a C++ class 6 years ago
Jeff Becker 622ed8d12e
fix crash on premature close of event loop (also make format) 6 years ago
Jeff Becker 472948a610
more dns tweaks 6 years ago
Jeff Becker 11372c9544
Merge branch 'dev' into snode-endpoint 6 years ago
Ryan Tharp 7874567611 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Jeff Becker 25fac844eb
make format 6 years ago
Jeff Becker c1e494c2c4
have llarp_ev_* use llarp_buffer_t 6 years ago
Jeff Becker 5d0a9d7dc7
make format 6 years ago
Ryan Tharp 1c6031c677 clang-format 6 years ago
Ryan Tharp 0046b705e8 generic_handle_dnsc_recvfrom() remove unneeded parameter, start making daemon/dns better, deprecate raw_handle_recvfrom() 6 years ago
Ryan Tharp adab894ffe llarp_buffer_t conversion, decode the header one less time, move up where packet hdr is set, use emplace_back instead of push_back 6 years ago
Ryan Tharp efe86c2401 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp 2daa986c33 fix static analysis issues 6 years ago
Ryan Tharp de418125f2 remove redundance from (sockaddr) param refactor 6 years ago
Ryan Tharp 969865c499 internal refactor
- created various structs for each record type
- changed DNSd to return most of the recieved packet (allowing for multiple answers)
- favor vector<byte_t> over c-style buffers
- support NS records a little better
- fixed output on cname, ptr, txt
6 years ago
Jeff Becker f9a4c57d66
Merge branch 'master' into dev 6 years ago
Ryan Tharp 4127c9bea5 Don't let NS record stomp A values 6 years ago
despair ff6a271278 why would pos ever be negative? 6 years ago
Jeff Becker e91d7cf88f
Merge remote-tracking branch 'rick/dev' into dev 6 years ago
despair f6fb063684 this is driving me at least mildly insane
we _never_ get to llarp::udp_listener::read
6 years ago
Ryan Tharp dfd602f390
Merge branch 'master' into master 6 years ago
Ryan Tharp c7aa3617b8 fix PTR record reading when answer type doesn't make question type 6 years ago
Jeff 49cd5dfaa6 fix dns on macos 6 years ago
despair 2a5a0f1577 fix warnings on windows
up next: fix netbsd
6 years ago
Jeff Becker 7090a012f3
Merge remote-tracking branch 'micheal/wextra' into dev 6 years ago
Michael Thorpe 33bfaf7ecd
Enable -Wextra
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
6 years ago
Jeff Becker f1cca956f9
make android compile again 6 years ago
Ryan Tharp 1ded1813ea lower debug 6 years ago
Ryan Tharp 5d90cbe895 Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
Ryan Tharp 7af23dcaad format 6 years ago
Ryan Tharp 67390de0c2 merge 6 years ago
despair 186e2ea989 refactored event loop base classes
use the base class impl for llarp::tcp_conn::sendto

can't seem to escape quotes ;-;

yeah this need to stay out of the unix build

turn on gnu extensions

apple stuff

remove duplicate code

clean up

fix vtable

clang-format

parameter checks
6 years ago
despair 5aba9776d0 fix unit test 6 years ago
despair d425b5d308 implement tcp evloop on win32
(with its now-obsolete distinction between socketfd and fd)

sockets and file descriptors used to be distinct objects....back in the
16-bit Winsock 1.1 era, which needlessly complicated the 32-bit port
back then. these days one can use [Read|Write]File(2) to operate on
sockfds...which also have some of the semantics of [read|write]v(2)
i.e. the scatter-gather thing it's known for is done in async handler

-rick

variants are nice

added note to self

clang-format

link abyss properly

oops

shut up

*shrugs*

oops forgot to start winsock

moved our async io status flags to the base class

let derived classes override them as needed

this is probably a synchronous op _anyway_

fix typo

wtf
6 years ago
Ryan Tharp 9205b8172c scan-build fixes 6 years ago
despair86 b2cb4cd0e8 fix uint 6 years ago