You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Joseph Henry 673d1b9a09 updated ZTO core 9 years ago
..
Address.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Array.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
AtomicCounter.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Buffer.hpp updated ZTO core 9 years ago
C25519.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
C25519.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Capability.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Capability.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
CertificateOfMembership.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
CertificateOfMembership.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
CertificateOfOwnership.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
CertificateOfOwnership.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
CertificateOfRepresentation.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Cluster.cpp updated ZTO core 9 years ago
Cluster.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Constants.hpp updated ZTO core 9 years ago
Credential.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Dictionary.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Hashtable.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Identity.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Identity.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
IncomingPacket.cpp updated ZTO core 9 years ago
IncomingPacket.hpp updated ZTO core 9 years ago
InetAddress.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
InetAddress.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
MAC.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Membership.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Membership.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
MulticastGroup.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Multicaster.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Multicaster.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Mutex.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Network.cpp updated ZTO core 9 years ago
Network.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
NetworkConfig.cpp updated ZTO core 9 years ago
NetworkConfig.hpp updated ZTO core 9 years ago
NetworkController.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Node.cpp updated ZTO core 9 years ago
Node.hpp updated ZTO core 9 years ago
NonCopyable.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
OutboundMulticast.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
OutboundMulticast.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Packet.cpp updated ZTO core 9 years ago
Packet.hpp updated ZTO core 9 years ago
Path.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Path.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Peer.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Peer.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Poly1305.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Poly1305.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
README.md dynamic loading of network stack no longer needed 9 years ago
Revocation.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Revocation.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
RuntimeEnvironment.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
SHA512.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
SHA512.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Salsa20.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Salsa20.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
SelfAwareness.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
SelfAwareness.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
SharedPtr.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Switch.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Switch.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Tag.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Tag.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Topology.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Topology.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Utils.cpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
Utils.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago
World.hpp updated core to 1.2.4, fixed pico_device init bug 9 years ago

README.md

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.