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

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.