Adam Ierymenko c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
..
AES.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 lat temu
AES.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Address.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Buf.cpp 547f39bb49 Fixes for Buf, unit test 6 lat temu
Buf.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
C25519.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
C25519.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
CMakeLists.txt c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Capability.cpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. 5 lat temu
Capability.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
CertificateOfMembership.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
CertificateOfMembership.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
CertificateOfOwnership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 lat temu
CertificateOfOwnership.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Constants.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Containers.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Credential.cpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. 5 lat temu
Credential.hpp d3a7468e83 Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 5 lat temu
Defragmenter.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Dictionary.cpp b3314cd34f Small build fixes. 5 lat temu
Dictionary.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 lat temu
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 lat temu
Endpoint.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Endpoint.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Expect.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
FCV.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Fingerprint.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Identity.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Identity.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
InetAddress.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
InetAddress.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 lat temu
LZ4.hpp 274db26339 Fix accidentally removed file. 5 lat temu
Locator.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 lat temu
Locator.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
MAC.hpp 3d6d9c5808 LINT cleanliness. 5 lat temu
Membership.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Membership.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Meter.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
MulticastGroup.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Network.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Network.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
NetworkConfig.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
NetworkConfig.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
NetworkController.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Node.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Node.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
OS.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Path.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Path.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Peer.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Peer.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 lat temu
Poly1305.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Protocol.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Protocol.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
README.md c6ce6b46ce build fixes 6 lat temu
Revocation.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 lat temu
Revocation.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
RuntimeEnvironment.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
SHA512.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 lat temu
SHA512.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 6 lat temu
Salsa20.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
ScopedPtr.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
SelfAwareness.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
SelfAwareness.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
SharedPtr.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Speck128.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 lat temu
SymmetricKey.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Tag.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 lat temu
Tag.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Tests.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Tests.h c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Topology.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 lat temu
Topology.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Trace.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Trace.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
TriviallyCopyable.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
Utils.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu
Utils.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
VL1.cpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
VL1.hpp c65391a344 Add symmetric key container, tons of cleanup. 5 lat temu
VL2.cpp e236d6f743 More minor refactoring 6 lat temu
VL2.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 lat temu

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.