Commit Graph

219 Commits

Author SHA1 Message Date
Jeff Becker
0278ba559c
add single threaded mode for shadow 2018-06-06 08:46:26 -04:00
Jeff Becker
4fd0ef6984
timer fixes 2018-06-05 07:48:06 -04:00
Jeff Becker
d3782cb3ab
update timer 2018-06-04 13:22:14 -04:00
Ryan Tharp
d0196fdc65 comment and error output 2018-06-04 06:11:13 -07:00
Ryan Tharp
a7abaa7f02 llvm 3.8 fixes 2018-06-04 06:10:19 -07:00
Ryan Tharp
bbf9f2274c fix kqueue on OSX 2018-06-04 06:08:35 -07:00
Ryan Tharp
b7fe7e465c llvm 3.8 compat 2018-06-04 06:07:31 -07:00
Ryan Tharp
6e1a0e1702 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-04 12:59:20 +00:00
Jeff Becker
d5e232d7c5
advance iterator 2018-06-04 07:59:29 -04:00
Jeff Becker
eae8a81e35
fix timer a bit more 2018-06-04 07:49:37 -04:00
Jeff Becker
98130d0dcd
fix up timer 2018-06-04 07:46:02 -04:00
Ryan Tharp
87c6571bc2 fixed context, change deletion method 2018-06-04 01:42:21 +00:00
Ryan Tharp
129605cc36 Merge branch 'master' of https://github.com/neuroscr/llarp 2018-06-04 00:43:11 +00:00
Ryan Tharp
56fcaaa567 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-03 22:49:04 +00:00
Jeff Becker
4ce92ae9d1
xenial 2018-06-03 11:41:41 -04:00
Jeff Becker
c9fe6c374f
try fixing timer again 2018-06-03 11:40:12 -04:00
Jeff Becker
f8be941bce
more timer fixing shit 2018-06-03 11:31:26 -04:00
Jeff Becker
1effcf88f8
try fixing timer 2018-06-03 11:27:22 -04:00
Jeff Becker
c4fef111d2
add breaak 2018-06-03 11:04:46 -04:00
Jeff Becker
000658d7b0
fix hashing 2018-06-03 11:02:00 -04:00
Jeff Becker
5fb1953ee9
more checks 2018-06-03 10:41:59 -04:00
Jeff Becker
0416bda24f
reassemble in order 2018-06-03 10:34:00 -04:00
Jeff Becker
698cc0489e
logging 2018-06-03 10:28:22 -04:00
Jeff Becker
4231243931
more iwp tweaking 2018-06-03 10:06:56 -04:00
Jeff Becker
70d19621ee
immediate acknoledge xmit and then trasnmit frags 2018-06-03 09:49:12 -04:00
Jeff Becker
adeb3ca837
xenial backport 2018-06-03 09:39:13 -04:00
Jeff Becker
c2d76dce3a
inbound message fixes 2018-06-03 09:36:38 -04:00
Jeff Becker
2075f9a6b8
add discard message for testing 2018-06-03 09:04:51 -04:00
Jeff Becker
04628874cd
handle message fragmentation better 2018-06-03 08:35:50 -04:00
Jeff Becker
0d4baa924e
bounds check 2018-06-03 08:17:06 -04:00
Jeff Becker
a3628f153a
fix 2018-06-02 10:44:26 -04:00
Jeff Becker
0acf142619
make it compile 2018-06-02 10:41:30 -04:00
Jeff Becker
840c7c4925
fix timeout issue 2018-06-02 10:40:41 -04:00
Jeff Becker
1c2155284e
only keepalive when established 2018-06-02 09:46:35 -04:00
Jeff Becker
7ea64305ab
keepalive every tick 2018-06-02 09:42:19 -04:00
Jeff Becker
3fd79f73c6
increment iterator 2018-06-02 09:36:59 -04:00
Jeff Becker
3ad3dbd29d
add debug 2018-06-02 09:34:06 -04:00
Jeff Becker
c6b3a45eca
actually call session ticker 2018-06-02 09:22:08 -04:00
Jeff Becker
87aabefddc
some fixups on link layer
only add trusted routers to DHT
2018-06-02 09:18:11 -04: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
3f6a5c4ca5 Merge branch 'master' of https://github.com/majestrate/llarp 2018-06-01 21:55:48 +00:00
Jeff Becker
fe7388bd69
make it work 2018-06-01 17:47:38 -04:00
Jeff Becker
620b9616a6
initial dht implementation 2018-06-01 17:35:17 -04:00
Jeff Becker
1a6a0755e3
fix compile warning 2018-06-01 14:05:40 -04:00
Jeff Becker
3db5bffbbd
fix xenial backport 2018-06-01 13:54:21 -04:00
Jeff Becker
9816fd65e9
* logging refactor to be concise
* don't inline bencode

