Jeff Becker
be234e4b6e
* make format
...
* snode to snode direct traffic
* wire up dns on service node tun
2018-12-13 11:14:44 -05:00
Michael
85dde7b6b0
Move remaining include/llarp headers to llarp/
2018-12-12 02:53:02 +00:00
Michael
b92ea0521b
Move router_contact.hpp to llarp/
2018-12-12 02:53:01 +00:00
Michael
c0a76714fa
Move link* to llarp/
2018-12-12 02:53:01 +00:00
Michael
c064893947
Move buffer.hpp to llarp/
2018-12-12 02:53:00 +00:00
Jeff
c058ea9dfc
Merge pull request #128 from majestrate/dev
...
use RouterID not bare pointer
2018-12-11 08:35:34 -05:00
Jeff Becker
f58c63547d
use RouterID not bare pointer
2018-12-11 08:33:23 -05:00
Michael
7be452092c
Convert llarp_crypto to be a true C++ class
2018-12-11 00:53:55 +00:00
Michael
f0fce5b68a
Convert llarp_router to be a true C++ class
2018-12-10 20:15:35 +00:00
Jeff Becker
fad734a5ce
strict types for pubkey, secretkey and routerid
2018-12-10 12:22:59 -05:00
Michael
30e9dca2e5
Convert llarp_logic to be a C++ class
2018-12-10 14:15:11 +00:00
despair
f17c01a924
clang-format
2018-12-03 12:28:16 -06:00
despair
d26141d433
Merge branch 'dev' into reeeee-divergence
...
ok hope this works -rick
# Conflicts:
# .gitignore
# .vscode/settings.json
# include/llarp/service/context.hpp
# llarp/dns.cpp
# llarp/dnsc.cpp
# llarp/ev.cpp
# llarp/ev.hpp
# llarp/ev_win32.hpp
# llarp/net.cpp
# llarp/router.cpp
# llarp/router.hpp
# llarp/service/context.cpp
2018-12-03 12:24:56 -06:00
Jeff Becker
afdbed427a
fix previous commits
2018-12-02 20:55:59 -05:00
Jeff Becker
b0e6d01ef3
limit link sessions to max of 16
2018-12-02 20:52:40 -05:00
despair
60f6131e43
netbsd stuff
2018-11-22 20:02:24 -06:00
Jeff Becker
67eadff143
node whitelist option via jsonrpc
2018-11-21 12:46:33 -05:00
Jeff Becker
c1377851a6
return bool when trying to establish link layer session
2018-11-21 09:56:12 -05:00
despair
906f11d08f
gah how did i miss that
2018-11-20 09:38:46 -06:00
Jeff Becker
b543d6243d
Merge branch 'master' into dev
2018-11-20 07:42:17 -05:00
despair
436025e0ca
fix utp flags leaking into the actual socket transmission
...
clang-format
2018-11-20 06:11:51 -06:00
despair
964e834fea
finally get the right error on windows
...
fix
fix up errno on win32
test
2018-11-20 02:38:24 -06:00
Michael
1c0cf72c02
Rename endian.h
2018-11-20 00:52:19 +00:00
Jeff Becker
e287e5132b
more vigorus pings
2018-11-19 17:04:23 -05:00
Jeff Becker
950d13a818
more logging
2018-11-19 16:55:41 -05:00
Jeff Becker
bad32dbb98
more logging
2018-11-19 16:33:51 -05:00
despair
be7ac352ca
switch to a simulation of epoll
...
the native async event system on windows
is _not_ very good at getting external events
(i.e. we receive data, but we don't get any indication
that this ever happened)
2018-11-19 04:29:39 -06:00
despair
c325246beb
need to start winsock to use any networking
...
try fixing this
2018-11-19 04:29:39 -06:00
despair
d311b2e9a9
remove dead code
...
(rip golden shield users D:)
remove more dead code
debug udp stuff
remove debug kqueue
2018-11-12 23:39:50 -06:00
Michael Thorpe
33bfaf7ecd
Enable -Wextra
...
test criteria:
- test build on macOS
- test build in debian docker container
- test build in fedora docker container
2018-11-07 15:31:13 +00:00
Michael Thorpe
a2d5d80779
Enable warnings as errors
...
test criteria:
- Built from clean on macOS
2018-11-06 22:48:17 +00:00
Jeff Becker
f03603a0da
always remove dht nodes, lock sometimes, don't make router destructor virtual
2018-11-05 08:19:08 -05:00
Jeff Becker
dbd2c41909
use event loop for time
2018-10-29 12:48:36 -04:00
Jeff Becker
48e4f676cc
add rpc method for llarp.admin.link.neighboors
2018-10-25 14:18:12 -04:00
Jeff Becker
26ad679b1d
set send queue limit to something really big
2018-10-19 12:12:46 -04:00
Jeff Becker
d3278946f2
ipv4 bogon checking
2018-10-15 08:02:32 -04:00
despair86
88854f558e
Revert "return the correct address family?"
...
not really needed....looks safe so long as the bytes are in network order (hence, the inet4 link will only grab the top 32 bits of the whole inet6 address field.)
This reverts commit 56e41ebda0c29bb2a85dd3f8dbbfba30da8c0a2c.
2018-10-11 19:22:11 -05:00
despair86
7d30d9ee38
return the correct address family?
2018-10-11 19:22:11 -05:00
despair86
3c13101beb
clang-format
2018-10-06 12:04:52 -05:00
despair86
31c8aee3c1
woooooooooooooo
...
lokinet on win32 is now live
and the server code is more stable than the client code
2018-10-06 12:04:51 -05:00
Jeff Becker
ab306b70bb
try closing session correctly
2018-10-04 13:41:23 -04:00
Jeff Becker
d71f0db2a5
more vigorous profiling
2018-10-04 13:34:26 -04:00
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)
2018-10-01 15:08:55 -05:00
despair86
7f809eb53b
fix windows build
2018-10-01 15:06:07 -05:00
Jeff Becker
2b8bd11f5e
ping less and try not to double free in llarp_router::SendToOrQueue
2018-09-30 08:01:58 -04:00
Jeff Becker
97bae70817
close sessions on link close not on destructor
2018-09-24 06:23:11 -04:00
Jeff Becker
ce03801a51
close socket in destructor
2018-09-23 07:29:41 -04:00
Jeff Becker
5ebe3cc97c
limits and have clients use ephemeral identity
2018-09-18 16:56:22 -04:00
Jeff Becker
cde76250ca
close connections
2018-09-18 14:05:41 -04:00
Jeff Becker
8d679b00a7
only log errors on sessions made with utp
...
only rebuild paths when introset changes router for outbound context
2018-09-18 11:05:56 -04:00