ZeroTierOne/core
2021-07-06 16:35:20 -04:00
..
Address.hpp Build fixes, warning removal. 2021-05-19 16:24:21 -04:00
AES.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
AES.hpp ... a bunch of stuff that has been sitting here for too long ... 2021-07-06 16:35:20 -04:00
AES_aesni.cpp Build fixes, warning removal. 2021-05-19 16:24:21 -04:00
AES_armcrypto.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Buf.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Buf.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
C25519.cpp Build fixes, warning removal. 2021-05-19 16:24:21 -04:00
C25519.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
CallContext.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
CapabilityCredential.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
CapabilityCredential.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
CAPI.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Certificate.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Certificate.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
CMakeLists.txt ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Constants.hpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Containers.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Context.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Credential.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Credential.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Defaults.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Defaults.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Defragmenter.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Dictionary.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Dictionary.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
ECC384.cpp ... a bunch of stuff that has been sitting here for too long ... 2021-07-06 16:35:20 -04:00
ECC384.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Endpoint.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Endpoint.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Expect.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
FCV.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Fingerprint.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Identity.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Identity.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
InetAddress.cpp ... a bunch of stuff that has been sitting here for too long ... 2021-07-06 16:35:20 -04:00
InetAddress.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Locator.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Locator.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
LZ4.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
LZ4.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
MAC.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Member.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Member.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
MembershipCredential.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
MembershipCredential.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Meter.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
MIMC52.cpp ... a bunch of stuff that has been sitting here for too long ... 2021-07-06 16:35:20 -04:00
MIMC52.hpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
MulticastGroup.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Mutex.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Network.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Network.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
NetworkConfig.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
NetworkConfig.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
NetworkController.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Node.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Node.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
OS.hpp ... a bunch of stuff that has been sitting here for too long ... 2021-07-06 16:35:20 -04:00
OwnershipCredential.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
OwnershipCredential.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Path.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Path.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Peer.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Peer.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Poly1305.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Poly1305.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Protocol.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
README.md ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
RevocationCredential.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
RevocationCredential.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Salsa20.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Salsa20.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
ScopedPtr.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
SelfAwareness.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
SelfAwareness.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
SHA512.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
SHA512.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
SharedPtr.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Spinlock.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Store.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
SymmetricKey.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
TagCredential.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
TagCredential.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Tests.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Tests.h Clang-format changes. 2021-05-18 12:43:13 -04:00
TinyMap.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Topology.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Topology.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Trace.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Trace.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
TriviallyCopyable.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
TrustStore.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
TrustStore.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
Utils.cpp Some formatting and perf fixes. 2021-05-19 15:49:55 -04:00
Utils.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
version.h.in Some formatting and perf fixes. 2021-05-19 15:49:55 -04:00
VL1.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
VL1.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
VL2.cpp Clang-format changes. 2021-05-18 12:43:13 -04:00
VL2.hpp Clang-format changes. 2021-05-18 12:43:13 -04:00
zerotier.h ... a bunch of stuff that has been sitting here for too long ... 2021-07-06 16:35:20 -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.