Adam Ierymenko b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
..
Address.hpp d2415dee00 Cleanup. %!s(int64=8) %!d(string=hai) anos
Array.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
AtomicCounter.hpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Buffer.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
C25519.cpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
C25519.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Capability.cpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Capability.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
CertificateOfMembership.cpp d2415dee00 Cleanup. %!s(int64=8) %!d(string=hai) anos
CertificateOfMembership.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
CertificateOfOwnership.cpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
CertificateOfOwnership.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
CertificateOfRepresentation.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Constants.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Credential.hpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Dictionary.hpp 495c5ce81d Bunch of remote tracing work. %!s(int64=8) %!d(string=hai) anos
Hashtable.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Identity.cpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Identity.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
IncomingPacket.cpp ab0806a036 Cleanup. %!s(int64=8) %!d(string=hai) anos
IncomingPacket.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
InetAddress.cpp d2415dee00 Cleanup. %!s(int64=8) %!d(string=hai) anos
InetAddress.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
MAC.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Membership.cpp 495c5ce81d Bunch of remote tracing work. %!s(int64=8) %!d(string=hai) anos
Membership.hpp 495c5ce81d Bunch of remote tracing work. %!s(int64=8) %!d(string=hai) anos
MulticastGroup.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Multicaster.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
Multicaster.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Mutex.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Network.cpp 495c5ce81d Bunch of remote tracing work. %!s(int64=8) %!d(string=hai) anos
Network.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
NetworkConfig.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
NetworkConfig.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
NetworkController.hpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Node.cpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Node.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
NonCopyable.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
OutboundMulticast.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
OutboundMulticast.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Packet.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
Packet.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Path.cpp f18158a52d . %!s(int64=8) %!d(string=hai) anos
Path.hpp 640ad577d1 . %!s(int64=8) %!d(string=hai) anos
Peer.cpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Peer.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Poly1305.cpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Poly1305.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
README.md 8a2ff0b31e Actual documentation. %!s(int64=9) %!d(string=hai) anos
Revocation.cpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Revocation.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
RuntimeEnvironment.hpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
SHA512.cpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
SHA512.hpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Salsa20.cpp a8ced184dc Some code cleanup and make sure any type punning is guarded with ZT_NO_TYPE_PUNNING. %!s(int64=8) %!d(string=hai) anos
Salsa20.hpp 41c187ba12 Another very small crypto optimization. %!s(int64=8) %!d(string=hai) anos
SelfAwareness.cpp 495c5ce81d Bunch of remote tracing work. %!s(int64=8) %!d(string=hai) anos
SelfAwareness.hpp f18158a52d . %!s(int64=8) %!d(string=hai) anos
SharedPtr.hpp 6fc70f7c16 More cleanup, Linux build fixes. %!s(int64=8) %!d(string=hai) anos
Switch.cpp ab0806a036 Cleanup. %!s(int64=8) %!d(string=hai) anos
Switch.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Tag.cpp 1b68d6dbdc License header update. %!s(int64=8) %!d(string=hai) anos
Tag.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos
Topology.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
Topology.hpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. %!s(int64=8) %!d(string=hai) anos
Trace.cpp d939d8d21d A bit more remote tracing stuff. %!s(int64=8) %!d(string=hai) anos
Trace.hpp d939d8d21d A bit more remote tracing stuff. %!s(int64=8) %!d(string=hai) anos
Utils.cpp f23a43fb81 More cleanup. %!s(int64=8) %!d(string=hai) anos
Utils.hpp c692f2e740 Fix for new identity generation bug. %!s(int64=8) %!d(string=hai) anos
World.hpp b9e1d53d7a Minor cleanup. %!s(int64=8) %!d(string=hai) anos

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.
  • No C++11 or C++14 since older and embedded compilers don't support it yet and this should be maximally portable.
  • 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.