Adam Ierymenko 996589894d Build fixes 5 ani în urmă
..
AES.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
AES.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 ani în urmă
Address.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Buf.cpp 547f39bb49 Fixes for Buf, unit test 6 ani în urmă
Buf.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
C25519.cpp 666d44b14a More endless work in progress... 5 ani în urmă
C25519.hpp 666d44b14a More endless work in progress... 5 ani în urmă
CMakeLists.txt d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Capability.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Capability.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
CertificateOfMembership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
CertificateOfMembership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 ani în urmă
CertificateOfOwnership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
CertificateOfOwnership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 ani în urmă
Constants.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 ani în urmă
Containers.hpp 996589894d Build fixes 5 ani în urmă
Credential.cpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 ani în urmă
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 ani în urmă
Defragmenter.hpp 78d223d709 A bunch more cleanup, remove a ton of reinterpret_cast cruft in favor of a simple union in InetAddress. 5 ani în urmă
Dictionary.cpp b533c300d8 A ton more work... almost there 5 ani în urmă
Dictionary.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 ani în urmă
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 ani în urmă
Endpoint.cpp 666d44b14a More endless work in progress... 5 ani în urmă
Endpoint.hpp 996589894d Build fixes 5 ani în urmă
EphemeralKey.hpp 996589894d Build fixes 5 ani în urmă
Expect.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
FCV.hpp 996589894d Build fixes 5 ani în urmă
Fingerprint.hpp 996589894d Build fixes 5 ani în urmă
Identity.cpp 996589894d Build fixes 5 ani în urmă
Identity.hpp 996589894d Build fixes 5 ani în urmă
InetAddress.cpp 666d44b14a More endless work in progress... 5 ani în urmă
InetAddress.hpp 996589894d Build fixes 5 ani în urmă
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
LZ4.hpp 274db26339 Fix accidentally removed file. 5 ani în urmă
Locator.cpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
Locator.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
MAC.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
Membership.cpp b533c300d8 A ton more work... almost there 5 ani în urmă
Membership.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
Meter.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
MulticastGroup.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Network.cpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
Network.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
NetworkConfig.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
NetworkConfig.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
NetworkController.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
Node.cpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
Node.hpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
OS.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 5 ani în urmă
Path.cpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 ani în urmă
Path.hpp 78d223d709 A bunch more cleanup, remove a ton of reinterpret_cast cruft in favor of a simple union in InetAddress. 5 ani în urmă
Peer.cpp 996589894d Build fixes 5 ani în urmă
Peer.hpp 996589894d Build fixes 5 ani în urmă
PeerList.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Poly1305.cpp b533c300d8 A ton more work... almost there 5 ani în urmă
Poly1305.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
Protocol.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 ani în urmă
README.md c6ce6b46ce build fixes 6 ani în urmă
Revocation.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Revocation.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 ani în urmă
RuntimeEnvironment.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 ani în urmă
SHA512.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
SHA512.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 6 ani în urmă
Salsa20.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
ScopedPtr.hpp 666d44b14a More endless work in progress... 5 ani în urmă
SelfAwareness.cpp 2b0127c26d Work in progress on crypto stuff, refactoring to back out of use of structs for encode/decode as it is questionably portable. 5 ani în urmă
SelfAwareness.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
SharedPtr.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
SymmetricKey.hpp 666d44b14a More endless work in progress... 5 ani în urmă
Tag.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Tag.hpp b533c300d8 A ton more work... almost there 5 ani în urmă
Tests.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Tests.h b533c300d8 A ton more work... almost there 5 ani în urmă
Topology.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Topology.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Trace.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Trace.hpp 666d44b14a More endless work in progress... 5 ani în urmă
TriviallyCopyable.hpp 996589894d Build fixes 5 ani în urmă
Utils.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
Utils.hpp 666d44b14a More endless work in progress... 5 ani în urmă
VL1.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
VL1.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 5 ani în urmă
VL2.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 ani în urmă
VL2.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 5 ani în urmă

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.