Adam Ierymenko cdbb86b830 ARM64 stuff 5 yıl önce
..
AES.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
AES.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Address.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Buf.cpp 547f39bb49 Fixes for Buf, unit test 5 yıl önce
Buf.hpp 37d4e83fad ARM64 build fixes 5 yıl önce
C25519.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
C25519.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
CMakeLists.txt 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 yıl önce
Capability.cpp e236d6f743 More minor refactoring 5 yıl önce
Capability.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
CertificateOfMembership.cpp 1d314858ef ARM64 build fixes 5 yıl önce
CertificateOfMembership.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
CertificateOfOwnership.cpp c6ce6b46ce build fixes 5 yıl önce
CertificateOfOwnership.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Constants.hpp da5b11bf2d Rename version constants to something more canonical, and more cleanup. 5 yıl önce
Credential.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Credential.hpp c6ce6b46ce build fixes 5 yıl önce
Defragmenter.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Dictionary.cpp cdc6c42375 Take Dictionary behind the barn... 5 yıl önce
Dictionary.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 5 yıl önce
Endpoint.cpp 4b20638568 more test fixes 5 yıl önce
Endpoint.hpp 4b20638568 more test fixes 5 yıl önce
Expect.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
FCV.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Fingerprint.hpp 1e457dbd76 Fix tests, fix identity issue 5 yıl önce
Hashtable.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Identity.cpp 37d4e83fad ARM64 build fixes 5 yıl önce
Identity.hpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 yıl önce
InetAddress.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
InetAddress.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
LZ4.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
LZ4.hpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 yıl önce
Locator.cpp 9ad8dd3700 Add Peer method for getting preferred cipher, various cleanup in VL1 5 yıl önce
Locator.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
MAC.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Membership.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Membership.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Meter.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
MulticastGroup.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Mutex.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Network.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Network.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
NetworkConfig.cpp 416068f68e Regularize use of fingerprint concept across code. 5 yıl önce
NetworkConfig.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
NetworkController.hpp df346a6df6 Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 5 yıl önce
Node.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Node.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
OS.hpp 1c7baa544b Reduce PoW cost just a bit. 5 yıl önce
Path.cpp 0589964f99 Yet more cleanup, and add meters to paths. 5 yıl önce
Path.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Peer.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Peer.hpp 1e457dbd76 Fix tests, fix identity issue 5 yıl önce
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
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. 5 yıl önce
Protocol.cpp 416068f68e Regularize use of fingerprint concept across code. 5 yıl önce
Protocol.hpp 1d314858ef ARM64 build fixes 5 yıl önce
README.md c6ce6b46ce build fixes 5 yıl önce
Revocation.cpp 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. 5 yıl önce
Revocation.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
RuntimeEnvironment.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
SHA512.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
SHA512.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 5 yıl önce
Salsa20.hpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 yıl önce
ScopedPtr.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
SelfAwareness.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
SelfAwareness.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
SharedPtr.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Speck128.hpp a7409486bb minor stuff 5 yıl önce
Tag.cpp 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. 5 yıl önce
Tag.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Tests.cpp 1c7baa544b Reduce PoW cost just a bit. 5 yıl önce
Tests.h a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. 5 yıl önce
Topology.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Topology.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Trace.cpp fbd3e10488 cleanup 5 yıl önce
Trace.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
TriviallyCopyable.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
Utils.cpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 5 yıl önce
Utils.hpp cdbb86b830 ARM64 stuff 5 yıl önce
VL1.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
VL1.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 yıl önce
VL2.cpp e236d6f743 More minor refactoring 5 yıl önce
VL2.hpp e236d6f743 More minor refactoring 5 yıl önce

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.