ZeroTierOne/core
2021-04-02 18:12:30 -04:00
..
Address.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
AES.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
AES.hpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
AES_aesni.cpp Small fix for VAES. 2021-04-02 15:32:12 -04:00
AES_armcrypto.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
Buf.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Buf.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
C25519.cpp Warning removal, Go work... 2020-08-10 12:35:26 -07:00
C25519.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
CapabilityCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
CapabilityCredential.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
CAPI.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Certificate.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Certificate.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
CMakeLists.txt Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Constants.hpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
Containers.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Credential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Credential.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Defaults.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Defaults.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Defragmenter.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Dictionary.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Dictionary.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
ECC384.cpp Various cleanup... 2021-01-12 15:23:35 -05:00
ECC384.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Endpoint.cpp Create and verify locators via CLI. 2021-03-11 21:37:04 -05:00
Endpoint.hpp Swap out warp for simple hyper web server in Rust, and we will use web sockets for webby-style communication since WebRTC is a mess. 2021-02-25 10:49:35 -05:00
EphemeralKey.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Expect.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
FCV.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Fingerprint.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Identity.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Identity.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
InetAddress.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
InetAddress.hpp Attic cleaning, some work on certs, etc. 2021-03-31 15:33:31 -04:00
Locator.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Locator.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
LZ4.cpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
LZ4.hpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
MAC.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Member.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Member.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MembershipCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MembershipCredential.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Meter.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MIMC52.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
MIMC52.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MulticastGroup.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Mutex.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Network.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Network.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkConfig.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkConfig.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkController.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Node.cpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
Node.hpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
OS.hpp Attic cleaning, some work on certs, etc. 2021-03-31 15:33:31 -04:00
OwnershipCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
OwnershipCredential.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Path.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Path.hpp Attic cleaning, some work on certs, etc. 2021-03-31 15:33:31 -04:00
Peer.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Peer.hpp Attic cleaning, some work on certs, etc. 2021-03-31 15:33:31 -04:00
Poly1305.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Poly1305.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Protocol.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
README.md More reorg, work in progress. 2020-06-05 13:04:37 -07:00
RevocationCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
RevocationCredential.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
RuntimeEnvironment.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Salsa20.cpp Some optimization work on crypto code. 2020-07-15 14:33:02 -07:00
Salsa20.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
ScopedPtr.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
SelfAwareness.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
SelfAwareness.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
SHA512.cpp Some cleanup and optimization. 2020-07-02 10:33:34 -07:00
SHA512.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
SharedPtr.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Spinlock.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Store.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
SymmetricKey.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TagCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TagCredential.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Tests.cpp Break out certificate trust store into a separate object and simplify and clean up certificate verification code. 2021-03-31 22:15:26 -04:00
Tests.h Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TinyMap.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Topology.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Topology.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Trace.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Trace.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TriviallyCopyable.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TrustStore.cpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
TrustStore.hpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
Utils.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
Utils.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
version.h.in Copyright notices, dates. 2021-02-22 22:58:16 -05:00
VL1.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
VL1.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
VL2.cpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
VL2.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
zerotier.h Break out certificate trust store into a separate object and simplify and clean up certificate verification code. 2021-03-31 22:15:26 -04:00

ZeroTier Network Hypervisor Core

This directory contains the real ZeroTier: a completely OS-independent global virtual Ethernet switch engine. This is where the magic happens.

Give it wire packets and it gives you Ethernet packets, and vice versa. The core contains absolutely no actual I/O, port configuration, or other OS-specific code (except Utils::getSecureRandom()). It provides a simple C API via /include/ZeroTierOne.h. It's designed to be small and maximally portable for future use on small embedded and special purpose systems.

Code in here follows these guidelines:

  • Keep it minimal, especially in terms of code footprint and memory use.
  • There should be no OS-dependent code here unless absolutely necessary (e.g. getSecureRandom).
  • If it's not part of the core virtual Ethernet switch it does not belong here.
  • Minimize the use of complex C++ features since at some point we might end up "minus-minus'ing" this code if doing so proves necessary to port to tiny embedded systems.