Grant Limberg dd46e56af2 add include <mmintrin.h> 5 lat temu
..
AES.cpp d18c33d6df Code cleanup, Linux build fixes. 5 lat temu
AES.hpp d18c33d6df Code cleanup, Linux build fixes. 5 lat temu
Address.hpp d18c33d6df Code cleanup, Linux build fixes. 5 lat temu
Buf.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Buf.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
C25519.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
C25519.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
CMakeLists.txt 3dd2c94f4e Moar reorganization. 5 lat temu
Capability.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Capability.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
CertificateOfMembership.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
CertificateOfMembership.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
CertificateOfOwnership.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
CertificateOfOwnership.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Constants.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 lat temu
Containers.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 lat temu
Credential.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Credential.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Defragmenter.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Dictionary.cpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 lat temu
Dictionary.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 lat temu
ECC384.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
ECC384.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Endpoint.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu
Endpoint.hpp d18c33d6df Code cleanup, Linux build fixes. 5 lat temu
EphemeralKey.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 lat temu
Expect.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
FCV.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Fingerprint.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Identity.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu
Identity.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
InetAddress.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
InetAddress.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
LZ4.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
LZ4.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Locator.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Locator.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
MAC.hpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu
Membership.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Membership.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Meter.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
MulticastGroup.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Mutex.hpp e2ca065f28 Cleanup, revise join command 5 lat temu
Network.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Network.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
NetworkConfig.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
NetworkConfig.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
NetworkController.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Node.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu
Node.hpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu
OS.hpp dd46e56af2 add include <mmintrin.h> 5 lat temu
Path.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Path.hpp 016d85b169 Code formatting and similar. 5 lat temu
Peer.cpp 016d85b169 Code formatting and similar. 5 lat temu
Peer.hpp 016d85b169 Code formatting and similar. 5 lat temu
Poly1305.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Poly1305.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Protocol.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
README.md 3c11c13af4 More reorg, work in progress. 5 lat temu
Revocation.cpp 016d85b169 Code formatting and similar. 5 lat temu
Revocation.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
RuntimeEnvironment.hpp 016d85b169 Code formatting and similar. 5 lat temu
SHA512.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
SHA512.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Salsa20.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Salsa20.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
ScopedPtr.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
SelfAwareness.cpp 016d85b169 Code formatting and similar. 5 lat temu
SelfAwareness.hpp 016d85b169 Code formatting and similar. 5 lat temu
SharedPtr.hpp 016d85b169 Code formatting and similar. 5 lat temu
SymmetricKey.hpp 016d85b169 Code formatting and similar. 5 lat temu
Tag.cpp 016d85b169 Code formatting and similar. 5 lat temu
Tag.hpp 016d85b169 Code formatting and similar. 5 lat temu
Tests.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Tests.h 3c11c13af4 More reorg, work in progress. 5 lat temu
Topology.cpp 016d85b169 Code formatting and similar. 5 lat temu
Topology.hpp 016d85b169 Code formatting and similar. 5 lat temu
Trace.cpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Trace.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
TriviallyCopyable.hpp 3c11c13af4 More reorg, work in progress. 5 lat temu
Utils.cpp 016d85b169 Code formatting and similar. 5 lat temu
Utils.hpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu
VL1.cpp 016d85b169 Code formatting and similar. 5 lat temu
VL1.hpp 016d85b169 Code formatting and similar. 5 lat temu
VL2.cpp 016d85b169 Code formatting and similar. 5 lat temu
VL2.hpp 016d85b169 Code formatting and similar. 5 lat temu
version.h.in 3dd2c94f4e Moar reorganization. 5 lat temu
zerotier.h 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 lat temu

README.md

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.