ZeroTierOne/node
Adam Ierymenko c6ce6b46ce
build fixes
2020-02-21 08:44:53 -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 Build fixes, put uint128_t detection in one place. 2020-02-21 07:25:43 -08:00
AES.hpp more refactoring 2020-02-21 07:11:16 -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 build fixes 2020-02-21 08:44:53 -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 build fixes 2020-02-21 08:44:53 -08:00
CertificateOfOwnership.hpp build fixes 2020-02-21 08:44:53 -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 build fixes 2020-02-21 08:44:53 -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 Build fixes, put uint128_t detection in one place. 2020-02-21 07:25:43 -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 build fixes 2020-02-21 08:44:53 -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 build fixes 2020-02-21 08:44:53 -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 Identity v1 hash tweak 2020-02-21 08:10:43 -08:00
Identity.hpp Starting to (re)write unit tests. 2020-02-20 12:54:46 -08:00
InetAddress.cpp Fix InetAddress sizing by delving into crazy C++ weeds, fix Peer compile issues. 2020-02-20 13:55:09 -08:00
InetAddress.hpp Fix InetAddress sizing by delving into crazy C++ weeds, fix Peer compile issues. 2020-02-20 13:55:09 -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 build fixes 2020-02-21 08:44:53 -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 OS/platform include cleanup 2020-02-21 08:01:58 -08:00
Path.cpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Path.hpp build fixes 2020-02-21 08:44:53 -08:00
Peer.cpp build fixes 2020-02-21 08:44:53 -08:00
Peer.hpp build fixes 2020-02-21 08:44:53 -08:00
Poly1305.cpp Build fixes, put uint128_t detection in one place. 2020-02-21 07:25:43 -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 build fixes 2020-02-21 08:44:53 -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 build fixes 2020-02-21 08:44:53 -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 build fixes 2020-02-21 08:44:53 -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 build fixes 2020-02-21 08:44:53 -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 Fix InetAddress sizing by delving into crazy C++ weeds, fix Peer compile issues. 2020-02-20 13:55:09 -08:00
Utils.cpp more refactoring 2020-02-21 07:11:16 -08:00
Utils.hpp include cleanup 2020-02-20 13:25:56 -08:00
VL1.cpp build fixes 2020-02-21 08:44:53 -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.
  • 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.