ZeroTierOne/node
2020-02-06 18:07:17 -08:00
..
Address.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
AES.cpp Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -08:00
AES.hpp Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -08:00
AtomicCounter.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Buf.cpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Buf.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -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 Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Capability.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
CertificateOfMembership.cpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
CertificateOfMembership.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
CertificateOfOwnership.cpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
CertificateOfOwnership.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
CMakeLists.txt Put Switch in attic too 2020-02-06 18:07:17 -08:00
Constants.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Credential.cpp 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
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 A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Dictionary.cpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Dictionary.hpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
ECC384.cpp . 2020-01-08 18:08:41 -08:00
ECC384.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Endpoint.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Endpoint.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
FCV.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Hashtable.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Identity.cpp Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -08:00
Identity.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
InetAddress.cpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
InetAddress.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Locator.cpp Wiring up addroot/removeroot 2020-01-23 18:05:34 -08:00
Locator.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
LZ4.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
LZ4.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
MAC.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
Membership.cpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
Membership.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Meter.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
MulticastGroup.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
Mutex.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Network.cpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Network.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
NetworkConfig.cpp 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
NetworkConfig.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -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 A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Node.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
OS.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Path.cpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Path.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Peer.cpp It builds again 2020-01-23 14:41:59 -08:00
Peer.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
Poly1305.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Poly1305.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Protocol.cpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
Protocol.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.cpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Revocation.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
RingBuffer.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
RuntimeEnvironment.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Salsa20.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Salsa20.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
ScopedPtr.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
SelfAwareness.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -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 Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
SHA512.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
SharedPtr.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Tag.cpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Tag.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
Topology.cpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Topology.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Trace.cpp 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
Trace.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
TriviallyCopyable.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
Utils.cpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
Utils.hpp Just about everything refactored for new Protocol/Buf code except Switch. 2020-02-03 16:18:33 -08:00
VL1.cpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
VL1.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -08:00
VL2.hpp A bunch more refactoring including splitting Switch into VL1 and VL2 2020-02-06 18:06:50 -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.