Grant Limberg 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
..
Address.hpp d2415dee00 Cleanup. vor 8 Jahren
Array.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
AtomicCounter.hpp a4bc40542b GCC/G++ build fixes, GitHub issue #563 vor 8 Jahren
Buffer.hpp 5e2ea4a81a Cleanup. vor 8 Jahren
C25519.cpp b9e1d53d7a Minor cleanup. vor 8 Jahren
C25519.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
Capability.cpp 6ee201865b Clean up WHOIS code. vor 8 Jahren
Capability.hpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
CertificateOfMembership.cpp 6ee201865b Clean up WHOIS code. vor 8 Jahren
CertificateOfMembership.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
CertificateOfOwnership.cpp 6ee201865b Clean up WHOIS code. vor 8 Jahren
CertificateOfOwnership.hpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
CertificateOfRepresentation.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
Constants.hpp 2d858b05ac Another fix for ye old tyme clients. vor 8 Jahren
Credential.hpp 1b68d6dbdc License header update. vor 8 Jahren
Dictionary.hpp 495c5ce81d Bunch of remote tracing work. vor 8 Jahren
Hashtable.hpp 9c903567bb Hashtable needs to include Constants.hpp for ZT_EXCEPTION_OUT_OF_MEMORY vor 8 Jahren
Identity.cpp b9e1d53d7a Minor cleanup. vor 8 Jahren
Identity.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
IncomingPacket.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
IncomingPacket.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
InetAddress.cpp d2415dee00 Cleanup. vor 8 Jahren
InetAddress.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
MAC.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
Membership.cpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
Membership.hpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
MulticastGroup.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
Multicaster.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Multicaster.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Mutex.hpp 239c2540d6 Mutex::lock and ::unlock just called themselves vor 8 Jahren
Network.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Network.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
NetworkConfig.cpp 2d858b05ac Another fix for ye old tyme clients. vor 8 Jahren
NetworkConfig.hpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
NetworkController.hpp 1b68d6dbdc License header update. vor 8 Jahren
Node.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Node.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
NonCopyable.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
OutboundMulticast.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. vor 8 Jahren
OutboundMulticast.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Packet.cpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. vor 8 Jahren
Packet.hpp f8014413a3 Add UDP MTU configurability. vor 8 Jahren
Path.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Path.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Peer.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Peer.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Poly1305.cpp b9e1d53d7a Minor cleanup. vor 8 Jahren
Poly1305.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren
README.md 8a2ff0b31e Actual documentation. vor 9 Jahren
Revocation.cpp 6ee201865b Clean up WHOIS code. vor 8 Jahren
Revocation.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
RuntimeEnvironment.hpp dab0fb9e05 Remote trace: plumbing, replace old TRACE with calls to Trace object. vor 8 Jahren
SHA512.cpp 1b68d6dbdc License header update. vor 8 Jahren
SHA512.hpp 1b68d6dbdc License header update. vor 8 Jahren
Salsa20.cpp a8ced184dc Some code cleanup and make sure any type punning is guarded with ZT_NO_TYPE_PUNNING. vor 8 Jahren
Salsa20.hpp 41c187ba12 Another very small crypto optimization. vor 8 Jahren
SelfAwareness.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
SelfAwareness.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
SharedPtr.hpp 6fc70f7c16 More cleanup, Linux build fixes. vor 8 Jahren
Switch.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Switch.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Tag.cpp 6ee201865b Clean up WHOIS code. vor 8 Jahren
Tag.hpp 099bedd2e9 A few more uint64_t -> int64_t changes for timestamps vor 8 Jahren
Topology.cpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Topology.hpp b1d60df44c timestamps changed from uint64_t to int64_t vor 8 Jahren
Trace.cpp fcaf1d89c2 Get rid of some noisy remote traces that should not be needed. vor 8 Jahren
Trace.hpp fcaf1d89c2 Get rid of some noisy remote traces that should not be needed. vor 8 Jahren
Utils.cpp f23a43fb81 More cleanup. vor 8 Jahren
Utils.hpp c692f2e740 Fix for new identity generation bug. vor 8 Jahren
World.hpp b9e1d53d7a Minor cleanup. vor 8 Jahren

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.