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

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.