Jeff Becker
6e1761eb05
first jsonrpc endpoint added
6 years ago
Jeff Becker
48e4f676cc
add rpc method for llarp.admin.link.neighboors
6 years ago
Ryan Tharp
3b24b69513
TunEndpoint::ObtainAddrForIP(), identity tun range better, actually return revdns for tunmapaddrs, make in-addr.arpa matching smarter, actually send 404s, additional unit test
6 years ago
Jeff Becker
15c99f3192
unit tests for bogons
6 years ago
Jeff Becker
e4f8917a89
correct ip range check
6 years ago
Jeff Becker
d3278946f2
ipv4 bogon checking
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
Jeff Becker
bf9512dfaf
Merge remote-tracking branch 'ryan/master'
6 years ago
Jeff Becker
8bf28940d1
Merge remote-tracking branch 'cathugger/master'
6 years ago
cathugger
18c20396b6
add {h,n}uint16_t types, optimize TCP/UDP checksuming
...
use static functions + switch instead of lambda functions + map.
6 years ago
despair86
e08dedf7a2
really fix endianness
6 years ago
despair86
630cf99bae
fix inet4 to inet6 transition bug
6 years ago
Ryan Tharp
14ccb2f81e
Merge branch 'master' of https://github.com/loki-project/loki-network
6 years ago
cathugger
e1c7d8a696
some tweaks and fixups
6 years ago
cathugger
4971fae171
uint32_t byte ordering type safety
6 years ago
Ryan Tharp
9b3bd751e7
non-const sockaddr support
6 years ago
Ryan Tharp
2fb5eaba1c
remove getSockAddr() per Jeffs PR CR, add additional notes to reduce confusion
6 years ago
Ryan Tharp
48d9a38534
getSockAddr(), findFreePrivateRange(), findFreeLokiTunIfName()
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
8ac7d4f6dc
if we didn't specify a path to save our config in, only create .lokinet on the assumption that $HOME or $APPDATA (on NT) already exist
...
add win32 tun glue, fix llarp timebase
(In fact, _both_ of these are guaranteed to exist on their respective platforms.)
also, tuntap is now wired up to the windows port
6 years ago
despair86
7f809eb53b
fix windows build
6 years ago
Ryan Tharp
094223a257
from_4int() and from_char_array() refactor
6 years ago
Ryan Tharp
5342c3d027
clang format
6 years ago
Ryan Tharp
bda43fdad6
add c str cstr, fix ipv4 cstr, tohl(), tonl()
6 years ago
Ryan Tharp
30dc6186e9
fix LLVM 3.8 compiling
6 years ago
Ryan Tharp
f9936b43d3
Merge branch 'master' of https://github.com/loki-project/loki-network
6 years ago
Jeff Becker
58198656a3
configurable base directory for config and add option for only generating config
6 years ago
Ryan Tharp
9f33edeed0
Merge branch 'master' of https://github.com/loki-project/loki-network
6 years ago
Ryan Tharp
742a0b8da7
Merge branch 'master' of https://github.com/loki-project/loki-network
6 years ago
Jeff Becker
ba648868c4
more
6 years ago
Jeff Becker
085563ac2f
implement utp link protocol
...
gut curvecp for now
6 years ago
Jeff Becker
ce1290d327
add more members to llarp::Addr
6 years ago
Jeff Becker
c3c388b6aa
remove iwp and start on curvecp
...
does not compile
6 years ago
Jeff Becker
5228a81bae
more refactor
...
get rid of C api
6 years ago
Jeff Becker
199dad09dd
* kill dht feedback loop
...
* add dht exploration for discovering new routers
* tweak loopback testnet paramters to not be initially fully connected
6 years ago
Jeff Becker
435fba25fd
add parts to rcutil to print out info about RCs: ./rcutil -V self.signed
6 years ago
Jeff Becker
2db8811cae
fix address detection
6 years ago
Ryan Tharp
15dbaf3808
big clang-format cleanup
6 years ago
Ryan Tharp
b5e136d916
fix if 10 is in use, comments and other last minute notes
6 years ago
Ryan Tharp
75bb65e909
clean up ipv4 creation, fix CopyInto
6 years ago
Ryan Tharp
352aa50aa8
privatesInUse struct, ipv4 cstr attempt, isPrivate refactor
6 years ago
Jeff Becker
86ec4dacc3
dht and testnet fixes
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
Jeff Becker
2c652174b9
correct bitmask
6 years ago
Jeff Becker
2e13eac024
make it compile
6 years ago
Jeff Becker
14b27b432e
typofix
6 years ago
Jeff Becker
24960ca47b
meh
6 years ago
Jeff Becker
a8567b0d21
fix previous commit
6 years ago
Jeff Becker
1f29155f43
typofix
6 years ago