Adam Ierymenko db6045fe9c clang-format 3 months ago
..
AES.cpp ba2a4a605c clang-format 3 months ago
AES.hpp ba2a4a605c clang-format 3 months ago
AES_aesni.cpp ba2a4a605c clang-format 3 months ago
AES_armcrypto.cpp ba2a4a605c clang-format 3 months ago
Address.hpp ba2a4a605c clang-format 3 months ago
AtomicCounter.hpp ba2a4a605c clang-format 3 months ago
Bond.cpp db6045fe9c clang-format 3 months ago
Bond.hpp ba2a4a605c clang-format 3 months ago
Buffer.hpp ba2a4a605c clang-format 3 months ago
Capability.cpp ba2a4a605c clang-format 3 months ago
Capability.hpp 342fa9d33f clang-format this branch 3 months ago
CertificateOfMembership.cpp 342fa9d33f clang-format this branch 3 months ago
CertificateOfMembership.hpp 342fa9d33f clang-format this branch 3 months ago
CertificateOfOwnership.cpp ba2a4a605c clang-format 3 months ago
CertificateOfOwnership.hpp 342fa9d33f clang-format this branch 3 months ago
Constants.hpp ba2a4a605c clang-format 3 months ago
Credential.hpp 342fa9d33f clang-format this branch 3 months ago
DNS.hpp ba2a4a605c clang-format 3 months ago
Dictionary.hpp ba2a4a605c clang-format 3 months ago
ECC.cpp 342fa9d33f clang-format this branch 3 months ago
ECC.hpp 342fa9d33f clang-format this branch 3 months ago
Hashtable.hpp ba2a4a605c clang-format 3 months ago
Identity.cpp 342fa9d33f clang-format this branch 3 months ago
Identity.hpp 342fa9d33f clang-format this branch 3 months ago
IncomingPacket.cpp 342fa9d33f clang-format this branch 3 months ago
IncomingPacket.hpp ba2a4a605c clang-format 3 months ago
InetAddress.cpp ba2a4a605c clang-format 3 months ago
InetAddress.hpp ba2a4a605c clang-format 3 months ago
MAC.hpp ba2a4a605c clang-format 3 months ago
Membership.cpp ba2a4a605c clang-format 3 months ago
Membership.hpp ba2a4a605c clang-format 3 months ago
Metrics.cpp 813fb7a394 one more clang-format fix 3 months ago
Metrics.hpp 6d532944bd stop clang-format from breaking the build by sorting headers here 3 months ago
MulticastGroup.hpp ba2a4a605c clang-format 3 months ago
Multicaster.cpp b0889e1454 Merge branch 'dev' into hello-encryption 3 months ago
Multicaster.hpp ba2a4a605c clang-format 3 months ago
Mutex.hpp ba2a4a605c clang-format 3 months ago
Network.cpp 342fa9d33f clang-format this branch 3 months ago
Network.hpp ba2a4a605c clang-format 3 months ago
NetworkConfig.cpp ba2a4a605c clang-format 3 months ago
NetworkConfig.hpp ba2a4a605c clang-format 3 months ago
NetworkController.hpp ba2a4a605c clang-format 3 months ago
Node.cpp 342fa9d33f clang-format this branch 3 months ago
Node.hpp ba2a4a605c clang-format 3 months ago
OutboundMulticast.cpp ba2a4a605c clang-format 3 months ago
OutboundMulticast.hpp ba2a4a605c clang-format 3 months ago
Packet.cpp 342fa9d33f clang-format this branch 3 months ago
Packet.hpp 342fa9d33f clang-format this branch 3 months ago
PacketMultiplexer.cpp ba2a4a605c clang-format 3 months ago
PacketMultiplexer.hpp b813ea70a5 Simplify packet critical path. Plus more platform fixes 1 year ago
Path.cpp ba2a4a605c clang-format 3 months ago
Path.hpp ba2a4a605c clang-format 3 months ago
Peer.cpp 342fa9d33f clang-format this branch 3 months ago
Peer.hpp ba2a4a605c clang-format 3 months ago
Poly1305.cpp ba2a4a605c clang-format 3 months ago
Poly1305.hpp ba2a4a605c clang-format 3 months ago
README.md 8a2ff0b31e Actual documentation. 8 years ago
Revocation.cpp ba2a4a605c clang-format 3 months ago
Revocation.hpp 342fa9d33f clang-format this branch 3 months ago
RingBuffer.hpp ba2a4a605c clang-format 3 months ago
RuntimeEnvironment.hpp ba2a4a605c clang-format 3 months ago
SHA512.cpp ba2a4a605c clang-format 3 months ago
SHA512.hpp ba2a4a605c clang-format 3 months ago
Salsa20.cpp ba2a4a605c clang-format 3 months ago
Salsa20.hpp ba2a4a605c clang-format 3 months ago
SelfAwareness.cpp ba2a4a605c clang-format 3 months ago
SelfAwareness.hpp ba2a4a605c clang-format 3 months ago
SharedPtr.hpp ba2a4a605c clang-format 3 months ago
Switch.cpp 342fa9d33f clang-format this branch 3 months ago
Switch.hpp ba2a4a605c clang-format 3 months ago
Tag.cpp ba2a4a605c clang-format 3 months ago
Tag.hpp 342fa9d33f clang-format this branch 3 months ago
Topology.cpp ba2a4a605c clang-format 3 months ago
Topology.hpp ba2a4a605c clang-format 3 months ago
Trace.cpp ba2a4a605c clang-format 3 months ago
Trace.hpp ba2a4a605c clang-format 3 months ago
Utils.cpp ba2a4a605c clang-format 3 months ago
Utils.hpp ba2a4a605c clang-format 3 months ago
World.hpp 342fa9d33f clang-format this branch 3 months 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.