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 0e5651f353
1.12.0 merge to main (#2104)
3 years ago
..
AES.cpp 1.12.0 merge to main (#2104) 3 years ago
AES.hpp 1.12.0 merge to main (#2104) 3 years ago
AES_aesni.cpp 1.12.0 merge to main (#2104) 3 years ago
AES_armcrypto.cpp 1.12.0 merge to main (#2104) 3 years ago
Address.hpp 1.12.0 merge to main (#2104) 3 years ago
AtomicCounter.hpp BSL date bump 6 years ago
Bond.cpp 1.12.0 merge to main (#2104) 3 years ago
Bond.hpp 1.12.0 merge to main (#2104) 3 years ago
Buffer.hpp 1.12.0 merge to main (#2104) 3 years ago
C25519.cpp 1.12.0 merge to main (#2104) 3 years ago
C25519.hpp BSL date bump 6 years ago
Capability.cpp 1.12.0 merge to main (#2104) 3 years ago
Capability.hpp 1.12.0 merge to main (#2104) 3 years ago
CertificateOfMembership.cpp 1.12.0 merge to main (#2104) 3 years ago
CertificateOfMembership.hpp 1.12.0 merge to main (#2104) 3 years ago
CertificateOfOwnership.cpp 1.12.0 merge to main (#2104) 3 years ago
CertificateOfOwnership.hpp 1.12.0 merge to main (#2104) 3 years ago
Constants.hpp 1.12.0 merge to main (#2104) 3 years ago
Credential.hpp BSL date bump 6 years ago
DNS.hpp fix typos in comments and strings 3 years ago
Dictionary.hpp 1.12.0 merge to main (#2104) 3 years ago
Hashtable.hpp 1.12.0 merge to main (#2104) 3 years ago
Identity.cpp 1.12.0 merge to main (#2104) 3 years ago
Identity.hpp 1.12.0 merge to main (#2104) 3 years ago
IncomingPacket.cpp 1.12.0 merge to main (#2104) 3 years ago
IncomingPacket.hpp Fix for ab-mode link failure, QoS metrics (WIP) 4 years ago
InetAddress.cpp 1.12.0 merge to main (#2104) 3 years ago
InetAddress.hpp 1.12.0 merge to main (#2104) 3 years ago
MAC.hpp 1.12.0 merge to main (#2104) 3 years ago
Membership.cpp 1.12.0 merge to main (#2104) 3 years ago
Membership.hpp 1.12.0 merge to main (#2104) 3 years ago
Metrics.cpp 1.12.0 merge to main (#2104) 3 years ago
Metrics.hpp 1.12.0 merge to main (#2104) 3 years ago
MulticastGroup.hpp 1.12.0 merge to main (#2104) 3 years ago
Multicaster.cpp 1.12.0 merge to main (#2104) 3 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 1.12.0 merge to main (#2104) 3 years ago
Network.hpp 1.12.0 merge to main (#2104) 3 years ago
NetworkConfig.cpp 1.12.0 merge to main (#2104) 3 years ago
NetworkConfig.hpp 1.12.0 merge to main (#2104) 3 years ago
NetworkController.hpp Basic plumbing for authentication requirement and piping through of URL information. 5 years ago
Node.cpp 1.12.0 merge to main (#2104) 3 years ago
Node.hpp 1.12.0 merge to main (#2104) 3 years ago
OutboundMulticast.cpp 1.12.0 merge to main (#2104) 3 years ago
OutboundMulticast.hpp BSL date bump 6 years ago
Packet.cpp 1.12.0 merge to main (#2104) 3 years ago
Packet.hpp 1.12.0 merge to main (#2104) 3 years ago
Path.cpp BSL date bump 6 years ago
Path.hpp 1.12.0 merge to main (#2104) 3 years ago
Peer.cpp 1.12.0 merge to main (#2104) 3 years ago
Peer.hpp 1.12.0 merge to main (#2104) 3 years ago
Poly1305.cpp 1.12.0 merge to main (#2104) 3 years ago
Poly1305.hpp BSL date bump 6 years ago
README.md Actual documentation. 9 years ago
Revocation.cpp 1.12.0 merge to main (#2104) 3 years ago
Revocation.hpp 1.12.0 merge to main (#2104) 3 years ago
RingBuffer.hpp 1.12.0 merge to main (#2104) 3 years ago
RuntimeEnvironment.hpp Consolidation of multipath logic. Better system separation 5 years ago
SHA512.cpp 1.12.0 merge to main (#2104) 3 years ago
SHA512.hpp AES integrated on send side. 6 years ago
Salsa20.cpp 1.12.0 merge to main (#2104) 3 years ago
Salsa20.hpp ALMOST compiles for ARM64 Windows, only remaining barrier is ring in zeroidc. 4 years ago
SelfAwareness.cpp 1.12.0 merge to main (#2104) 3 years ago
SelfAwareness.hpp Proactively seek, enumerate, and distribute external surface addresses 4 years ago
SharedPtr.hpp 1.12.0 merge to main (#2104) 3 years ago
Switch.cpp 1.12.0 merge to main (#2104) 3 years ago
Switch.hpp 1.12.0 merge to main (#2104) 3 years ago
Tag.cpp 1.12.0 merge to main (#2104) 3 years ago
Tag.hpp 1.12.0 merge to main (#2104) 3 years ago
Topology.cpp 1.12.0 merge to main (#2104) 3 years ago
Topology.hpp 1.12.0 merge to main (#2104) 3 years ago
Trace.cpp 1.12.0 merge to main (#2104) 3 years ago
Trace.hpp BSL date bump 6 years ago
Utils.cpp 1.12.0 merge to main (#2104) 3 years ago
Utils.hpp 1.12.0 merge to main (#2104) 3 years ago
World.hpp 1.12.0 merge to main (#2104) 3 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.