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.