ZeroTierOne/core
2020-06-05 22:18:58 -07:00
..
Address.hpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
AES.cpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
AES.hpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
Buf.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Buf.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
C25519.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
C25519.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Capability.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Capability.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
CertificateOfMembership.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
CertificateOfMembership.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
CertificateOfOwnership.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
CertificateOfOwnership.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
CMakeLists.txt Moar reorganization. 2020-06-05 13:26:35 -07:00
Constants.hpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
Containers.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Credential.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Credential.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Defragmenter.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Dictionary.cpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
Dictionary.hpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
ECC384.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
ECC384.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Endpoint.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Endpoint.hpp Code cleanup, Linux build fixes. 2020-06-05 22:18:58 -07:00
EphemeralKey.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Expect.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
FCV.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Fingerprint.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Identity.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Identity.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
InetAddress.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
InetAddress.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Locator.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Locator.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
LZ4.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
LZ4.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
MAC.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Membership.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Membership.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Meter.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
MulticastGroup.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Mutex.hpp Cleanup, revise join command 2020-06-05 16:36:31 -07:00
Network.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Network.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
NetworkConfig.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
NetworkConfig.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
NetworkController.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Node.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Node.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
OS.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Path.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Path.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Peer.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Peer.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Poly1305.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Poly1305.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Protocol.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
README.md More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Revocation.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Revocation.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
RuntimeEnvironment.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Salsa20.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Salsa20.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
ScopedPtr.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
SelfAwareness.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
SelfAwareness.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
SHA512.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
SHA512.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
SharedPtr.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
SymmetricKey.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Tag.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Tag.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Tests.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Tests.h More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Topology.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Topology.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Trace.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Trace.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
TriviallyCopyable.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Utils.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Utils.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
version.h.in Moar reorganization. 2020-06-05 13:26:35 -07:00
VL1.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
VL1.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
VL2.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
VL2.hpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
zerotier.h Moar reorganization. 2020-06-05 13:26:35 -07:00

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.