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

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.