Adam Ierymenko e7ccd74a9e Disable functions missing in MinGW %!s(int64=5) %!d(string=hai) anos
..
AES.cpp 2ee550bbfd Some optimization. %!s(int64=5) %!d(string=hai) anos
AES.hpp 2ee550bbfd Some optimization. %!s(int64=5) %!d(string=hai) anos
Address.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). %!s(int64=5) %!d(string=hai) anos
Blob.hpp 6af39da61a Some formatting and optimization. %!s(int64=5) %!d(string=hai) anos
Buf.cpp 346d4b572b Fix symbol issues in static build. %!s(int64=5) %!d(string=hai) anos
Buf.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
C25519.cpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
C25519.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
CMakeLists.txt 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. %!s(int64=5) %!d(string=hai) anos
CapabilityCredential.cpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
CapabilityCredential.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
Certificate.cpp 9029570452 Test certificate copy/construct. %!s(int64=5) %!d(string=hai) anos
Certificate.hpp 9029570452 Test certificate copy/construct. %!s(int64=5) %!d(string=hai) anos
Constants.hpp 05cc4ea36a dont use __has_include %!s(int64=5) %!d(string=hai) anos
Containers.hpp 3f4809457f A bunch of compile fixes, and an edge case fix in Dictionary. %!s(int64=5) %!d(string=hai) anos
Credential.cpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. %!s(int64=5) %!d(string=hai) anos
Credential.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
Defaults.cpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. %!s(int64=5) %!d(string=hai) anos
Defaults.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. %!s(int64=5) %!d(string=hai) anos
Defragmenter.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Dictionary.cpp 3f4809457f A bunch of compile fixes, and an edge case fix in Dictionary. %!s(int64=5) %!d(string=hai) anos
Dictionary.hpp 3f4809457f A bunch of compile fixes, and an edge case fix in Dictionary. %!s(int64=5) %!d(string=hai) anos
ECC384.cpp 69f1c8701b Define uint since that is not a standard symbol. %!s(int64=5) %!d(string=hai) anos
ECC384.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Endpoint.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. %!s(int64=5) %!d(string=hai) anos
Endpoint.hpp d18c33d6df Code cleanup, Linux build fixes. %!s(int64=5) %!d(string=hai) anos
EphemeralKey.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. %!s(int64=5) %!d(string=hai) anos
Expect.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
FCV.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). %!s(int64=5) %!d(string=hai) anos
Fingerprint.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Identity.cpp 3f4809457f A bunch of compile fixes, and an edge case fix in Dictionary. %!s(int64=5) %!d(string=hai) anos
Identity.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
InetAddress.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
InetAddress.hpp 6af39da61a Some formatting and optimization. %!s(int64=5) %!d(string=hai) anos
LZ4.cpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
LZ4.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Locator.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
Locator.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. %!s(int64=5) %!d(string=hai) anos
MAC.hpp 6af39da61a Some formatting and optimization. %!s(int64=5) %!d(string=hai) anos
Member.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
Member.hpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
MembershipCredential.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
MembershipCredential.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. %!s(int64=5) %!d(string=hai) anos
Meter.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
MulticastGroup.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Mutex.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). %!s(int64=5) %!d(string=hai) anos
Network.cpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
Network.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
NetworkConfig.cpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
NetworkConfig.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
NetworkController.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
Node.cpp 6e1115ea03 More cert work, support certs in data store, and manually merge CMakefile. %!s(int64=5) %!d(string=hai) anos
Node.hpp 6e1115ea03 More cert work, support certs in data store, and manually merge CMakefile. %!s(int64=5) %!d(string=hai) anos
OS.hpp bd0299f392 Some cleanup and optimization. %!s(int64=5) %!d(string=hai) anos
OwnershipCredential.cpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
OwnershipCredential.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
Path.cpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Path.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
Peer.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
Peer.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
Poly1305.cpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Poly1305.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Protocol.hpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
README.md 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
RevocationCredential.cpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
RevocationCredential.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
RuntimeEnvironment.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
SHA512.cpp bd0299f392 Some cleanup and optimization. %!s(int64=5) %!d(string=hai) anos
SHA512.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Salsa20.cpp 9daf4540de Certificates, and it builds again. %!s(int64=5) %!d(string=hai) anos
Salsa20.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
ScopedPtr.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
SelfAwareness.cpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
SelfAwareness.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
SharedPtr.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. %!s(int64=5) %!d(string=hai) anos
SymmetricKey.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
TagCredential.cpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
TagCredential.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
Tests.cpp 9db9211ed3 Fix method name problem. %!s(int64=5) %!d(string=hai) anos
Tests.h 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Topology.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
Topology.hpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
Trace.cpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Trace.hpp cfc2a43f51 A whole bunch of minor refactoring, and rename a bunch of classes to be more canonical. A credential really is not a certficiate, so just call IdentificationCertificate Certificate and call the network auth stuff credentials. %!s(int64=5) %!d(string=hai) anos
TriviallyCopyable.hpp 3c11c13af4 More reorg, work in progress. %!s(int64=5) %!d(string=hai) anos
Utils.cpp a472aafb3e Windows now builds at least to the point of running zt_core_tests. Go will need a revision to the command in CMake files. %!s(int64=5) %!d(string=hai) anos
Utils.hpp e7ccd74a9e Disable functions missing in MinGW %!s(int64=5) %!d(string=hai) anos
VL1.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. %!s(int64=5) %!d(string=hai) anos
VL1.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
VL2.cpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
VL2.hpp 016d85b169 Code formatting and similar. %!s(int64=5) %!d(string=hai) anos
version.h.in 3dd2c94f4e Moar reorganization. %!s(int64=5) %!d(string=hai) anos
zerotier.h daef6a24d1 Now with less bugs, and less limits that could pose an issue later. %!s(int64=5) %!d(string=hai) anos

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.