2
0
Adam Ierymenko b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
..
AES.cpp a925e2d783 Build fixes. 5 жил өмнө
AES.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
Address.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Buf.cpp 547f39bb49 Fixes for Buf, unit test 6 жил өмнө
Buf.hpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
C25519.cpp 666d44b14a More endless work in progress... 5 жил өмнө
C25519.hpp 666d44b14a More endless work in progress... 5 жил өмнө
CMakeLists.txt b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Capability.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
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 жил өмнө
CertificateOfMembership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
CertificateOfMembership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 жил өмнө
CertificateOfOwnership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
CertificateOfOwnership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 жил өмнө
Constants.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 жил өмнө
Containers.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Credential.cpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 5 жил өмнө
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 жил өмнө
Defragmenter.hpp d537428421 Build fixes. 5 жил өмнө
Dictionary.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Dictionary.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 жил өмнө
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 жил өмнө
Endpoint.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Endpoint.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
EphemeralKey.hpp 996589894d Build fixes 5 жил өмнө
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 жил өмнө
FCV.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Fingerprint.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Identity.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Identity.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
InetAddress.cpp d537428421 Build fixes. 5 жил өмнө
InetAddress.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 жил өмнө
LZ4.hpp 274db26339 Fix accidentally removed file. 5 жил өмнө
Locator.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Locator.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
MAC.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Membership.cpp d537428421 Build fixes. 5 жил өмнө
Membership.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Meter.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
MulticastGroup.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 жил өмнө
Network.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Network.hpp b533c300d8 A ton more work... almost there 5 жил өмнө
NetworkConfig.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
NetworkConfig.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
NetworkController.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
Node.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Node.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
OS.hpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 жил өмнө
Path.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Path.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Peer.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Peer.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Poly1305.cpp b533c300d8 A ton more work... almost there 5 жил өмнө
Poly1305.hpp d537428421 Build fixes. 5 жил өмнө
Protocol.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
README.md c6ce6b46ce build fixes 6 жил өмнө
Revocation.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
Revocation.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
RuntimeEnvironment.hpp 52e1f5502d More VL1 work after re-re-re-refactor... 5 жил өмнө
SHA512.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
SHA512.hpp b533c300d8 A ton more work... almost there 5 жил өмнө
Salsa20.cpp f209037efe Cleanup, slightly slow down V1 identity generation, faster Salsa20 (by a bit). 5 жил өмнө
Salsa20.hpp f209037efe Cleanup, slightly slow down V1 identity generation, faster Salsa20 (by a bit). 5 жил өмнө
ScopedPtr.hpp 666d44b14a More endless work in progress... 5 жил өмнө
SelfAwareness.cpp d537428421 Build fixes. 5 жил өмнө
SelfAwareness.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
SharedPtr.hpp d537428421 Build fixes. 5 жил өмнө
SymmetricKey.hpp 666d44b14a More endless work in progress... 5 жил өмнө
Tag.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
Tag.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
Tests.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Tests.h b533c300d8 A ton more work... almost there 5 жил өмнө
Topology.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Topology.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. 5 жил өмнө
Trace.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
Trace.hpp 666d44b14a More endless work in progress... 5 жил өмнө
TriviallyCopyable.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. 5 жил өмнө
Utils.cpp a925e2d783 Build fixes. 5 жил өмнө
Utils.hpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. 5 жил өмнө
VL1.cpp a925e2d783 Build fixes. 5 жил өмнө
VL1.hpp a925e2d783 Build fixes. 5 жил өмнө
VL2.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. 5 жил өмнө
VL2.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. 5 жил өмнө

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.