ZeroTierOne/node
2020-01-25 18:02:11 -08:00
..
Address.hpp Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -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 Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Buf.cpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Buf.hpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -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 Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
CertificateOfMembership.cpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
CertificateOfMembership.hpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
CertificateOfOwnership.cpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
CertificateOfOwnership.hpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
CMakeLists.txt Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Constants.hpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Credential.cpp Bunch of build fixes, some docs 2020-01-20 10:40:31 -08:00
Credential.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -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 Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Hashtable.hpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Identity.cpp Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -08:00
Identity.hpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
IncomingPacket.cpp It builds again 2020-01-23 14:41:59 -08:00
IncomingPacket.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
InetAddress.cpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
InetAddress.hpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Locator.cpp Wiring up addroot/removeroot 2020-01-23 18:05:34 -08:00
Locator.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
LZ4.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
LZ4.hpp Put LZ4 in its own file. 2020-01-20 09:38:05 -08:00
MAC.hpp More porting to new Buf system. 2020-01-24 23:36:08 -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 Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
MulticastGroup.hpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
Mutex.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Network.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Network.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
NetworkConfig.cpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
NetworkConfig.hpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
NetworkController.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Node.cpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
Node.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
OS.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Path.cpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Path.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Peer.cpp It builds again 2020-01-23 14:41:59 -08:00
Peer.hpp More porting to new Buf system. 2020-01-24 23:36:08 -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 Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Protocol.hpp Refactoring protocol marshal/unmarshal code... 2020-01-24 21:16:07 -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 Continuing work on new buffer type... 2020-01-25 01:17:56 -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 Put LZ4 in its own file. 2020-01-20 09:38:05 -08:00
ScopedPtr.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
SelfAwareness.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
SelfAwareness.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
SHA512.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
SHA512.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
SharedPtr.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Switch.cpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
Switch.hpp More porting to new Buf system. 2020-01-24 23:36:08 -08:00
Tag.cpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Tag.hpp Continuing work on new buffer type... 2020-01-25 01:17:56 -08:00
Topology.cpp Warning removal and build fixes. 2020-01-21 12:55:51 -08:00
Topology.hpp Bunch of build fixes, some docs 2020-01-20 10:40:31 -08:00
Trace.cpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Trace.hpp Loads of refactoring, integration of new version of Trace. 2020-01-23 13:05:33 -08:00
Utils.cpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Utils.hpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -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.