Adam Ierymenko aa9ca845e8 Merge edge, still need to resolve CMakeLists.txt 5 лет назад
..
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 лет назад
AES.hpp d18c33d6df Code cleanup, Linux build fixes. 5 лет назад
Address.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
Blob.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
Buf.cpp 346d4b572b Fix symbol issues in static build. 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 aa9ca845e8 Merge edge, still need to resolve CMakeLists.txt 5 лет назад
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 лет назад
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 лет назад
Certificate.cpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
Certificate.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
Constants.hpp 05cc4ea36a dont use __has_include 5 лет назад
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 лет назад
Credential.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 лет назад
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 лет назад
Defragmenter.hpp 3c11c13af4 More reorg, work in progress. 5 лет назад
Dictionary.cpp 8d2a0f764b Some minor reorg. 5 лет назад
Dictionary.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 лет назад
ECC384.cpp 69f1c8701b Define uint since that is not a standard symbol. 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 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 лет назад
FCV.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 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 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 лет назад
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 лет назад
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 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 лет назад
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 лет назад
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 лет назад
MembershipCredential.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 лет назад
MembershipCredential.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 лет назад
Meter.hpp 3c11c13af4 More reorg, work in progress. 5 лет назад
MulticastGroup.hpp 3c11c13af4 More reorg, work in progress. 5 лет назад
Mutex.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
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 лет назад
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 лет назад
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 лет назад
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 лет назад
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 лет назад
Node.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 лет назад
Node.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 лет назад
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 лет назад
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 лет назад
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 лет назад
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 f447608d6b Certificates, etc... work in progress. 5 лет назад
README.md 3c11c13af4 More reorg, work in progress. 5 лет назад
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 лет назад
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 лет назад
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 9daf4540de Certificates, and it builds again. 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 лет назад
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 лет назад
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 лет назад
Tests.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 лет назад
Tests.h 3c11c13af4 More reorg, work in progress. 5 лет назад
Topology.cpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
Topology.hpp 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 5 лет назад
Trace.cpp 3c11c13af4 More reorg, work in progress. 5 лет назад
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 лет назад
TriviallyCopyable.hpp 3c11c13af4 More reorg, work in progress. 5 лет назад
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 лет назад
Utils.hpp 765dc413db Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 5 лет назад
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 лет назад
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 05a3831acb Certificates, and rename credentials to credential since they are not truly certificates (according to the common definition). 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.