ZeroTierOne/node
2020-02-20 13:25:56 -08:00
..
Address.hpp 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. 2020-02-12 14:04:25 -08:00
AES.cpp AES stuff, port sending network credentials to new packet format. 2020-02-18 17:17:10 -08:00
AES.hpp More minor refactoring 2020-02-14 10:19:45 -08:00
Buf.cpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Buf.hpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
C25519.cpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
C25519.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Capability.cpp More minor refactoring 2020-02-14 10:19:45 -08:00
Capability.hpp More minor refactoring 2020-02-14 10:19:45 -08:00
CertificateOfMembership.cpp 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. 2020-02-12 14:04:25 -08:00
CertificateOfMembership.hpp 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. 2020-02-12 14:04:25 -08:00
CertificateOfOwnership.cpp 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. 2020-02-12 14:04:25 -08:00
CertificateOfOwnership.hpp Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
CMakeLists.txt Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Constants.hpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Credential.cpp 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. 2020-02-12 14:04:25 -08:00
Credential.hpp Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 2020-02-03 13:00:13 -08:00
Defragmenter.hpp Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
Dictionary.cpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Dictionary.hpp 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. 2020-02-12 14:04:25 -08:00
ECC384.cpp Cleanup in ECC384 including const-correctness, etc. 2020-02-20 13:11:51 -08:00
ECC384.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Endpoint.cpp Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Endpoint.hpp A little more cleanup and build fixes. 2020-02-19 10:32:02 -08:00
Expect.hpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
FCV.hpp 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. 2020-02-12 14:04:25 -08:00
Hash.hpp Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
Hashtable.hpp 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. 2020-02-12 14:04:25 -08:00
Identity.cpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Identity.hpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
InetAddress.cpp A little more cleanup and build fixes. 2020-02-19 10:32:02 -08:00
InetAddress.hpp Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 2020-02-14 14:12:42 -08:00
Locator.cpp Add Peer method for getting preferred cipher, various cleanup in VL1 2020-02-18 12:38:48 -08:00
Locator.hpp Add Peer method for getting preferred cipher, various cleanup in VL1 2020-02-18 12:38:48 -08:00
LZ4.cpp Yet more minor refactoring and redesign Meter to be more thread-safe. 2020-02-14 11:34:47 -08:00
LZ4.hpp Yet more minor refactoring and redesign Meter to be more thread-safe. 2020-02-14 11:34:47 -08:00
MAC.hpp 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. 2020-02-12 14:04:25 -08:00
Membership.cpp Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Membership.hpp Yet more minor refactoring and redesign Meter to be more thread-safe. 2020-02-14 11:34:47 -08:00
Meter.hpp Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
MulticastGroup.hpp 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. 2020-02-12 14:04:25 -08:00
Mutex.hpp 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. 2020-02-12 14:04:25 -08:00
Network.cpp Comment out not-yet-refactored code in Network 2020-02-19 09:42:11 -08:00
Network.hpp Comment out not-yet-refactored code in Network 2020-02-19 09:42:11 -08:00
NetworkConfig.cpp 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. 2020-02-12 14:04:25 -08:00
NetworkConfig.hpp 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. 2020-02-12 14:04:25 -08:00
NetworkController.hpp Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 2020-02-03 13:00:13 -08:00
Node.cpp Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 2020-02-14 14:12:42 -08:00
Node.hpp Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 2020-02-14 14:12:42 -08:00
OS.hpp Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
Path.cpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Path.hpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Peer.cpp Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Peer.hpp Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Poly1305.cpp Various other small things. 2020-02-18 14:20:49 -08:00
Poly1305.hpp 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. 2020-02-12 14:04:25 -08:00
Protocol.cpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Protocol.hpp Include file cleanup, docs, and build fixes. 2020-02-19 10:18:52 -08:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.cpp 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. 2020-02-12 14:04:25 -08:00
Revocation.hpp 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. 2020-02-12 14:04:25 -08:00
RuntimeEnvironment.hpp Yet MORE refactoring, including moving expected-reply-to out of Node and into its own class for cleanliness. 2020-02-14 14:12:42 -08:00
Salsa20.cpp More refactoring and a bunch of AES goodness. 2020-02-13 14:44:18 -08:00
Salsa20.hpp More refactoring and a bunch of AES goodness. 2020-02-13 14:44:18 -08:00
ScopedPtr.hpp 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. 2020-02-12 14:04:25 -08:00
SelfAwareness.cpp AES stuff, port sending network credentials to new packet format. 2020-02-18 17:17:10 -08:00
SelfAwareness.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
SHA512.cpp Various little things... 2020-02-18 06:33:31 -08:00
SHA512.hpp Various little things... 2020-02-18 06:33:31 -08:00
SharedPtr.hpp 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. 2020-02-12 14:04:25 -08:00
Tag.cpp 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. 2020-02-12 14:04:25 -08:00
Tag.hpp 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. 2020-02-12 14:04:25 -08:00
Tests.cpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Tests.h Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Topology.cpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Topology.hpp Yet more perf, security hardening, and compile fix tweaks. 2020-02-20 09:33:11 -08:00
Trace.cpp Create a container for identity hashes, replace some "volatile" hacky junk with std::atomic, clean up some security checks, rename raw data in Buf to unsafeData to permit search for unsafe. 2020-02-19 09:28:18 -08:00
Trace.hpp 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. 2020-02-12 14:04:25 -08:00
TriviallyCopyable.hpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
Utils.cpp More built-in AES and GMAC primitive work. 2020-02-14 09:05:48 -08:00
Utils.hpp include cleanup 2020-02-20 13:25:56 -08:00
VL1.cpp Include file cleanup, docs, and build fixes. 2020-02-19 10:18:52 -08:00
VL1.hpp Add Peer method for getting preferred cipher, various cleanup in VL1 2020-02-18 12:38:48 -08:00
VL2.cpp More minor refactoring 2020-02-14 10:19:45 -08:00
VL2.hpp More minor refactoring 2020-02-14 10:19:45 -08:00

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.