Adam Ierymenko 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
..
AES.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
AES.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Address.hpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. %!s(int64=5) %!d(string=hai) anos
Buf.cpp 547f39bb49 Fixes for Buf, unit test %!s(int64=6) %!d(string=hai) anos
Buf.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
C25519.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
C25519.hpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. %!s(int64=5) %!d(string=hai) anos
CMakeLists.txt 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
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. %!s(int64=5) %!d(string=hai) anos
Capability.hpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. %!s(int64=5) %!d(string=hai) anos
CertificateOfMembership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
CertificateOfMembership.hpp b5c01999b8 More tweaks to COM stuff. %!s(int64=5) %!d(string=hai) anos
CertificateOfOwnership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
CertificateOfOwnership.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Constants.hpp da5b11bf2d Rename version constants to something more canonical, and more cleanup. %!s(int64=5) %!d(string=hai) anos
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. %!s(int64=5) %!d(string=hai) anos
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. %!s(int64=5) %!d(string=hai) anos
Defragmenter.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Dictionary.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Dictionary.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. %!s(int64=6) %!d(string=hai) anos
Endpoint.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Endpoint.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Expect.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
FCV.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Fingerprint.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Identity.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Identity.hpp bedf63e257 Some minor security tightening stuff and AES fixes. %!s(int64=5) %!d(string=hai) anos
InetAddress.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
InetAddress.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
LZ4.hpp 274db26339 Fix accidentally removed file. %!s(int64=5) %!d(string=hai) anos
Locator.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Locator.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
MAC.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
Map.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Membership.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Membership.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Meter.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
MulticastGroup.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
Mutex.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
Network.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Network.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
NetworkConfig.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
NetworkConfig.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. %!s(int64=5) %!d(string=hai) anos
NetworkController.hpp df346a6df6 Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. %!s(int64=6) %!d(string=hai) anos
Node.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Node.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
OS.hpp 0aa78d0ecb Small fixes. %!s(int64=5) %!d(string=hai) anos
Path.cpp 0589964f99 Yet more cleanup, and add meters to paths. %!s(int64=6) %!d(string=hai) anos
Path.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
Peer.cpp bedf63e257 Some minor security tightening stuff and AES fixes. %!s(int64=5) %!d(string=hai) anos
Peer.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. %!s(int64=5) %!d(string=hai) anos
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
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. %!s(int64=6) %!d(string=hai) anos
Protocol.cpp 87da45b3f5 Faster hash table, various other optimizations and simplification. %!s(int64=5) %!d(string=hai) anos
Protocol.hpp cbf174f96d Warning removal. %!s(int64=5) %!d(string=hai) anos
README.md c6ce6b46ce build fixes %!s(int64=6) %!d(string=hai) anos
Revocation.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Revocation.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
RuntimeEnvironment.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
SHA512.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
SHA512.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. %!s(int64=6) %!d(string=hai) anos
Salsa20.hpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. %!s(int64=5) %!d(string=hai) anos
ScopedPtr.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
SelfAwareness.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
SelfAwareness.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
SharedPtr.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Speck128.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Tag.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Tag.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. %!s(int64=5) %!d(string=hai) anos
Tests.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Tests.h a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. %!s(int64=5) %!d(string=hai) anos
Topology.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Topology.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Trace.cpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Trace.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
TriviallyCopyable.hpp 1f2e94a51d Some optimization and raw memory access cleanup. %!s(int64=5) %!d(string=hai) anos
Utils.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
Utils.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. %!s(int64=5) %!d(string=hai) anos
VL1.cpp 87da45b3f5 Faster hash table, various other optimizations and simplification. %!s(int64=5) %!d(string=hai) anos
VL1.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. %!s(int64=5) %!d(string=hai) anos
VL2.cpp e236d6f743 More minor refactoring %!s(int64=6) %!d(string=hai) anos
VL2.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. %!s(int64=5) %!d(string=hai) anos

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.