Commit Graph

50 Commits (7a78832841ea31c8ea2c8f5c09359014e876d844)

Author SHA1 Message Date
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
cathugger 4d5f5fecfa
ip: make things fragmentation-aware, cleanup UDP handling; also format
one's complement math is pretty fun
6 years ago
Ryan Tharp 529cd4e6a3 expose dns_query and build_dns_packet() 6 years ago
Ryan Tharp 6bfd55f3f4 fix headers, clang-format, favor llarp::Addr 6 years ago
Ryan Tharp 4b3b09736b Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
despair86 9fdde65798 make bencode ILP32/LLP64 clean (long is 32 bits outside of unix!)
actually open new RCs in binary mode
clang-format
win32 skeleton code for tun (still working on the guts)
6 years ago
despair86 7f809eb53b fix windows build 6 years ago
Ryan Tharp 058ed4d4ea Merge branch 'master' of https://github.com/neuroscr/loki-network 6 years ago
Ryan Tharp 35def45c98 answer_request_alloc() use a unique_ptr, multiple resolver support start, llarp_dnsc_init to use llarp::Addrs 6 years ago
Jeff Becker 8a4b2e97a5
add lint target for makefile using clang tidy
run make format
6 years ago
Ryan Tharp 1436036d94 make sure all vectors are unique_ptr, unorder maps (optimization) 6 years ago
Ryan Tharp 0ad4f43fe5 header clean up and clang-format 6 years ago
Ryan Tharp 47c90e63e8 reverse dns detection and question type 6 years ago
Ryan Tharp 6d0cf0c8c0 move logic into dnsc context, clang-format 6 years ago
Ryan Tharp e2f5298e00 better logging 6 years ago
Ryan Tharp 9f1f3a35d4 skip answer if type 5 (cname) and advance to first answer, also properly adjsut for SOA hack 6 years ago
Ryan Tharp c5dd067abe format 6 years ago
Ryan Tharp 16c56ff04b Merge branch 'master' of https://github.com/majestrate/llarp + gcc 7.2 fixes 6 years ago
Ryan Tharp 52bbf890ef move hook out of dnsd into daemon, made hook use timer, decode_answer has beginning SOA parsing support, getDNSstring() refactor 6 years ago
despair86 bdc54835c2 initial windows server port. Requires Windows 2000 Server or later.
- updated CMake build script
- builds with Microsoft C++ 19.1x. such builds require Windows 8.1 or later
  unless you have the .NET Server 2003-toolset (v141_xp)
- windows port requires a C++17 compiler since cpp17::filesystem is POSIX-only
- HAVE_CXX17_FILESYSTEM manual toggle in CMake. You must manually specify where
  std::[experimental::]filesystem is defined in LDFLAGS or CMAKE_x_LINKER_FLAGS.
- IPv6 support can be added at any time, and the windows sdk still has that
  inline getaddrinfo(3) if it can't find a suitable IPv6 stack.
- inline code for mingw-w64: there's a few bits and pieces still missing simply because
  mingw-w64 derives its windows sdk from wine and reactos, and then writing all the newer
  stuff into it by hand straight from the MSDN manpages.
- misc. C++11 stuff (nullptr and friends)
- Internal file handling code takes UTF-8 or plain 8-bit text, NTFS is UTF-16, so
  std::filesystem::path::c_str() is wchar_t. That's no good unless you first
  call std::filesystem::path::string().
- implemented getifaddrs(3) and if_nametoindex(3) on top of GetAdapters[Info|Addresses](2).
- updated readme with new info

BONUS: may implement Solaris/illumos IOCP someday...

-despair86
6 years ago
Ryan Tharp 82f300523d handle crash on multiple response to an alreayd handled packet, rename hook to sendto_hook, writecname_dnss_response() and write404_dnss_response() 6 years ago
Ryan Tharp de56a32069 another DNS clean up pass 6 years ago
Jeff Becker 48cfdab63c get rid of wizard and autogenerate configs if not present with sane defaults 6 years ago
Ryan Tharp 0f068a7ea4 fix warnings 6 years ago
Jeff Becker f9db26adee add mingw stl threading lib
run make format
6 years ago
Jeff Becker f222f002f4 Merge remote-tracking branch 'loki/master' 6 years ago
Jeff Becker f695b947f7 more arm fixes 6 years ago
Ryan Tharp 49b4d0189a linux gcc compat 6 years ago
Ryan Tharp b93ea8a087 fix intercept api, implement new intercept api, logging clean up 6 years ago
Ryan Tharp ca06f1dded refactor clean up (pass 1) 6 years ago
Ryan Tharp a9e8584acd clang-format (finally :) 6 years ago
Ryan Tharp eadca4b4fc "fixed" DNS multithreaded 6 years ago
Ryan Tharp 6582a2fb0f fix casting of ip to return correct results 6 years ago
Ryan Tharp dd4b3fa9a1 continue llarpification (StackBuffer) and other refactor 6 years ago
Jeff Becker 9114d79bd6 * make number of hops configurable
* remove compile warnings
6 years ago
Ryan Tharp 3758b1f6bf heap allocate more sockaddr, debug adjustment 6 years ago
Jeff Becker 4b748a29f3 fix dns 6 years ago
Jeff Becker f48acbc23e Merge remote-tracking branch 'ryan/libdns' into hidden-service-dht
also run make format
6 years ago
Ryan Tharp 077c22150f fix response bug, libev refactor 6 years ago