Commit Graph

117 Commits

Author SHA1 Message Date
Jeff Becker
51bfcb5493
milliseconds not microseconds 2018-10-29 12:58:19 -04:00
Jeff Becker
dbd2c41909
use event loop for time 2018-10-29 12:48:36 -04:00
Jeff
9f9d4cd0e0 flush during tick 2018-10-27 18:07:16 -04:00
Jeff
2ca152f43f make tun work on kqueue 2018-10-27 16:02:37 -04:00
Jeff
04b738aa9e make it work on osx for real 2018-10-27 15:03:23 -04:00
Jeff
ccead80c3d make jsonrpc server configurable on build, disabled by default.
default to client only and require explicitly run as relay to run as relay.
2018-10-27 08:41:04 -04:00
Jeff Becker
f873b18036
fix up event loop 2018-10-25 08:39:32 -04:00
Jeff Becker
957a5ed833
initial epoll event loop implementation for tcp 2018-10-24 14:02:42 -04:00
Jeff
0e66ba2026 flush tun on macos 2018-10-23 09:52:14 -04:00
Jeff
4ea3549c21 tick and use std::unique_ptr 2018-10-21 13:07:17 -04:00
Jeff
b8ed9ceea8 fix kqueue and merge changes 2018-10-21 11:15:04 -04:00
Jeff Becker
ff26f2dcff
do bounds check 2018-10-15 12:20:45 -04:00
Jeff Becker
d7c188d817
Revert "add a check for overlow in event loop"
This reverts commit 1042c73829.
2018-10-15 12:19:48 -04:00
Jeff Becker
1042c73829
add a check for overlow in event loop 2018-10-15 12:09:34 -04:00
Jeff
fd37100ac8 typofix 2018-10-10 15:24:04 -04:00
Jeff Becker
32a028f6d8
Merge remote-tracking branch 'cathugger/master' 2018-10-10 07:48:44 -04:00
despair86
3c13101beb clang-format 2018-10-06 12:04:52 -05:00
despair86
2326ad0339 added note 2018-10-06 12:04:51 -05:00
despair86
e98835ff5c debug 2018-10-06 12:04:50 -05:00
Jeff
a0317e1430 remove logging 2018-10-06 11:10:02 -04:00
Ryan Tharp
48d9a38534 getSockAddr(), findFreePrivateRange(), findFreeLokiTunIfName() 2018-10-03 03:35:39 -07:00
Ryan Tharp
4b3b09736b Merge branch 'master' of https://github.com/loki-project/loki-network 2018-10-02 23:11:44 +00:00
Jeff
dbeead03f3 fix kqueue build 2018-10-02 10:29:46 -04:00
Jeff Becker
23cff0bee3
try fixing all that tun shit, YOLO 2018-10-01 13:16:15 -04:00
Ryan Tharp
058ed4d4ea Merge branch 'master' of https://github.com/neuroscr/loki-network 2018-10-01 09:03:31 +00:00
Jeff
a168c81a75 make mac tun work 2018-09-30 11:40:34 -04:00
Ryan Tharp
9ea564e832 update llarp_main_init_dnsd to make new DNSd init 2018-09-29 03:27:38 -07:00
Ryan Tharp
6cb073aa02 Merge branch 'master' of https://github.com/loki-project/loki-network 2018-09-21 11:06:57 +00:00
Jeff
929cd8169f i fucking hate apple it's fucking shit, fucking god awful shit.
also drybones will never find this.
2018-09-20 18:31:34 -04:00
Ryan Tharp
f283923cb7 Merge branch 'master' of https://github.com/loki-project/loki-network 2018-09-19 12:28:48 +00:00
Ryan Tharp
9f33edeed0 Merge branch 'master' of https://github.com/loki-project/loki-network 2018-09-19 12:22:34 +00:00
Jeff Becker
dd6a8360ba
don't tick in kqueue if closed 2018-09-14 14:36:39 -04:00
Jeff Becker
5dfcd60df1
more 2018-09-06 16:31:58 -04:00
Ryan Tharp
8724ddd792 Merge branch 'master' of https://github.com/loki-project/loki-network 2018-08-23 22:51:23 +00:00
despair86
3ccb425021 hmm this may work on BSD unix... 2018-08-23 13:44:44 -05: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
Ryan Tharp
a5f2f7080d Merge branch 'master' of https://github.com/neuroscr/loki-network 2018-08-16 10:44:31 +00: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
Ryan Tharp
ec237768d7 merge 2018-08-13 01:47:24 -07:00
Jeff Becker
a9b28e5407
more fuxing around 2018-08-09 23:51:38 -04: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
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
Ryan Tharp
14df6724f7 bring kqueue up to date with epoll 2018-07-31 20:32:13 -07:00
Jeff Becker
f7ab46aef0 fix osx build 2018-07-27 14:30:32 +10:00
despair86
bbe0634edc this should get things going on UNIX :D 2018-07-25 20:00:15 -05:00
Jeff Becker
fe01c38d8e
* fix dht feedback loop
* start on dht lookups for hidden services

* make debug logging confurable on runtime with env var LLARP_DEBUG=1

* make eventloop tick only when we get traffic

* make testnet parameters configurable on runtime
2018-07-12 09:43:37 -04:00
Jeff Becker
21a2ffdeaf
* refactor log functions
* add more stuff for hidden service dht
2018-07-05 11:44:06 -04:00
Jeff Becker
1c26fb5e40
* codel related changes
* add tick callback to udp event loop
2018-06-27 09:14:07 -04:00
Jeff Becker
aa251cdd01
make format 2018-06-18 18:05:02 -04:00
Ryan Tharp
f49bd89a42 Merge branch 'master' of https://github.com/neuroscr/llarp 2018-06-18 01:06:29 -07:00
Ryan Tharp
e00713687e fix debug messages 2018-06-18 00:55:55 -07:00
Jeff Becker
54366c040c
make format 2018-06-17 11:26:00 -04:00
Ryan Tharp
7b8ef635e4 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-07 06:49:57 +00:00
Jeff Becker
a0f1d548f8
more shadow stuff 2018-06-06 17:23:57 -04:00
Jeff Becker
0278ba559c
add single threaded mode for shadow 2018-06-06 08:46:26 -04:00
Ryan Tharp
bbf9f2274c fix kqueue on OSX 2018-06-04 06:08:35 -07:00
Ryan Tharp
a6f3e09d8b remove debug 2018-06-01 15:41:10 -07:00
Ryan Tharp
34dca85780 fix BSD compile issue, added some debug, OSX compile fixes 2018-06-01 15:39:30 -07:00
Ryan Tharp
5efbb00189 kqueue support 2018-05-29 05:14:50 -07:00