Commit graph

5944 commits

Author SHA1 Message Date
Adam Ierymenko
7fa60b10a3
IT TALKS! (HELLO, OK) 2022-06-23 16:40:47 -04:00
Adam Ierymenko
37ccc44117
Make unique IDs for local sockets globally unique. 2022-06-23 12:36:17 -04:00
Adam Ierymenko
e3906b3269
Split help out of main.rs 2022-06-23 12:00:19 -04:00
Adam Ierymenko
132a603596
Fix typo and naming, exports. 2022-06-23 11:46:08 -04:00
Adam Ierymenko
14b6dbb5d6
Merge pull request #6 from zerotier/erikh-fixes
Fixes
2022-06-23 11:40:09 -04:00
Adam Ierymenko
65df5a2387
Fix deadlock, which turned out to be not setting O_NONBLOCK haha. 2022-06-23 11:38:53 -04:00
Erik Hollensbe
9e60404847
clean up warnings in network hypervisor
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-22 17:24:02 -07:00
Erik Hollensbe
10eb2edd82
cleanup compile errors on linux
so a few things changed here:

- InetType was used to encapsulate the differences between u8 and u16
  situations in linux and other unix-alikes
- Casts were adjusted for the above scenario
- Some warnings and cfg directives were cleaned up a little
- AF_INET and AF_INET6 were removed from inetaddress impl because due to
  scoping rules they're available at the module level anyway.

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-06-22 17:12:54 -07:00
Adam Ierymenko
a61bcaf0f7
VL1 now says HELLO!!! 2022-06-22 16:29:51 -04:00
Adam Ierymenko
36a105ecbf
It now binds and sends packets. They are not correct but they are sent. 2022-06-20 15:11:01 -04:00
Adam Ierymenko
51817ed557
Fix binding and port over BSD/macOS version of check for IPv6 temporary addresses. 2022-06-17 15:07:41 -04:00
Adam Ierymenko
fd00642ec1
It ran. It did something. Yay. 2022-06-16 17:53:52 -04:00
Adam Ierymenko
564df37c1d
More cleanup of incorporation of async. 2022-06-16 13:53:43 -04:00
Adam Ierymenko
6ad30ba1f5
Infect the core with async. Was resisting it a bit but it makes things easier and will probably perform better than using hacks to avoid it. Optional for UDP but we will end up wanting this when we have TCP, HTTP, WebRTC, etc. transports. 2022-06-15 16:46:09 -04:00
Adam Ierymenko
6940b97a92
Fix openssl version of AES-GMAC-SIV, a few other things. 2022-06-14 17:31:29 -04:00
Adam Ierymenko
90e4199b90
Attic this too, though might use it in the future. It's cool but kill your darlings. 2022-06-14 12:02:10 -04:00
Adam Ierymenko
87f5398f59
Ignore all Cargo.lock except the one in the binary. 2022-06-14 12:00:21 -04:00
Adam Ierymenko
ace16bdf05
cleanup 2022-06-14 12:00:07 -04:00
Adam Ierymenko
37263cae96
attic this experiment for now, may have a far simpler version that is also more compliant with corp security guidelines 2022-06-14 11:58:15 -04:00
Adam Ierymenko
2b221dade8
Cleanup, basic readme. 2022-06-14 11:56:59 -04:00
Adam Ierymenko
bab9807725
Remove gcrypt which is dead. 2022-06-13 17:35:13 -04:00
Adam Ierymenko
01e1135b2f
Add AES-GMAC-SIV test vectors and fix an issue. 2022-06-13 17:21:51 -04:00
Adam Ierymenko
9a9b573aa1
docs 2022-06-13 11:52:24 -04:00
Adam Ierymenko
c3ce40b5ba
Wire through RootSet init, a bunch more work, almost ready to test! 2022-06-08 19:05:54 -04:00
Adam Ierymenko
ded7c25786
Another absolute ton of work including getting the service almost to the point that it is ready to say HELLO. Also added an event and tracing infrastructure in the core. Some of the common Rust tracing/logging libraries are not used directly in the core for speed and future portability reasons but they will likely be used in the service. 2022-05-25 18:28:07 -04:00
Adam Ierymenko
1ad5d623f5
Update license and copyright for a project not yet actually released. Final release license TBD. 2022-05-21 13:04:07 -04:00
Adam Ierymenko
9cc36aee0f
A few little security things and code reformat. 2022-05-21 11:53:25 -04:00
Adam Ierymenko
0e44723c1d
version bumps 2022-05-20 13:15:30 -04:00
Adam Ierymenko
9d5c2a925d
An absolutely gigantic amount of refactoring to make the core and its service (or other users) interact in a way that is rustier and also better for performance. Also vastly simplifies some code. 2022-05-18 13:40:44 -04:00
Adam Ierymenko
f14efdcd3d
Data directory abstraction, local config, various other things. 2022-05-11 13:25:51 -04:00
Adam Ierymenko
2d3b96725b
Fix a few serialization bugs. 2022-05-09 18:24:07 -04:00
Adam Ierymenko
88721dc038
Add a URL to the root set to be used for optional out of band updating. 2022-05-09 17:31:13 -04:00
Adam Ierymenko
d41e1b1c41
Move default root set to network-hypervisor, add a priority level to roots. 2022-05-09 17:22:01 -04:00
Adam Ierymenko
188f404361
move root sets 2022-05-06 22:38:57 -04:00
Adam Ierymenko
a4db105f23
Create a root set for our current roots, and it works!!!! 2022-05-06 22:28:29 -04:00
Adam Ierymenko
083e2bc666
A bunch of tightening up code in vl1/node, more CLI work, sketch out CLI for creating root sets. 2022-05-06 11:44:41 -04:00
Adam Ierymenko
3f6ce29f22
Remove stuff that probably will not end up part of the CLI. 2022-05-05 18:24:25 -04:00
Adam Ierymenko
a78b23cf45
Remove some outdated stuff in service, upgrade clap, get it building again. 2022-05-05 18:10:30 -04:00
Adam Ierymenko
40156fd1f3
cruft removal 2022-05-05 16:18:38 -04:00
Adam Ierymenko
a896d615fe
Handling of roots in new VL1, other various small things. 2022-05-05 16:05:25 -04:00
Adam Ierymenko
e7875861a2
A bunch more cleanup, and make a trait for marshal() / unmarshal() 2022-05-04 14:37:02 -04:00
Adam Ierymenko
1f79a2a707
A bunch of reorg and other cleanup. 2022-04-29 16:19:21 -04:00
Adam Ierymenko
6d232f817c
Some renaming to be logical. 2022-04-28 14:03:48 -04:00
Adam Ierymenko
b1f67b13f9
Fix a weird little bug (actually incompatibility with the old code) in x25519 handling in identity, and more cleanup. 2022-04-28 13:52:00 -04:00
Adam Ierymenko
0397440022
Add serde support to Endpoint. 2022-04-27 17:17:36 -04:00
Adam Ierymenko
b53dc62aba
docs 2022-04-27 16:02:37 -04:00
Adam Ierymenko
85b5f0c5e0
Network ID object and some more cleanup. 2022-04-27 16:02:10 -04:00
Adam Ierymenko
6e55419581
Cleanup and implement some serde handlers for some common core data structures. 2022-04-27 15:09:21 -04:00
Adam Ierymenko
b346f3ff07
A bunch of nit-picky cleanup. 2022-04-27 12:54:58 -04:00
Adam Ierymenko
3bdefc1d83
Add a bunch of stuff to InetAddress, clean up, fix some build errors in service. 2022-04-26 16:19:10 -04:00