Adam Ierymenko 0d58865061 Fix certificte self-test. há 5 anos atrás
..
AES.cpp cfb0bc4f8e Better CRL implementation, AES fix. há 5 anos atrás
AES.hpp 2ee550bbfd Some optimization. há 5 anos atrás
Address.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). há 5 anos atrás
Blob.hpp 727aa8e71f Warning removal. há 5 anos atrás
Buf.cpp 346d4b572b Fix symbol issues in static build. há 5 anos atrás
Buf.hpp 3c11c13af4 More reorg, work in progress. há 5 anos atrás
C25519.cpp 727aa8e71f Warning removal. há 5 anos atrás
C25519.hpp 3c11c13af4 More reorg, work in progress. há 5 anos atrás
CMakeLists.txt 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. há 5 anos atrás
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. há 5 anos atrás
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. há 5 anos atrás
Certificate.cpp cfb0bc4f8e Better CRL implementation, AES fix. há 5 anos atrás
Certificate.hpp cfb0bc4f8e Better CRL implementation, AES fix. há 5 anos atrás
Constants.hpp 05cc4ea36a dont use __has_include há 5 anos atrás
Containers.hpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Credential.cpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. há 5 anos atrás
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. há 5 anos atrás
Defaults.cpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. há 5 anos atrás
Defaults.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. há 5 anos atrás
Defragmenter.hpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Dictionary.cpp 1eacbdf374 Some cleanup, and fix a really obscure bug in Certificate. há 5 anos atrás
Dictionary.hpp e5f2314055 Fix another not-fun bug. Also exterminate a memory leak and do a few optimizations. há 5 anos atrás
ECC384.cpp 69f1c8701b Define uint since that is not a standard symbol. 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 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. há 5 anos atrás
FCV.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). há 5 anos atrás
Fingerprint.hpp 1eacbdf374 Some cleanup, and fix a really obscure bug in Certificate. há 5 anos atrás
Identity.cpp 1eacbdf374 Some cleanup, and fix a really obscure bug in Certificate. há 5 anos atrás
Identity.hpp 1eacbdf374 Some cleanup, and fix a really obscure bug in Certificate. há 5 anos atrás
InetAddress.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. há 5 anos atrás
InetAddress.hpp 6af39da61a Some formatting and optimization. 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 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. há 5 anos atrás
Locator.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. há 5 anos atrás
MAC.hpp 6af39da61a Some formatting and optimization. há 5 anos atrás
Member.cpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Member.hpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
MembershipCredential.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. há 5 anos atrás
MembershipCredential.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 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 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). há 5 anos atrás
Network.cpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Network.hpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
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. há 5 anos atrás
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. há 5 anos atrás
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. há 5 anos atrás
Node.cpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Node.hpp 866a20e85b More small stuff. há 5 anos atrás
OS.hpp bd0299f392 Some cleanup and optimization. há 5 anos atrás
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. há 5 anos atrás
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. há 5 anos atrás
Path.cpp 727aa8e71f Warning removal. há 5 anos atrás
Path.hpp 727aa8e71f Warning removal. há 5 anos atrás
Peer.cpp 727aa8e71f Warning removal. 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 727aa8e71f Warning removal. há 5 anos atrás
Protocol.hpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. há 5 anos atrás
README.md 3c11c13af4 More reorg, work in progress. há 5 anos atrás
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. há 5 anos atrás
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. há 5 anos atrás
RuntimeEnvironment.hpp 016d85b169 Code formatting and similar. há 5 anos atrás
SHA512.cpp bd0299f392 Some cleanup and optimization. há 5 anos atrás
SHA512.hpp 3c11c13af4 More reorg, work in progress. há 5 anos atrás
Salsa20.cpp 883cbd182d Some optimization work on crypto code. há 5 anos atrás
Salsa20.hpp 3c11c13af4 More reorg, work in progress. há 5 anos atrás
ScopedPtr.hpp 866a20e85b More small stuff. há 5 anos atrás
SelfAwareness.cpp 016d85b169 Code formatting and similar. há 5 anos atrás
SelfAwareness.hpp 866a20e85b More small stuff. há 5 anos atrás
SharedPtr.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. há 5 anos atrás
SymmetricKey.hpp 866a20e85b More small stuff. há 5 anos atrás
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. há 5 anos atrás
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. há 5 anos atrás
Tests.cpp 0d58865061 Fix certificte self-test. há 5 anos atrás
Tests.h 3c11c13af4 More reorg, work in progress. há 5 anos atrás
Topology.cpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Topology.hpp a19bc1e826 Cleanup, remove legacy accessors, formatting. há 5 anos atrás
Trace.cpp 3c11c13af4 More reorg, work in progress. há 5 anos atrás
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. há 5 anos atrás
TriviallyCopyable.hpp 3c11c13af4 More reorg, work in progress. há 5 anos atrás
Utils.cpp b02fc1f28b CGo hell, fix a thinko in CMakeFile. há 5 anos atrás
Utils.hpp e5f2314055 Fix another not-fun bug. Also exterminate a memory leak and do a few optimizations. há 5 anos atrás
VL1.cpp 92d2bbc63c Some symbol renaming, performance improvements, a bug fix for compiling on some platforms, and some Topology work. 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 cfb0bc4f8e Better CRL implementation, AES fix. 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.