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

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.