ZeroTierOne/core
2021-05-18 12:36:41 -04:00
..
Address.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
AES.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
AES.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
AES_aesni.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
AES_armcrypto.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Buf.cpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Buf.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
C25519.cpp Formatting and cleanup, warning removal. 2021-05-18 12:36:41 -04:00
C25519.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
CallContext.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
CapabilityCredential.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
CapabilityCredential.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
CAPI.cpp Add a subject signature to the certificate to ensure no CRL tampering has occurred, even by the signer. 2021-04-27 19:10:48 -04:00
Certificate.cpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -04:00
Certificate.hpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40: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 Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Context.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
Credential.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Credential.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
Defaults.cpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Defaults.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
Defragmenter.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Dictionary.cpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Dictionary.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
ECC384.cpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -04:00
ECC384.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Endpoint.cpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Endpoint.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Expect.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
FCV.hpp Build fixes. 2021-04-26 18:11:01 -04:00
Fingerprint.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Identity.cpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -04:00
Identity.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
InetAddress.cpp Formatting and cleanup, warning removal. 2021-05-18 12:36:41 -04:00
InetAddress.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Locator.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Locator.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
LZ4.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
LZ4.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
MAC.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Member.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Member.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
MembershipCredential.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
MembershipCredential.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Meter.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
MIMC52.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -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 More formatting stuff.... 2021-04-26 20:28:30 -04:00
Mutex.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
Network.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Network.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
NetworkConfig.cpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
NetworkConfig.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
NetworkController.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Node.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Node.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
OS.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
OwnershipCredential.cpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
OwnershipCredential.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Path.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Path.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Peer.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Peer.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Poly1305.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Poly1305.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Protocol.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -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 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.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
Salsa20.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Salsa20.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
ScopedPtr.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
SelfAwareness.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
SelfAwareness.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
SHA512.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
SHA512.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
SharedPtr.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Spinlock.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
Store.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
SymmetricKey.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
TagCredential.cpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
TagCredential.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Tests.cpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -04:00
Tests.h ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
TinyMap.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Topology.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Topology.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
Trace.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
Trace.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
TriviallyCopyable.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
TrustStore.cpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -04:00
TrustStore.hpp More formatting stuff.... 2021-04-26 20:28:30 -04:00
Utils.cpp ZeroTier standard .clang-format -- switch to spaces, match indentation of Rust, mostly based on LLVM format. 2021-04-26 08:55:28 -04:00
Utils.hpp Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -04:00
version.h.in Build fixes. 2021-04-26 18:11:01 -04:00
VL1.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
VL1.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
VL2.cpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
VL2.hpp Turn off wrapping as it makes things hard to follow in some cases. 2021-04-26 20:33:38 -04:00
zerotier.h Some cleanup, certificate self-signing fixes, test fixes, test full certificate life cycle including CSR. 2021-05-17 23:40:13 -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.