didyouexpectthat_zerotierone/node
2018-01-12 18:20:00 -08:00
..
Address.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Array.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
AtomicCounter.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Buffer.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
C25519.cpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
C25519.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
Capability.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Capability.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
CertificateOfMembership.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
CertificateOfMembership.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
CertificateOfOwnership.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
CertificateOfOwnership.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
CertificateOfRepresentation.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Cluster.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Cluster.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Constants.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Credential.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Dictionary.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Hashtable.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Identity.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Identity.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
IncomingPacket.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
IncomingPacket.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
InetAddress.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
InetAddress.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
MAC.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
Membership.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Membership.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Multicaster.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Multicaster.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
MulticastGroup.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Mutex.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
Network.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Network.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
NetworkConfig.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
NetworkConfig.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
NetworkController.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Node.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Node.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
NonCopyable.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
OutboundMulticast.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
OutboundMulticast.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Packet.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Packet.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Path.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Path.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Peer.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Peer.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Poly1305.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Poly1305.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
README.md Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Revocation.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Revocation.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
RuntimeEnvironment.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Salsa20.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Salsa20.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
SelfAwareness.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
SelfAwareness.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
SHA512.cpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
SHA512.hpp Imported Upstream version 1.1.14 2016-11-01 16:45:16 -07:00
SharedPtr.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Switch.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Switch.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Tag.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Tag.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Topology.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Topology.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Utils.cpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
Utils.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -08:00
World.hpp Imported Upstream version 1.2.4 2018-01-12 18:20:00 -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.