Jeff Becker
ce1290d327
add more members to llarp::Addr
2018-09-03 08:03:43 -04:00
Jeff Becker
c3c388b6aa
remove iwp and start on curvecp
...
does not compile
2018-09-02 14:25:42 -04:00
Jeff Becker
74b713870b
use const
...
always use outbound links
2018-08-31 15:46:25 -04:00
Jeff Becker
b362784581
redo codel to do as few allocations as possible
2018-08-31 14:33:08 -04:00
Jeff Becker
8bae1a4735
move codel off of pointer types
2018-08-31 10:41:04 -04:00
Jeff Becker
4e693a2414
make signatures work again ;~;
2018-08-31 09:51:24 -04:00
Jeff Becker
973f86c900
it compiles
2018-08-31 08:46:54 -04:00
Jeff Becker
5228a81bae
more refactor
...
get rid of C api
2018-08-30 14:48:43 -04:00
Jeff Becker
b122fc59f8
refactor (not done)
2018-08-29 16:40:26 -04:00
Jeff Becker
199dad09dd
* kill dht feedback loop
...
* add dht exploration for discovering new routers
* tweak loopback testnet paramters to not be initially fully connected
2018-08-27 09:44:16 -04:00
Jeff Becker
cf0aa2da24
forgot files
2018-08-26 08:51:41 -04:00
Jeff Becker
d3eef5c8b7
more netns code
2018-08-26 08:51:22 -04:00
Jeff Becker
bee5eee0b1
fix skiplist placement
2018-08-24 13:25:47 -04:00
Jeff Becker
3588580c1a
Merge branch 'master' of ssh://github.com/loki-project/loki-network
2018-08-24 12:07:46 -04:00
Jeff Becker
435fba25fd
add parts to rcutil to print out info about RCs: ./rcutil -V self.signed
2018-08-24 12:07:17 -04:00
Ryan Tharp
c8a613eec6
deconflict saddr
2018-08-23 17:39:01 -07:00
Ryan Tharp
8724ddd792
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-08-23 22:51:23 +00:00
despair86
e71c00f736
header fix
2018-08-23 13:48:41 -05:00
despair86
258c2a12dc
i blame clang-format
2018-08-23 13:44:45 -05:00
despair86
79c992a9be
Microsoft libc6.x and libc7.x do not have C99 printf semantics, mingw-w64 handles this inline
2018-08-23 13:44:45 -05:00
despair86
23ecd03c71
win32 native threading vs pthreads on mingw-w64
...
also, msc++ implements all of C++17
2018-08-23 13:44:44 -05:00
despair86
3ccb425021
hmm this may work on BSD unix...
2018-08-23 13:44:44 -05:00
Ricardo Villegas
3cca107041
more header fixes
...
-despair86
2018-08-23 13:44:43 -05:00
despair86
9b73b013ce
run-time assertion in ms c: make sure that CPP macro and local variable LOOPS == loops
2018-08-23 13:42:54 -05:00
Jeff
7af9ed0f70
Merge branch 'master' of ssh://github.com/loki-project/loki-network
2018-08-23 14:02:13 -04:00
Jeff
367258551b
fix osx build
2018-08-23 14:02:02 -04:00
Jeff Becker
ba12f3e5e2
prevent crash?
2018-08-23 11:34:43 -04:00
Jeff Becker
3625313304
clear pending dht tx
2018-08-23 11:29:43 -04:00
Jeff Becker
bb25537fb5
build paths if we have no connected routers to make sessions happen
2018-08-23 11:19:16 -04:00
Jeff Becker
4e3acd0277
persist sessions between routers
2018-08-23 10:35:29 -04:00
Jeff Becker
51029f0f2f
make loopback testnet work again
2018-08-23 10:07:53 -04:00
Jeff Becker
885fb3cd97
revert back to priority queue for codel
2018-08-23 08:26:31 -04:00
Jeff Becker
f989996bc7
lol
2018-08-22 12:25:10 -04:00
Jeff Becker
b77525b72d
persist on commit
2018-08-22 12:19:51 -04:00
Jeff Becker
b7039f6e5c
more tun stuff
2018-08-22 11:52:10 -04:00
Jeff Becker
a2f4c3e3bb
add more autogenerate config lines
2018-08-22 11:51:50 -04:00
Jeff Becker
dbac1334e0
disable promises in win32
2018-08-21 14:39:18 -04:00
Jeff Becker
4e2f0ccbf8
* add ProcessIf in CoDel queue to requeue unprocessed items
...
* more tun code
* make event loop tick and write with tun
2018-08-21 14:17:16 -04:00
Jeff Becker
4aebbda640
more tun stuff
2018-08-20 15:12:12 -04:00
despair86
c24a73f756
ran the linter on new code
2018-08-20 05:52:47 -05:00
despair86
db1989c848
new named thread API on win32
2018-08-20 05:38:25 -05:00
despair86
961a4b1d3c
eww, merge conflicts
2018-08-18 21:54:53 -05:00
Ricardo Villegas
43760dee2e
more sun patches, plus a note to port solaris tuntap after
...
doing the windows port of same
2018-08-18 21:26:25 -05:00
despair86
8c1b2c3b79
win32 fluff
...
more win32 on msc++ fluff
and a solaris patch that i may revert later if the cpp directives aren't processed correctly
-despair86
2018-08-18 21:26:18 -05:00
despair86
9ad93a0893
sunos patches, avoid shadowing data members in derived classes, header fixes
...
SunOS build works, with a few issues:
- no tuntap debugging on Solaris? (TUNSDEBUG ioctl missing)
- regular socket ioctls are not pulled in with #include <sys/ioctl.h>
even though they're included at the bottom of same (filio.h,
sockio.h)
- no named threads in any libre fork of solaris
-despair86 (rick)
sun patch
2018-08-18 21:25:24 -05:00
despair86
72c2231caf
this works apparently
2018-08-18 21:24:41 -05:00
despair86
556bc2b740
these headers need to be in a specific order
...
because the winsock sdk does weird shit
2018-08-18 21:24:41 -05:00
despair86
5f47b335a4
now matches the other platform behaviour, namely, that as long as the event-based queue file descriptor is valid, so is the event loop itself
2018-08-18 21:24:40 -05:00
Jeff Becker
4ab9f72415
backport for gcc 5
2018-08-18 11:34:06 -04:00
Jeff Becker
377cc78144
fix crash
2018-08-18 10:01:21 -04:00
Jeff Becker
1a1f93c171
* more tun stuff
...
* use std::unique_ptr where bare pointers aren't absolutely required
2018-08-17 15:49:58 -04:00
Ryan Tharp
e4214cb25e
format
2018-08-17 03:40:14 -07:00
Ryan Tharp
32fa716ac3
Merge branch 'master' of https://github.com/neuroscr/loki-network
2018-08-17 03:39:30 -07:00
Ryan Tharp
7171abe825
gcc 7 fix
2018-08-17 03:39:11 -07:00
Ryan Tharp
cabd523188
make sure it's lowercase before decoding
2018-08-17 03:38:46 -07:00
Ryan Tharp
9f1f3a35d4
skip answer if type 5 (cname) and advance to first answer, also properly adjsut for SOA hack
2018-08-17 03:36:54 -07:00
Ryan Tharp
e3df552986
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-08-17 06:17:51 +00:00
Jeff Becker
913fb1d88a
don't use 100% cpu
2018-08-16 11:31:32 -04:00
Jeff Becker
08d6121a5a
more tun code
2018-08-16 10:34:15 -04:00
Ryan Tharp
80f70f5a84
fix linux compile
2018-08-16 10:50:09 +00:00
Ryan Tharp
a5f2f7080d
Merge branch 'master' of https://github.com/neuroscr/loki-network
2018-08-16 10:44:31 +00:00
Ryan Tharp
94b6b828c1
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-08-16 10:38:02 +00:00
Jeff Becker
5b322510a7
try making it compile
2018-08-15 12:21:51 -04:00
Jeff Becker
e6de816dce
touch win32 code to make it compile, sorry.
2018-08-15 12:19:22 -04:00
Jeff Becker
b47a67bbd5
make it compile
2018-08-15 12:08:54 -04:00
Jeff Becker
b4f672b950
continue to fix kqueue build
2018-08-15 11:46:39 -04:00
Jeff Becker
944d22abde
fix kqueue build
2018-08-15 11:45:07 -04:00
Jeff Becker
04bf8d6116
some tun interface code
2018-08-15 11:36:34 -04:00
Jeff Becker
6a828ea985
fix shadow build
2018-08-14 18:07:58 -04:00
Jeff Becker
98b3bd6354
add runtime toggle of AVX2 code in sntrup
2018-08-14 17:28:14 -04:00
Jeff Becker
1d3e9f6adc
make testnet no longer crash
2018-08-14 17:17:18 -04:00
Jeff Becker
c12da3dfc7
fix bad offset
2018-08-13 19:25:36 -04:00
Jeff Becker
186bd7d573
use NTRU for introset end to end encryption
2018-08-13 19:22:31 -04:00
Ryan Tharp
484a4b6164
match up prototypes to remove LLVM 3.8 warning
2018-08-13 01:48:19 -07:00
Ryan Tharp
ec237768d7
merge
2018-08-13 01:47:24 -07:00
Ryan Tharp
ab3493ba3d
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-08-13 08:31:54 +00:00
Jeff Becker
d7c1c3322f
it works.
2018-08-12 13:22:29 -04:00
Jeff Becker
e79708c1dc
hidden services sorta work
2018-08-10 17:34:11 -04:00
Jeff Becker
a9b28e5407
more fuxing around
2018-08-09 23:51:38 -04:00
Jeff Becker
c36c83d9dc
more hidden service code
2018-08-09 15:02:17 -04:00
Jeff Becker
143da869b5
fix windows build
2018-08-09 11:55:37 -04:00
Jeff Becker
b6ec1e94db
only write nickname if present in rc
2018-08-09 11:36:58 -04:00
Jeff Becker
6bae623481
more defaults
2018-08-09 09:55:51 -04:00
Jeff Becker
32d82b5ba5
add more defaults in config with comments
2018-08-09 09:38:44 -04:00
Ryan Tharp
bf52d363de
Merge branch 'master' of https://github.com/loki-project/loki-network
2018-08-09 11:33:53 +00:00
Ryan Tharp
15dbaf3808
big clang-format cleanup
2018-08-09 04:28:55 -07:00
Ryan Tharp
3ada1e15be
llarp_main_queryDHT_RC(), llarp_main_init_dnsd(), actually query DHT on dns lookup
2018-08-09 04:22:57 -07:00
Jeff Becker
d5532e4de4
more boilerplate and enable tun/tap build
2018-08-08 15:37:33 -04:00
Jeff Becker
c71d0b2bb3
always use SIGCHLD in clone
2018-08-08 14:50:45 -04:00
Jeff Becker
e4bcf44a25
make net isolated threadpool more generic
2018-08-08 14:02:08 -04:00
Jeff Becker
33c5cf5a89
override join for isolated threadpool
2018-08-08 13:47:13 -04:00
Jeff Becker
62f41d3747
initial threadpool isolation code and run make format
2018-08-08 13:43:46 -04:00
Jeff Becker
30edb26ed9
use endian helpers
2018-08-08 13:01:32 -04:00
Jeff Becker
ebfe820b7a
remove the rest of gcc compiler warnings
2018-08-08 12:58:43 -04:00
Jeff Becker
53b4a94c75
clang format and fix (some) compile warnings
2018-08-08 12:56:45 -04:00
Ryan Tharp
b5e136d916
fix if 10 is in use, comments and other last minute notes
2018-08-08 06:21:14 -07:00
Ryan Tharp
9cb814587d
use CopyInto cleanup
2018-08-08 06:10:02 -07:00
Ryan Tharp
4e7fee7ef5
linux build fixes
2018-08-08 12:44:50 +00:00
Ryan Tharp
57c41f0d65
new ip tracker
2018-08-08 05:41:09 -07:00
Ryan Tharp
c5dd067abe
format
2018-08-08 05:40:54 -07:00
Ryan Tharp
f6398f0126
llarp_getPrivateIfs(), format
2018-08-08 05:36:10 -07:00
Ryan Tharp
73a8be3e60
fix warning
2018-08-08 05:35:38 -07:00
Ryan Tharp
99761ad2c7
add copyright, fix gcc warning
2018-08-06 05:24:12 -07:00
Ryan Tharp
16c56ff04b
Merge branch 'master' of https://github.com/majestrate/llarp + gcc 7.2 fixes
2018-08-06 12:02:00 +00:00
despair86
1e9f49d6ef
Merge remote-tracking branch 'upstream/master'
2018-08-03 22:07:46 -05:00
Jeff Becker
224748bcaf
Merge remote-tracking branch 'loki/master'
2018-08-04 13:00:42 +10:00
Jeff Becker
86ec4dacc3
dht and testnet fixes
2018-08-04 12:59:32 +10:00
despair86
9c0b395c67
vs clang format isn't supposed to inject tabs ffs
2018-08-03 19:06:11 -05:00
despair86
c1765d562b
minor patch, make sure the iocp fields are valid before attempting to cast the ev_id back to its ptr
2018-08-03 19:05:45 -05:00
despair86
ae956aff5f
This completes the Windows NT Server port of the LokiNetwork components.
...
Also changed the epoll_wait timeout to 10ms in llarp_epoll_loop::run() to match the other platforms.
-despair86
2018-08-03 04:21:53 -05:00
Jeff Becker
f68e3029b0
fix timeouts
2018-08-03 15:32:07 +10:00
Jeff Becker
68a69da0bf
fix kqueue run function, have it wait for 10ms so tick works
2018-08-03 13:56:45 +10:00
Jeff Becker
694644ac8b
timeout for kevent tick
2018-08-03 11:24:53 +10:00
Jeff Becker
cc59d7944a
event loop must call tick every tick including on timeout
2018-08-03 10:41:01 +10:00
Jeff Becker
44663d18a5
fix typo
2018-08-03 10:34:47 +10:00
Jeff Becker
9dc88fb64b
another win32 cross compile fix
2018-08-03 09:37:54 +10:00
Jeff Becker
a99fa8f6cf
try fixing windows cross compile
2018-08-03 09:36:34 +10:00
Jeff Becker
0d2bce2089
fix up win32 specific parts
2018-08-03 09:30:34 +10:00
Jeff Becker
1b20ba6a6c
fix dead code, clean up parts.
2018-08-03 09:03:23 +10:00
Jeff Becker
066c208622
add mutex/lock to singlethread mode threadpool
...
remove uneeded i2p.rock.signed.txt
update makefile clean target
2018-08-03 07:26:14 +10:00
Jeff Becker
5c03b3c8f9
add comments
2018-08-03 06:50:16 +10:00
Ryan Tharp
52bbf890ef
move hook out of dnsd into daemon, made hook use timer, decode_answer has beginning SOA parsing support, getDNSstring() refactor
2018-08-02 05:51:49 -07:00
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
2018-08-01 23:41:02 -05:00
Jeff Becker
7622f6cef1
dht tweaks
2018-08-02 14:34:46 +10:00
Jeff Becker
6bd2e965fc
don't store client RC EVER
2018-08-02 14:34:16 +10:00
Jeff Becker
6ffa2eed1c
fix up dht
2018-08-02 11:41:40 +10:00
Jeff Becker
12ea412763
fix dumb dht mistake
2018-08-02 11:10:58 +10:00
Jeff Becker
f8e3ef16b9
correct typo
2018-08-02 10:53:14 +10:00
Jeff Becker
d511057b7d
* logging updates
...
* nicknames in RC (yw kee)
* spec update
* more hidden service code
2018-08-02 10:48:43 +10:00
Jeff Becker
bc1c49b092
dht fixes
2018-08-02 08:10:38 +10:00
Jeff Becker
d1bbce8192
add uint16/32 put/read on buffers
2018-08-02 08:09:12 +10:00
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()
2018-08-01 05:51:28 -07:00
Ryan Tharp
de56a32069
another DNS clean up pass
2018-08-01 02:04:40 -07:00
Ryan Tharp
14df6724f7
bring kqueue up to date with epoll
2018-07-31 20:32:13 -07:00
Ryan Tharp
c5851cd63a
Merge branch 'master' of https://github.com/neuroscr/loki-network
2018-08-01 02:29:21 +00:00
Ryan Tharp
0b32bad7b9
Merge branch 'master' of https://github.com/majestrate/llarp
2018-08-01 02:29:16 +00:00
Ryan Tharp
564d96f0c8
print(), write(filename), commitStream(outstream), private commit()
2018-07-31 19:20:40 -07:00
Jeff Becker
928ec3790d
deterministic logging
2018-07-31 08:35:54 +10:00
Jeff Becker
058ce4fae3
don't put private addresses into rc EVER
2018-07-30 15:58:20 +10:00
Jeff Becker
3b82dfd818
fix previous commit
2018-07-30 11:53:35 +10:00
Jeff Becker
3f54989b68
fix previous commit
2018-07-30 11:50:26 +10:00
Jeff Becker
28f6a76312
remove unused encoding functions
2018-07-30 11:39:35 +10:00
Jeff Becker
d4ea843d33
fix feedback loop
2018-07-30 11:29:22 +10:00
Jeff Becker
1107b39d94
fix decode error
2018-07-30 11:29:12 +10:00
Jeff Becker
b9f07e8593
* tweak event loop parameters
...
* various code cleanup
2018-07-30 10:30:10 +10:00
Jeff Becker
908716aca4
cleanup
2018-07-30 09:29:36 +10:00
Jeff Becker
2f51f6202a
make it not crash
2018-07-30 08:57:39 +10:00
Jeff Becker
d011fb550e
have logic and netio run in same thread for now
2018-07-30 08:20:31 +10:00
Jeff Becker
08b60a9ae7
update code to match protocol spec
...
backwards incompat change
2018-07-29 08:20:32 +10:00
Ryan Tharp
c78449e32c
Merge branch 'master' of https://github.com/neuroscr/loki-network
2018-07-27 20:08:40 -07:00