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

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.