Adam Ierymenko bae91724a1 Certificate passes all tests. 5 ani în urmă
..
AES.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. 5 ani în urmă
AES.hpp d18c33d6df Code cleanup, Linux build fixes. 5 ani în urmă
Address.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 ani în urmă
Blob.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. 5 ani în urmă
Buf.cpp 346d4b572b Fix symbol issues in static build. 5 ani în urmă
Buf.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
C25519.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
C25519.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
CMakeLists.txt 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
Certificate.cpp bae91724a1 Certificate passes all tests. 5 ani în urmă
Certificate.hpp bae91724a1 Certificate passes all tests. 5 ani în urmă
Constants.hpp 05cc4ea36a dont use __has_include 5 ani în urmă
Containers.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. 5 ani în urmă
Credential.cpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 5 ani în urmă
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. 5 ani în urmă
Defaults.cpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. 5 ani în urmă
Defaults.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. 5 ani în urmă
Defragmenter.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Dictionary.cpp daef6a24d1 Now with less bugs, and less limits that could pose an issue later. 5 ani în urmă
Dictionary.hpp daef6a24d1 Now with less bugs, and less limits that could pose an issue later. 5 ani în urmă
ECC384.cpp 69f1c8701b Define uint since that is not a standard symbol. 5 ani în urmă
ECC384.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Endpoint.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 ani în urmă
Endpoint.hpp d18c33d6df Code cleanup, Linux build fixes. 5 ani în urmă
EphemeralKey.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 ani în urmă
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. 5 ani în urmă
FCV.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 ani în urmă
Fingerprint.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Identity.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 ani în urmă
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. 5 ani în urmă
InetAddress.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. 5 ani în urmă
InetAddress.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
LZ4.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
LZ4.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Locator.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Locator.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 5 ani în urmă
MAC.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. 5 ani în urmă
Member.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. 5 ani în urmă
Member.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. 5 ani în urmă
MembershipCredential.cpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 5 ani în urmă
MembershipCredential.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 5 ani în urmă
Meter.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
MulticastGroup.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Mutex.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
Node.cpp 6e1115ea03 More cert work, support certs in data store, and manually merge CMakefile. 5 ani în urmă
Node.hpp 6e1115ea03 More cert work, support certs in data store, and manually merge CMakefile. 5 ani în urmă
OS.hpp 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. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
Path.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Path.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
Peer.cpp 016d85b169 Code formatting and similar. 5 ani în urmă
Peer.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
Poly1305.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Poly1305.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Protocol.hpp f447608d6b Certificates, etc... work in progress. 5 ani în urmă
README.md 3c11c13af4 More reorg, work in progress. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
RuntimeEnvironment.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
SHA512.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
SHA512.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Salsa20.cpp 9daf4540de Certificates, and it builds again. 5 ani în urmă
Salsa20.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
ScopedPtr.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
SelfAwareness.cpp 016d85b169 Code formatting and similar. 5 ani în urmă
SelfAwareness.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
SharedPtr.hpp 5e1b7f2ba6 Certificate stuff, but not plumbled through to CLI yet to actually make them. 5 ani în urmă
SymmetricKey.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
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. 5 ani în urmă
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. 5 ani în urmă
Tests.cpp bae91724a1 Certificate passes all tests. 5 ani în urmă
Tests.h 3c11c13af4 More reorg, work in progress. 5 ani în urmă
Topology.cpp daef6a24d1 Now with less bugs, and less limits that could pose an issue later. 5 ani în urmă
Topology.hpp daef6a24d1 Now with less bugs, and less limits that could pose an issue later. 5 ani în urmă
Trace.cpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
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. 5 ani în urmă
TriviallyCopyable.hpp 3c11c13af4 More reorg, work in progress. 5 ani în urmă
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. 5 ani în urmă
Utils.hpp 73d0e2e7e0 Interim commit of some cert and cert testing work, also other cleanup in Utils. 5 ani în urmă
VL1.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. 5 ani în urmă
VL1.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
VL2.cpp 016d85b169 Code formatting and similar. 5 ani în urmă
VL2.hpp 016d85b169 Code formatting and similar. 5 ani în urmă
version.h.in 3dd2c94f4e Moar reorganization. 5 ani în urmă
zerotier.h daef6a24d1 Now with less bugs, and less limits that could pose an issue later. 5 ani în urmă

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.