Adam Ierymenko 741f7814c2 Various build fixes. před 5 roky
..
AES.cpp dcc686a3a7 Docs, YAGNI removal, use locator endpoints in peer contact attempts. před 5 roky
AES.hpp 3621fe8897 Some AES cleanup and include controller with Go build. před 5 roky
Address.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Buf.cpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Buf.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
C25519.cpp 666d44b14a More endless work in progress... před 5 roky
C25519.hpp 666d44b14a More endless work in progress... před 5 roky
CMakeLists.txt b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
Capability.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. před 5 roky
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. před 5 roky
CertificateOfMembership.cpp 864e33cf2d A bunch of build fixes. před 5 roky
CertificateOfMembership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. před 5 roky
CertificateOfOwnership.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. před 5 roky
CertificateOfOwnership.hpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. před 5 roky
Constants.hpp 5dac2e82a7 A bunch of tweaks around CLI parameters and string formats of things. před 5 roky
Containers.hpp a5390b1bc8 Plumb new locator code through to Go, fix some cgo issues, fix some compiler warnings. před 5 roky
Credential.cpp 16a3c14c53 A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. před 5 roky
Credential.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Defragmenter.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Dictionary.cpp 864e33cf2d A bunch of build fixes. před 5 roky
Dictionary.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. před 5 roky
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. před 6 roky
Endpoint.cpp 5dac2e82a7 A bunch of tweaks around CLI parameters and string formats of things. před 5 roky
Endpoint.hpp 741f7814c2 Various build fixes. před 5 roky
EphemeralKey.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Expect.hpp 5dac2e82a7 A bunch of tweaks around CLI parameters and string formats of things. před 5 roky
FCV.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
Fingerprint.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Identity.cpp 89c27c112a Flesh out tests, fix a signing bug. před 5 roky
Identity.hpp 864e33cf2d A bunch of build fixes. před 5 roky
InetAddress.cpp d537428421 Build fixes. před 5 roky
InetAddress.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. před 5 roky
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. před 5 roky
LZ4.hpp 274db26339 Fix accidentally removed file. před 5 roky
Locator.cpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Locator.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
MAC.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Membership.cpp d537428421 Build fixes. před 5 roky
Membership.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
Meter.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. před 5 roky
MulticastGroup.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. před 5 roky
Network.cpp 864e33cf2d A bunch of build fixes. před 5 roky
Network.hpp b533c300d8 A ton more work... almost there před 5 roky
NetworkConfig.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. před 5 roky
NetworkConfig.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
NetworkController.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. před 5 roky
Node.cpp a4ae4941c3 Try to ignore temporary IPv6 addresses, fix Peer serialization, add an endpoint cache to Peer, some more Go stuff. před 5 roky
Node.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
OS.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Path.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
Path.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
Peer.cpp a4ae4941c3 Try to ignore temporary IPv6 addresses, fix Peer serialization, add an endpoint cache to Peer, some more Go stuff. před 5 roky
Peer.hpp a4ae4941c3 Try to ignore temporary IPv6 addresses, fix Peer serialization, add an endpoint cache to Peer, some more Go stuff. před 5 roky
Poly1305.cpp b533c300d8 A ton more work... almost there před 5 roky
Poly1305.hpp d537428421 Build fixes. před 5 roky
Protocol.hpp 20ae12d385 Clean up some NAT traversal code, modify algorithm to eliminate the need for toggle-able options. před 5 roky
README.md c6ce6b46ce build fixes před 5 roky
Revocation.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. před 5 roky
Revocation.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
RuntimeEnvironment.hpp 20ae12d385 Clean up some NAT traversal code, modify algorithm to eliminate the need for toggle-able options. před 5 roky
SHA512.cpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
SHA512.hpp b533c300d8 A ton more work... almost there před 5 roky
Salsa20.cpp f209037efe Cleanup, slightly slow down V1 identity generation, faster Salsa20 (by a bit). před 5 roky
Salsa20.hpp f209037efe Cleanup, slightly slow down V1 identity generation, faster Salsa20 (by a bit). před 5 roky
ScopedPtr.hpp 666d44b14a More endless work in progress... před 5 roky
SelfAwareness.cpp d537428421 Build fixes. před 5 roky
SelfAwareness.hpp b9bf6d1242 Simplification of addRoot/removeRoot, and some code reformatting and other cleanup across multiple files. před 5 roky
SharedPtr.hpp 864e33cf2d A bunch of build fixes. před 5 roky
SymmetricKey.hpp 666d44b14a More endless work in progress... před 5 roky
Tag.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. před 5 roky
Tag.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. před 5 roky
Tests.cpp 89c27c112a Flesh out tests, fix a signing bug. před 5 roky
Tests.h b533c300d8 A ton more work... almost there před 5 roky
Topology.cpp 5dac2e82a7 A bunch of tweaks around CLI parameters and string formats of things. před 5 roky
Topology.hpp dc1ef0c49e Code formatting and other boring stuff. před 5 roky
Trace.cpp 864e33cf2d A bunch of build fixes. před 5 roky
Trace.hpp 666d44b14a More endless work in progress... před 5 roky
TriviallyCopyable.hpp 6051c973d3 A bunch of warning removal, build fixes, and cleanup. před 5 roky
Utils.cpp a925e2d783 Build fixes. před 5 roky
Utils.hpp aad21cf395 Blazing fast VAES (256 and 512) AES-CTR, Identity fixes, test fixes. před 5 roky
VL1.cpp a925e2d783 Build fixes. před 5 roky
VL1.hpp a925e2d783 Build fixes. před 5 roky
VL2.cpp d3777b3eb4 A bunch of boring formattings stuff, etc. před 5 roky
VL2.hpp 664a128e9e Yet more work in progress... mostly cleanup and re-implementation without depending on struture padding. před 5 roky

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.