* refactor initial start of dht code a bit
2018-06-01 13:47:37 -04:00
Jeff Becker
0724479eba
fix logging 2018-06-01 10:24:58 -04:00
Jeff Becker
5649d261ae
start fleshing out dht subsystem a bit 2018-06-01 10:08:54 -04:00
Ryan Tharp
40dedf7471 start of async version of verifying router contacts 2018-05-31 06:08:06 -07:00
Ryan Tharp
ee28623dbf important threading note 2018-05-31 06:07:52 -07:00
Ryan Tharp
5f3c2b4499 implement missing llarp_alloc struct 2018-05-31 06:06:28 -07:00
Ryan Tharp
563f94773b Merge branch 'master' of https://github.com/majestrate/llarp 2018-05-31 09:32:38 +00:00
Jeff Becker
fe19314484
more stuff 2018-05-30 16:56:47 -04:00
Ryan Tharp
eebb36683c new getter/setter style API 2018-05-29 17:40:02 -07:00
Jeff Becker
c45e9e9f0a
add frame counter 2018-05-29 14:56:00 -04:00
Jeff Becker
1b1969891e
make reused sessions alive again 2018-05-29 14:36:40 -04:00
Jeff Becker
db48e82841
fix up naming 2018-05-29 14:32:47 -04:00
Jeff Becker
ba87b1036a
initialize inner member 2018-05-29 14:17:28 -04:00
Jeff Becker
2bcb4d30fd
handle intro/introack better 2018-05-29 14:08:39 -04:00
Jeff Becker
3425e73a9c
try fixing race 2018-05-29 13:45:33 -04:00
Jeff Becker
052b53df69
use unorderd_map not map 2018-05-29 12:11:32 -04:00
Jeff Becker
21ed6de756
try fixing multi session 2018-05-29 12:01:28 -04:00
Jeff Becker
55be8ee6a3
handle frag messages in iwp 2018-05-29 11:47:10 -04:00
Jeff Becker
6ce74fe130
use emplace not try_emplace for backport 2018-05-29 10:57:13 -04:00
Jeff Becker
8351f19e9a
retry on session already made 2018-05-29 09:45:47 -04:00
Jeff Becker
31cbfd255e
ipv4 fixes 2018-05-29 09:40:26 -04:00
Ryan Tharp
9f2d7f717a Merge branch 'master' of https://github.com/majestrate/llarp 2018-05-29 12:21:50 +00:00
Ryan Tharp
3808ea1215 FreeBSD use specific FreeBSD pthread naming api 2018-05-29 05:16:44 -07:00
Ryan Tharp
a57cffa481 AF_LINK support (AF_PACKET guard), fallback to ipv4 if ipv6 doesn't connect 2018-05-29 05:16:08 -07:00
Jeff Becker
bee7c2b271
ipv4 fixes 2018-05-29 08:15:48 -04:00
Ryan Tharp
d7672aa37a AF_PACKET guards 2018-05-29 05:15:34 -07:00
Ryan Tharp
5efbb00189 kqueue support 2018-05-29 05:14:50 -07:00
Ryan Tharp
78007425fd use FreeBSD API for setting thread names 2018-05-29 05:13:33 -07:00
Jeff Becker
57c39eeded
prevent double free 2018-05-28 16:58:10 -04:00
Jeff Becker
a00a0622d1
more docs
more logging
2018-05-28 16:51:15 -04:00
Jeff Becker
56a0efd41d
remove logging 2018-05-28 10:28:26 -04:00
Jeff Becker
24caf1fc8c
docs 2018-05-28 10:26:16 -04:00
Jeff Becker
02d785d30c
add release targets to makefile for future
purge llarp_alloc

colored logging
2018-05-28 09:49:44 -04:00
Jeff Becker
e58bd10b23
add python ffi example wrapper code 2018-05-27 15:13:25 -04:00
Jeff Becker
3f21cc5865
make c api for main 2018-05-27 14:03:10 -04:00
Jeff Becker
4a3a0fc556
make an application context to simplify the main function 2018-05-27 13:44:01 -04:00
Jeff Becker
956973cb84
use configurable number of net io threads 2018-05-27 12:45:04 -04:00
Jeff Becker
bfaa837bce
refactor everything to use logger 2018-05-27 10:04:30 -04:00
Jeff Becker
39b1714f27
add minimal logger
move some printf to use logger

remove warnings from bencode.h
2018-05-27 09:42:55 -04:00
Jeff Becker
720452770b
* add removing timer jobs
* remove timer before session timeout

* don't reschedule timer right before timeout
2018-05-27 08:49:10 -04:00
Jeff Becker
c51d29a0c6
add link level keepalive
remove debugging messages

start handling more messages
2018-05-26 14:31:45 -04:00
Jeff Becker
93f0e03958
handle inter node messages
currently only handling LIM
2018-05-25 13:52:10 -04:00
Jeff Becker
c2ef57d9a2
Merge remote-tracking branch 'ryan/master' 2018-05-25 08:27:54 -04:00
Jeff Becker
7b7cc712d5
fix types 2018-05-25 08:24:31 -04:00
Jeff Becker
dc92b98c9c
more protocol changes to make it saner.
iwp sessions now can derive session key
2018-05-24 12:04:34 -04:00
Jeff Becker
4929bf0da8
fix with gcc and use default c++ compiler 2018-05-24 09:03:11 -04:00
Jeff Becker
b2a9605745
it does stuff :DDDDDDDD 2018-05-23 16:37:43 -04:00
Jeff Becker
d426f9e65e
more 2018-05-23 09:49:00 -04:00
Ryan Tharp
4d911f94d6 remove debug 2018-05-22 23:54:42 +00:00
Ryan Tharp
9ea9a6b527 fix struct declaration to make gcc 7.3 happy 2018-05-22 23:17:37 +00:00
Jeff Becker
d8631bb2b5
fix leaks 2018-05-22 15:19:06 -04:00
Jeff Becker
71c34231b2
Merge remote-tracking branch 'ryan/master' 2018-05-22 14:41:38 -04:00
Jeff Becker
bc9e32d690
clang format and lots of stupid bug fixes 2018-05-22 11:54:19 -04:00
Jeff Becker
ae5243cc95
add clang format but don't format YET 2018-05-21 10:28:15 -04:00