ZeroTierOne/node
2020-02-26 11:39:18 -08:00
..
Address.hpp Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -08:00
AES.cpp Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -08:00
AES.hpp more refactoring 2020-02-21 07:11:16 -08:00
Buf.cpp Fixes for Buf, unit test 2020-02-24 15:40:19 -08:00
Buf.hpp Fixes for Buf, unit test 2020-02-24 15:40:19 -08:00
C25519.cpp More crypto benchmarks 2020-02-24 14:44:20 -08:00
C25519.hpp Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -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 Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -08:00
Constants.hpp MIMC52 2020-02-26 09:58:28 -08:00
Credential.cpp A bunch more build fixes. 2020-02-21 14:46:01 -08:00
Credential.hpp build fixes 2020-02-21 08:44:53 -08:00
Defragmenter.hpp readability++ 2020-02-25 06:00:52 -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 Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -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 It builds, and basic stuff and crypto passes tests. 2020-02-21 16:43:12 -08:00
Fingerprint.hpp Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -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 V1 identities now use a VDF (verifiable delay function) 2020-02-26 11:08:03 -08:00
Identity.hpp Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -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 little stuff 2020-02-25 16:21:51 -08:00
Membership.cpp A bunch more build fixes. 2020-02-21 14:46:01 -08:00
Membership.hpp A bunch more build fixes. 2020-02-21 14:46:01 -08:00
Meter.hpp build fixes 2020-02-21 08:44:53 -08:00
MIMC52.cpp docs 2020-02-26 11:32:54 -08:00
MIMC52.hpp MIMC52 2020-02-26 09:58:28 -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 hash() -> fingerprint() 2020-02-25 16:15:14 -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 hash() -> fingerprint() 2020-02-25 16:15:14 -08:00
Node.hpp A bunch more build fixes. 2020-02-21 14:46:01 -08:00
OS.hpp MIMC52 2020-02-26 09:58:28 -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 hash() -> fingerprint() 2020-02-25 16:15:14 -08:00
Peer.hpp build fixes 2020-02-21 08:44:53 -08:00
Poly1305.cpp It builds, and basic stuff and crypto passes tests. 2020-02-21 16:43:12 -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 hash() -> fingerprint() 2020-02-25 16:15:14 -08:00
Protocol.hpp Tweak protocol getPacketId(), unit tests for defragmenter, AES fix. 2020-02-25 05:36:48 -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 Crypto fixes and benchmarks. 2020-02-21 19:32:36 -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 V1 identities now use a VDF (verifiable delay function) 2020-02-26 11:08:03 -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 Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -08:00
Tests.h Tweak protocol getPacketId(), unit tests for defragmenter, AES fix. 2020-02-25 05:36:48 -08:00
Topology.cpp hash() -> fingerprint() 2020-02-25 16:15:14 -08:00
Topology.hpp Make Fingerprint (a full length identity hash) a first class type 2020-02-26 11:39:18 -08:00
Trace.cpp hash() -> fingerprint() 2020-02-25 16:15:14 -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 Cleanup, Address refactoring, tweak V1 identity generation a bit. 2020-02-25 16:08:27 -08:00
Utils.hpp MIMC52 2020-02-26 09:58:28 -08:00
VL1.cpp hash() -> fingerprint() 2020-02-25 16:15:14 -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.