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 a7dcfa18a2
Oops forgot last part of that fix for MAC errors.
4 years ago
..
AES.cpp Likely fix for some alignment issues on ARM. 5 years ago
AES.hpp Backport AES fixes for compiler, arch, and splitting into separate files. 5 years ago
AES_aesni.cpp Windows build fixes, version bump in AIP. 5 years ago
AES_armcrypto.cpp Fixing regression in AES for ARM targets 5 years ago
Address.hpp BSL date bump 6 years ago
AtomicCounter.hpp BSL date bump 6 years ago
Bond.cpp Dynamically scale bonded link monitor frequency according to aliveness 4 years ago
Bond.hpp Remove bonds for peers that have fully expired. Remove notion of bond health 4 years ago
Buffer.hpp BSL date bump 6 years ago
C25519.cpp AES integrated on send side. 6 years ago
C25519.hpp BSL date bump 6 years ago
Capability.cpp BSL date bump 6 years ago
Capability.hpp BSL date bump 6 years ago
CertificateOfMembership.cpp Revert "Use a faster method of fingerprinting identities." 5 years ago
CertificateOfMembership.hpp Remove ancient controller support. 5 years ago
CertificateOfOwnership.cpp BSL date bump 6 years ago
CertificateOfOwnership.hpp BSL date bump 6 years ago
Constants.hpp Fix ZT_SSO_SUPPORTED flag behavior. Allow disabling for embedded targets. 4 years ago
Credential.hpp BSL date bump 6 years ago
DNS.hpp BSL date bump 6 years ago
Dictionary.hpp BSL date bump 6 years ago
Hashtable.hpp BSL date bump 6 years ago
Identity.cpp AES integrated on send side. 6 years ago
Identity.hpp Revert "Use a faster method of fingerprinting identities." 5 years ago
IncomingPacket.cpp Oops forgot last part of that fix for MAC errors. 4 years ago
IncomingPacket.hpp Likely fix for invalid MAC problem. 4 years ago
InetAddress.cpp missing break in InetAddress::ipScope() 5 years ago
InetAddress.hpp Fix for ZTO-33 (Jira), only assign routes if there is a viable source IP. 5 years ago
MAC.hpp BSL date bump 6 years ago
Membership.cpp BSL date bump 6 years ago
Membership.hpp Add a bit of hardening in the network certificate of membership by incorporating a full hash of the identity to which it is issued. This means the recipient need not depend entirely on the root verifying identities properly to make sure impersonation is not occurring. 5 years ago
MulticastGroup.hpp BSL date bump 6 years ago
Multicaster.cpp Tweak multicast settings to prevent failures due to TX queue overflow. 5 years ago
Multicaster.hpp Fix some timestamp signedness mismatches. 5 years ago
Mutex.hpp Use lowercase when including Windows headers 4 years ago
Network.cpp Remove stray debug trace 4 years ago
Network.hpp moar plumbing progress 4 years ago
NetworkConfig.cpp refresh token run loop 4 years ago
NetworkConfig.hpp wip 4 years ago
NetworkController.hpp Basic plumbing for authentication requirement and piping through of URL information. 5 years ago
Node.cpp Remove bonds for peers that have fully expired. Remove notion of bond health 4 years ago
Node.hpp Consolidation of multipath logic. Better system separation 5 years ago
OutboundMulticast.cpp BSL date bump 6 years ago
OutboundMulticast.hpp BSL date bump 6 years ago
Packet.cpp Apple "fat binaries" are back! 5 years ago
Packet.hpp Basic plumbing for authentication requirement and piping through of URL information. 5 years ago
Path.cpp BSL date bump 6 years ago
Path.hpp Change ECHO divisor from 20 to 6 4 years ago
Peer.cpp Remove bonds for peers that have fully expired. Remove notion of bond health 4 years ago
Peer.hpp Merge branch 'master' into dev 4 years ago
Poly1305.cpp RingBuffer<> is now templated with size, buffer is now static. 7 years ago
Poly1305.hpp BSL date bump 6 years ago
README.md Actual documentation. 9 years ago
Revocation.cpp BSL date bump 6 years ago
Revocation.hpp BSL date bump 6 years ago
RingBuffer.hpp BSL date bump 6 years ago
RuntimeEnvironment.hpp Consolidation of multipath logic. Better system separation 5 years ago
SHA512.cpp More selective push of AES modifications and refactoring stuff. 6 years ago
SHA512.hpp AES integrated on send side. 6 years ago
Salsa20.cpp Spellcheck sweep across codebase 8 years ago
Salsa20.hpp Disable Salsa20 SSE on MinGW 32-bit compiler 4 years ago
SelfAwareness.cpp Proactively seek, enumerate, and distribute external surface addresses 4 years ago
SelfAwareness.hpp Proactively seek, enumerate, and distribute external surface addresses 4 years ago
SharedPtr.hpp BSL date bump 6 years ago
Switch.cpp Consolidation of multipath logic. Better system separation 5 years ago
Switch.hpp BSL date bump 6 years ago
Tag.cpp BSL date bump 6 years ago
Tag.hpp BSL date bump 6 years ago
Topology.cpp Rev roots. 4 years ago
Topology.hpp BSL date bump 6 years ago
Trace.cpp Fix erroneous cast of verb to double that causes invalid tracing output 5 years ago
Trace.hpp BSL date bump 6 years ago
Utils.cpp yes 5 years ago
Utils.hpp Fix for ZTO-33 (Jira), only assign routes if there is a viable source IP. 5 years ago
World.hpp BSL date bump 6 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.