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

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.