Adam Ierymenko 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
..
AES.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
AES.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
AES_aesni.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
AES_armcrypto.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Address.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
AtomicCounter.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Bond.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Bond.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Buffer.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
C25519.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
C25519.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Capability.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Capability.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
CertificateOfMembership.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
CertificateOfMembership.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
CertificateOfOwnership.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
CertificateOfOwnership.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Constants.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Credential.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
DNS.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Dictionary.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Hashtable.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Identity.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Identity.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
IncomingPacket.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
IncomingPacket.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
InetAddress.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
InetAddress.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
MAC.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Membership.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Membership.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Metrics.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Metrics.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
MulticastGroup.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Multicaster.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Multicaster.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Mutex.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Network.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Network.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
NetworkConfig.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
NetworkConfig.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
NetworkController.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Node.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Node.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
OutboundMulticast.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
OutboundMulticast.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Packet.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Packet.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
PacketMultiplexer.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
PacketMultiplexer.hpp b813ea70a5 Simplify packet critical path. Plus more platform fixes 1 an în urmă
Path.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Path.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Peer.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Peer.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Poly1305.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Poly1305.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
README.md 8a2ff0b31e Actual documentation. 9 ani în urmă
Revocation.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Revocation.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
RingBuffer.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
RuntimeEnvironment.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
SHA512.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
SHA512.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Salsa20.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Salsa20.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
SelfAwareness.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
SelfAwareness.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
SharedPtr.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Switch.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Switch.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Tag.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Tag.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Topology.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Topology.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Trace.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Trace.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Utils.cpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
Utils.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă
World.hpp 5eb3cd2699 clang-format this branch to match dev 6 luni în urmă

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.