Michael
95646d2d87
Publish metric tags
2019-06-13 23:09:58 +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
7212baa062
Add implicit conversion from ManagedBuffer to llarp_buffer_t
2019-02-03 01:44:09 +00:00
Michael
7ca3e13e78
Rename to ManagedBuffer
2019-02-03 00:48:10 +00:00
Michael
f3b0af9d2f
Create CopyableBuffer type
2019-02-02 23:21:35 +00:00
Michael
2de621b0ad
Disable copy constructing llarp_buffer_t
2019-02-01 01:58:13 +00:00
Michael
a3463120cc
Move net components into a distinct folder
2019-01-11 01:42:02 +00:00
Michael
e5eda0fb8f
Move lokinet unspecific components to a util/ library
2019-01-10 20:07:24 +00:00
Jeff Becker
be234e4b6e
* make format
...
* snode to snode direct traffic
* wire up dns on service node tun
2018-12-13 11:14:44 -05:00
Michael
85dde7b6b0
Move remaining include/llarp headers to llarp/
2018-12-12 02:53:02 +00:00
Michael
a5c3ba0fdd
Move logger.hpp to llarp/
2018-12-12 02:53:01 +00:00
Michael
d9ce493a9e
Move dns* to llarp/
2018-12-12 02:53:01 +00:00
Michael
30e9dca2e5
Convert llarp_logic to be a C++ class
2018-12-10 14:15:11 +00:00
Jeff Becker
622ed8d12e
fix crash on premature close of event loop (also make format)
2018-12-02 13:07:07 -05:00
Jeff Becker
472948a610
more dns tweaks
2018-12-01 09:35:11 -05:00
Jeff Becker
11372c9544
Merge branch 'dev' into snode-endpoint
2018-11-29 09:34:19 -05:00
Ryan Tharp
7874567611
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-11-26 15:54:52 +00:00
Jeff Becker
25fac844eb
make format
2018-11-26 08:30:03 -05:00
Jeff Becker
c1e494c2c4
have llarp_ev_* use llarp_buffer_t
2018-11-23 09:37:26 -05:00
Jeff Becker
5d0a9d7dc7
make format
2018-11-22 10:53:11 -05:00
Ryan Tharp
1c6031c677
clang-format
2018-11-21 16:39:09 -08:00
Ryan Tharp
0046b705e8
generic_handle_dnsc_recvfrom() remove unneeded parameter, start making daemon/dns better, deprecate raw_handle_recvfrom()
2018-11-21 16:29:42 -08:00
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
2018-11-21 15:34:26 -08:00
Ryan Tharp
efe86c2401
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-11-20 19:32:12 +00:00
Ryan Tharp
2daa986c33
fix static analysis issues
2018-11-18 15:56:59 -08:00
Ryan Tharp
de418125f2
remove redundance from (sockaddr) param refactor
2018-11-18 15:48:50 -08:00
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
2018-11-18 15:08:02 -08:00
Jeff Becker
f9a4c57d66
Merge branch 'master' into dev
2018-11-14 08:53:02 -05:00
Ryan Tharp
4127c9bea5
Don't let NS record stomp A values
2018-11-14 05:36:30 -08:00
despair
ff6a271278
why would pos ever be negative?
2018-11-13 06:54:44 -06:00
Jeff Becker
e91d7cf88f
Merge remote-tracking branch 'rick/dev' into dev
2018-11-13 06:39:41 -05:00
despair
f6fb063684
this is driving me at least mildly insane
...
we _never_ get to llarp::udp_listener::read
2018-11-12 23:39:50 -06:00
Ryan Tharp
dfd602f390
Merge branch 'master' into master
2018-11-12 17:24:36 -08:00
Ryan Tharp
c7aa3617b8
fix PTR record reading when answer type doesn't make question type
2018-11-12 17:19:01 -08:00
Jeff
49cd5dfaa6
fix dns on macos
2018-11-11 10:24:08 -05:00
despair
2a5a0f1577
fix warnings on windows
...
up next: fix netbsd
2018-11-07 18:09:49 -06:00
Jeff Becker
7090a012f3
Merge remote-tracking branch 'micheal/wextra' into dev
2018-11-07 10:57:34 -05:00
Michael Thorpe
33bfaf7ecd
Enable -Wextra
...
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
2018-11-07 15:31:13 +00:00
Jeff Becker
f1cca956f9
make android compile again
2018-11-06 09:06:09 -05:00
Ryan Tharp
1ded1813ea
lower debug
2018-11-03 08:33:01 -07:00
Ryan Tharp
5d90cbe895
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-11-03 13:43:21 +00:00
Ryan Tharp
7af23dcaad
format
2018-11-03 06:23:05 -07:00
Ryan Tharp
67390de0c2
merge
2018-11-03 06:19:18 -07:00
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
2018-10-30 00:41:44 -05:00
despair
5aba9776d0
fix unit test
2018-10-30 00:16:33 -05:00
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
2018-10-30 00:16:33 -05:00
Ryan Tharp
9205b8172c
scan-build fixes
2018-10-27 15:40:12 -07:00
despair86
b2cb4cd0e8
fix uint
2018-10-16 12:18:28 -05:00
cathugger
4d5f5fecfa
ip: make things fragmentation-aware, cleanup UDP handling; also format
...
one's complement math is pretty fun
2018-10-13 18:42:47 +03:00
Ryan Tharp
529cd4e6a3
expose dns_query and build_dns_packet()
2018-10-09 05:41:33 -07:00