Adam Ierymenko 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
..
AES.cpp bedf63e257 Some minor security tightening stuff and AES fixes. 5 tahun lalu
AES.hpp 3914964a35 AES docs 5 tahun lalu
Address.hpp 3f32cffc40 dead code removal 5 tahun lalu
Buf.cpp 547f39bb49 Fixes for Buf, unit test 6 tahun lalu
Buf.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
C25519.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
C25519.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
CMakeLists.txt 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 tahun lalu
Capability.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Capability.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
CertificateOfMembership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
CertificateOfMembership.hpp b5c01999b8 More tweaks to COM stuff. 5 tahun lalu
CertificateOfOwnership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
CertificateOfOwnership.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Constants.hpp da5b11bf2d Rename version constants to something more canonical, and more cleanup. 5 tahun lalu
Credential.cpp d3a7468e83 Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 5 tahun lalu
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 tahun lalu
Defragmenter.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Dictionary.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Dictionary.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 tahun lalu
Endpoint.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Endpoint.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Expect.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
FCV.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Fingerprint.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Hashtable.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Identity.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Identity.hpp bedf63e257 Some minor security tightening stuff and AES fixes. 5 tahun lalu
InetAddress.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
InetAddress.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
LZ4.hpp 274db26339 Fix accidentally removed file. 5 tahun lalu
Locator.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Locator.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
MAC.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Membership.cpp 2d862f1d32 Little comments and stuff 5 tahun lalu
Membership.hpp b5c01999b8 More tweaks to COM stuff. 5 tahun lalu
Meter.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
MulticastGroup.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Mutex.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Network.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Network.hpp b5c01999b8 More tweaks to COM stuff. 5 tahun lalu
NetworkConfig.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
NetworkConfig.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
NetworkController.hpp df346a6df6 Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 6 tahun lalu
Node.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Node.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
OS.hpp 83f830618f It almost builds! 5 tahun lalu
Path.cpp 0589964f99 Yet more cleanup, and add meters to paths. 6 tahun lalu
Path.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Peer.cpp bedf63e257 Some minor security tightening stuff and AES fixes. 5 tahun lalu
Peer.hpp bedf63e257 Some minor security tightening stuff and AES fixes. 5 tahun lalu
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Poly1305.hpp f21ecb3762 Yet more major and very nit-picky refactoring for performance, etc. Also use std::atomic<> now with a TODO to implement a shim if we ever do need to build this on a pre-c++11 compiler. 6 tahun lalu
Protocol.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Protocol.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 tahun lalu
README.md c6ce6b46ce build fixes 6 tahun lalu
Revocation.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Revocation.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
RuntimeEnvironment.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
SHA512.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
SHA512.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 6 tahun lalu
Salsa20.hpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 tahun lalu
ScopedPtr.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
SelfAwareness.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
SelfAwareness.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
SharedPtr.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Speck128.hpp a7409486bb minor stuff 5 tahun lalu
Tag.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Tag.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Tests.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Tests.h a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. 5 tahun lalu
Topology.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Topology.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
Trace.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Trace.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
TriviallyCopyable.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
Utils.cpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 tahun lalu
Utils.hpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
VL1.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 tahun lalu
VL1.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 tahun lalu
VL2.cpp e236d6f743 More minor refactoring 6 tahun lalu
VL2.hpp e236d6f743 More minor refactoring 6 tahun lalu

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.