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

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.