Adam Ierymenko d3e8e9629b More optimization work. 8 lat temu
..
Address.hpp d2415dee00 Cleanup. 8 lat temu
Array.hpp b9e1d53d7a Minor cleanup. 8 lat temu
AtomicCounter.hpp a4bc40542b GCC/G++ build fixes, GitHub issue #563 8 lat temu
Buffer.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
C25519.cpp b9e1d53d7a Minor cleanup. 8 lat temu
C25519.hpp b9e1d53d7a Minor cleanup. 8 lat temu
Capability.cpp 6ee201865b Clean up WHOIS code. 8 lat temu
Capability.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
CertificateOfMembership.cpp 6ee201865b Clean up WHOIS code. 8 lat temu
CertificateOfMembership.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
CertificateOfOwnership.cpp 6ee201865b Clean up WHOIS code. 8 lat temu
CertificateOfOwnership.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Constants.hpp 459f1e7bfb Refactor path stability stuff and add basic multipath support. 8 lat temu
Credential.hpp c7d370c17f Delete something that turns out not to be useful. This will be handled differently. 8 lat temu
Dictionary.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Hashtable.hpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
Identity.cpp b9e1d53d7a Minor cleanup. 8 lat temu
Identity.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
IncomingPacket.cpp 508fa6a7fe A few fixes for cluster mode. 8 lat temu
IncomingPacket.hpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
InetAddress.cpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
InetAddress.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
MAC.hpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
Membership.cpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps 8 lat temu
Membership.hpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps 8 lat temu
MulticastGroup.hpp b9e1d53d7a Minor cleanup. 8 lat temu
Multicaster.cpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
Multicaster.hpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
Mutex.hpp 239c2540d6 Mutex::lock and ::unlock just called themselves 8 lat temu
Network.cpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Network.hpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
NetworkConfig.cpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
NetworkConfig.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
NetworkController.hpp 1b68d6dbdc License header update. 8 lat temu
Node.cpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Node.hpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
NonCopyable.hpp b9e1d53d7a Minor cleanup. 8 lat temu
OutboundMulticast.cpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
OutboundMulticast.hpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
Packet.cpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Packet.hpp 2d0dc62a53 docs 8 lat temu
Path.cpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
Path.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Peer.cpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
Peer.hpp 508fa6a7fe A few fixes for cluster mode. 8 lat temu
Poly1305.cpp b9e1d53d7a Minor cleanup. 8 lat temu
Poly1305.hpp b9e1d53d7a Minor cleanup. 8 lat temu
README.md 8a2ff0b31e Actual documentation. 9 lat temu
Revocation.cpp 6ee201865b Clean up WHOIS code. 8 lat temu
Revocation.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
RuntimeEnvironment.hpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. 8 lat temu
SHA512.cpp 1b68d6dbdc License header update. 8 lat temu
SHA512.hpp 1b68d6dbdc License header update. 8 lat temu
Salsa20.cpp a8ced184dc Some code cleanup and make sure any type punning is guarded with ZT_NO_TYPE_PUNNING. 8 lat temu
Salsa20.hpp 41c187ba12 Another very small crypto optimization. 8 lat temu
SelfAwareness.cpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
SelfAwareness.hpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
SharedPtr.hpp 6fc70f7c16 More cleanup, Linux build fixes. 8 lat temu
Switch.cpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
Switch.hpp b1d60df44c timestamps changed from uint64_t to int64_t 8 lat temu
Tag.cpp 6ee201865b Clean up WHOIS code. 8 lat temu
Tag.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu
Topology.cpp 459f1e7bfb Refactor path stability stuff and add basic multipath support. 8 lat temu
Topology.hpp 459f1e7bfb Refactor path stability stuff and add basic multipath support. 8 lat temu
Trace.cpp f13886d343 Warning removal. 8 lat temu
Trace.hpp 16613ab5fb Clean up remote tracing code, add per-network remote trace settings, add remote trace level, and make local trace output readable again. 8 lat temu
Utils.cpp f23a43fb81 More cleanup. 8 lat temu
Utils.hpp d3e8e9629b More optimization work. 8 lat temu
World.hpp 0608704626 Some micro-optimizations, including a memcpy that is faster than Linux for most distro/compiler versions. 8 lat temu

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.