Adam Ierymenko 0dc476518b Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 5 years ago
..
AES.cpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
AES.hpp e236d6f743 More minor refactoring 5 years ago
Address.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 years ago
Buf.cpp e236d6f743 More minor refactoring 5 years ago
Buf.hpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 years ago
C25519.cpp eef70e198b Version 2.x notice updates and other boring stuff. 6 years ago
C25519.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 years ago
CMakeLists.txt 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
Capability.cpp e236d6f743 More minor refactoring 5 years ago
Capability.hpp e236d6f743 More minor refactoring 5 years ago
CertificateOfMembership.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 years ago
CertificateOfMembership.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 years ago
CertificateOfOwnership.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 years ago
CertificateOfOwnership.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 years ago
Constants.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 years ago
Credential.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 years ago
Credential.hpp df346a6df6 Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 6 years ago
Defragmenter.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 years ago
Dictionary.cpp cdc6c42375 Take Dictionary behind the barn... 6 years ago
Dictionary.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 years ago
ECC384.cpp 9642ff5fb9 . 6 years ago
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 years ago
Endpoint.cpp 8c8a3c58ec Various little things... 5 years ago
Endpoint.hpp 8c8a3c58ec Various little things... 5 years ago
Expect.hpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
FCV.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 years ago
Hashtable.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 years ago
Identity.cpp a0ac4a744e Change the type 1 identity a bit to make locallyValidate() super fast, eliminating a scaling issue with v0. 5 years ago
Identity.hpp 0dc476518b Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 5 years ago
InetAddress.cpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
InetAddress.hpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
LZ4.cpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 years ago
LZ4.hpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 years ago
Locator.cpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 years ago
Locator.hpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 years ago
MAC.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 years ago
Membership.cpp 0dc476518b Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 5 years ago
Membership.hpp e5c7366e71 Yet more minor refactoring and redesign Meter to be more thread-safe. 5 years ago
Meter.hpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
MulticastGroup.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 years ago
Mutex.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 years ago
Network.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 years ago
Network.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 years ago
NetworkConfig.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 years ago
NetworkConfig.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 years ago
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 years ago
Node.cpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
Node.hpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
OS.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 years ago
Path.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 5 years ago
Path.hpp 08e06f9b8f More refactoring and a bunch of AES goodness. 5 years ago
Peer.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 years ago
Peer.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 years ago
Poly1305.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 years ago
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 years ago
Protocol.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 years ago
Protocol.hpp 0dc476518b Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 5 years ago
README.md 8a2ff0b31e Actual documentation. 9 years ago
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 years ago
Revocation.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 years ago
RuntimeEnvironment.hpp 3448e6fc76 Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 5 years ago
SHA512.cpp 8c8a3c58ec Various little things... 5 years ago
SHA512.hpp 8c8a3c58ec Various little things... 5 years ago
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 5 years ago
Salsa20.hpp 08e06f9b8f More refactoring and a bunch of AES goodness. 5 years ago
ScopedPtr.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 years ago
SelfAwareness.cpp 60de5ed3dd It almost compiles again 6 years ago
SelfAwareness.hpp 7d11522768 Just about everything refactored for new Protocol/Buf code except Switch. 6 years ago
SharedPtr.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 years ago
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 years ago
Tag.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 years ago
Topology.cpp 8c8a3c58ec Various little things... 5 years ago
Topology.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 years ago
Trace.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 years ago
Trace.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 years ago
TriviallyCopyable.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 years ago
Utils.cpp 5db0d9438c More built-in AES and GMAC primitive work. 5 years ago
Utils.hpp 5db0d9438c More built-in AES and GMAC primitive work. 5 years ago
VL1.cpp 0dc476518b Documentation changes, and move HMAC auth on HELLO to before object decoding since this is good cryptographic practice. 5 years ago
VL1.hpp 08e06f9b8f More refactoring and a bunch of AES goodness. 5 years ago
VL2.cpp e236d6f743 More minor refactoring 5 years ago
VL2.hpp e236d6f743 More minor refactoring 5 years ago

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.
  • No C++11 or C++14 since older and embedded compilers don't support it yet and this should be maximally portable.
  • 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.