2
0
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.