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

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.