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.
 
 
 
 
 
 
Adam Ierymenko 1982071d46 1.14.0 version bump for Linux and macOS, date update. 2 years ago
..
AES.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
AES.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
AES_aesni.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
AES_armcrypto.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Address.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
AtomicCounter.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Bond.cpp Fix condition where active-backup would fail to engage 2 years ago
Bond.hpp Port multipath improvements to newer version 2 years ago
Buffer.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
C25519.cpp Brenton/curly braces (#1971) 3 years ago
C25519.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Capability.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Capability.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
CertificateOfMembership.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
CertificateOfMembership.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
CertificateOfOwnership.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
CertificateOfOwnership.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Constants.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Credential.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
DNS.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Dictionary.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Hashtable.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Identity.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Identity.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
IncomingPacket.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
IncomingPacket.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
InetAddress.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
InetAddress.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
MAC.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Membership.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Membership.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Metrics.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Metrics.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
MulticastGroup.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Multicaster.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Multicaster.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Mutex.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Network.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Network.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
NetworkConfig.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
NetworkConfig.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
NetworkController.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Node.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Node.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
OutboundMulticast.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
OutboundMulticast.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Packet.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Packet.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Path.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Path.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Peer.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Peer.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Poly1305.cpp Brenton/curly braces (#1971) 3 years ago
Poly1305.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
README.md Actual documentation. 9 years ago
Revocation.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Revocation.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
RingBuffer.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
RuntimeEnvironment.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
SHA512.cpp Brenton/curly braces (#1971) 3 years ago
SHA512.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Salsa20.cpp Brenton/curly braces (#1971) 3 years ago
Salsa20.hpp ALMOST compiles for ARM64 Windows, only remaining barrier is ring in zeroidc. 4 years ago
SelfAwareness.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
SelfAwareness.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
SharedPtr.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Switch.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Switch.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Tag.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Tag.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Topology.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Topology.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Trace.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Trace.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Utils.cpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
Utils.hpp 1.14.0 version bump for Linux and macOS, date update. 2 years ago
World.hpp 1.14.0 version bump for Linux and macOS, date update. 2 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.