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 1ef385b685
Spinlock removed, causes long standing issues on single core machines.
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 Prevent balance-xor from de-allocating from bad paths 4 years ago
Bond.hpp Remove debug trace 5 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 Remove ancient controller support. 5 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 Revert "Don't assume roots validated the identity, just in case they did not." 5 years ago
IncomingPacket.hpp Consolidation of multipath logic. Better system separation 5 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 Spinlock removed, causes long standing issues on single core machines. 4 years ago
Network.cpp 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
Network.hpp set ssoEnabled = true on network config if we get ERROR_NETWORK_AUTHENTICATION_REQUIRED 5 years ago
NetworkConfig.cpp add ssoEnabled flag to network config 5 years ago
NetworkConfig.hpp add ssoEnabled flag to network config 5 years ago
NetworkController.hpp Basic plumbing for authentication requirement and piping through of URL information. 5 years ago
Node.cpp Consolidation of multipath logic. Better system separation 5 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 Consolidation of multipath logic. Better system separation 5 years ago
Peer.cpp Compilation fix 5 years ago
Peer.hpp Consolidation of multipath logic. Better system separation 5 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 Another very small crypto optimization. 9 years ago
SelfAwareness.cpp BSL date bump 6 years ago
SelfAwareness.hpp BSL date bump 6 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 Update hard-coded default planet to latest. 5 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.