Adam Ierymenko 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 gadi atpakaļ
..
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 gadi atpakaļ
AES.hpp d18c33d6df Code cleanup, Linux build fixes. 5 gadi atpakaļ
Address.hpp d18c33d6df Code cleanup, Linux build fixes. 5 gadi atpakaļ
Blob.hpp f447608d6b Certificates, etc... work in progress. 5 gadi atpakaļ
Buf.cpp 346d4b572b Fix symbol issues in static build. 5 gadi atpakaļ
Buf.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
C25519.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
C25519.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
CMakeLists.txt 9daf4540de Certificates, and it builds again. 5 gadi atpakaļ
Capability.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Capability.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
CertificateOfMembership.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
CertificateOfMembership.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
CertificateOfOwnership.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
CertificateOfOwnership.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Constants.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 gadi atpakaļ
Containers.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 gadi atpakaļ
Credential.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Credential.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Defragmenter.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Dictionary.cpp 8d2a0f764b Some minor reorg. 5 gadi atpakaļ
Dictionary.hpp 8d2a0f764b Some minor reorg. 5 gadi atpakaļ
ECC384.cpp 69f1c8701b Define uint since that is not a standard symbol. 5 gadi atpakaļ
ECC384.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Endpoint.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 gadi atpakaļ
Endpoint.hpp d18c33d6df Code cleanup, Linux build fixes. 5 gadi atpakaļ
EphemeralKey.hpp 938cbba449 Root set stuff, code formatting and other boring stuff. 5 gadi atpakaļ
Expect.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
FCV.hpp ecb09aa2e1 Fix bounds check bug. 5 gadi atpakaļ
Fingerprint.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
IdentificationCertificate.cpp 8d2a0f764b Some minor reorg. 5 gadi atpakaļ
IdentificationCertificate.hpp 8d2a0f764b Some minor reorg. 5 gadi atpakaļ
Identity.cpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 gadi atpakaļ
Identity.hpp f447608d6b Certificates, etc... work in progress. 5 gadi atpakaļ
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 gadi atpakaļ
InetAddress.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
LZ4.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
LZ4.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Locator.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Locator.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
MAC.hpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 gadi atpakaļ
Membership.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Membership.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Meter.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
MulticastGroup.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Mutex.hpp f447608d6b Certificates, etc... work in progress. 5 gadi atpakaļ
Network.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Network.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
NetworkConfig.cpp 9daf4540de Certificates, and it builds again. 5 gadi atpakaļ
NetworkConfig.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
NetworkController.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Node.cpp f447608d6b Certificates, etc... work in progress. 5 gadi atpakaļ
Node.hpp 40d48c969c Some cleanup, revision to Endpoint string format, stub out HTTP API callbacks. 5 gadi atpakaļ
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 gadi atpakaļ
Path.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Path.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Peer.cpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Peer.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Poly1305.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Poly1305.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Protocol.hpp f447608d6b Certificates, etc... work in progress. 5 gadi atpakaļ
README.md 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Revocation.cpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Revocation.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
RuntimeEnvironment.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
SHA512.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
SHA512.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Salsa20.cpp 9daf4540de Certificates, and it builds again. 5 gadi atpakaļ
Salsa20.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
ScopedPtr.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
SelfAwareness.cpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
SelfAwareness.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
SharedPtr.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
SymmetricKey.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Tag.cpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Tag.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
Tests.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 gadi atpakaļ
Tests.h 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Topology.cpp 9daf4540de Certificates, and it builds again. 5 gadi atpakaļ
Topology.hpp 9daf4540de Certificates, and it builds again. 5 gadi atpakaļ
Trace.cpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
Trace.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
TriviallyCopyable.hpp 3c11c13af4 More reorg, work in progress. 5 gadi atpakaļ
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 gadi atpakaļ
Utils.hpp 765dc413db Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 5 gadi atpakaļ
VL1.cpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
VL1.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
VL2.cpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
VL2.hpp 016d85b169 Code formatting and similar. 5 gadi atpakaļ
version.h.in 3dd2c94f4e Moar reorganization. 5 gadi atpakaļ
zerotier.h 765dc413db Merge branch 'edge' of http://git.int.zerotier.com/zerotier/ZeroTierOne into edge 5 gadi atpakaļ

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.