Lennon Day Reynolds 92af3bf7dd clang-format for Switch.cpp 6 ماه پیش
..
AES.cpp ba2a4a605c clang-format 6 ماه پیش
AES.hpp ba2a4a605c clang-format 6 ماه پیش
AES_aesni.cpp ba2a4a605c clang-format 6 ماه پیش
AES_armcrypto.cpp ba2a4a605c clang-format 6 ماه پیش
Address.hpp ba2a4a605c clang-format 6 ماه پیش
AtomicCounter.hpp ba2a4a605c clang-format 6 ماه پیش
Bond.cpp db6045fe9c clang-format 6 ماه پیش
Bond.hpp ba2a4a605c clang-format 6 ماه پیش
Buffer.hpp ba2a4a605c clang-format 6 ماه پیش
Capability.cpp ba2a4a605c clang-format 6 ماه پیش
Capability.hpp 342fa9d33f clang-format this branch 6 ماه پیش
CertificateOfMembership.cpp 342fa9d33f clang-format this branch 6 ماه پیش
CertificateOfMembership.hpp 342fa9d33f clang-format this branch 6 ماه پیش
CertificateOfOwnership.cpp ba2a4a605c clang-format 6 ماه پیش
CertificateOfOwnership.hpp 342fa9d33f clang-format this branch 6 ماه پیش
Constants.hpp ba2a4a605c clang-format 6 ماه پیش
Credential.hpp 342fa9d33f clang-format this branch 6 ماه پیش
DNS.hpp ba2a4a605c clang-format 6 ماه پیش
Dictionary.hpp ba2a4a605c clang-format 6 ماه پیش
ECC.cpp 342fa9d33f clang-format this branch 6 ماه پیش
ECC.hpp 342fa9d33f clang-format this branch 6 ماه پیش
Hashtable.hpp ba2a4a605c clang-format 6 ماه پیش
Identity.cpp 342fa9d33f clang-format this branch 6 ماه پیش
Identity.hpp 342fa9d33f clang-format this branch 6 ماه پیش
IncomingPacket.cpp 7473d1942d Merge changes from dev 6 ماه پیش
IncomingPacket.hpp ba2a4a605c clang-format 6 ماه پیش
InetAddress.cpp ba2a4a605c clang-format 6 ماه پیش
InetAddress.hpp ba2a4a605c clang-format 6 ماه پیش
MAC.hpp ba2a4a605c clang-format 6 ماه پیش
Membership.cpp ba2a4a605c clang-format 6 ماه پیش
Membership.hpp ba2a4a605c clang-format 6 ماه پیش
Metrics.cpp 8285e0f45b Add Prometheus metrics for packet fragmentation monitoring in nodes 6 ماه پیش
Metrics.hpp 8285e0f45b Add Prometheus metrics for packet fragmentation monitoring in nodes 6 ماه پیش
MulticastGroup.hpp ba2a4a605c clang-format 6 ماه پیش
Multicaster.cpp b0889e1454 Merge branch 'dev' into hello-encryption 6 ماه پیش
Multicaster.hpp ba2a4a605c clang-format 6 ماه پیش
Mutex.hpp ba2a4a605c clang-format 6 ماه پیش
Network.cpp 342fa9d33f clang-format this branch 6 ماه پیش
Network.hpp ba2a4a605c clang-format 6 ماه پیش
NetworkConfig.cpp ba2a4a605c clang-format 6 ماه پیش
NetworkConfig.hpp ba2a4a605c clang-format 6 ماه پیش
NetworkController.hpp ba2a4a605c clang-format 6 ماه پیش
Node.cpp 342fa9d33f clang-format this branch 6 ماه پیش
Node.hpp ba2a4a605c clang-format 6 ماه پیش
OutboundMulticast.cpp ba2a4a605c clang-format 6 ماه پیش
OutboundMulticast.hpp ba2a4a605c clang-format 6 ماه پیش
Packet.cpp 342fa9d33f clang-format this branch 6 ماه پیش
Packet.hpp 342fa9d33f clang-format this branch 6 ماه پیش
PacketMultiplexer.cpp ba2a4a605c clang-format 6 ماه پیش
PacketMultiplexer.hpp b813ea70a5 Simplify packet critical path. Plus more platform fixes 1 سال پیش
Path.cpp ba2a4a605c clang-format 6 ماه پیش
Path.hpp ba2a4a605c clang-format 6 ماه پیش
Peer.cpp 342fa9d33f clang-format this branch 6 ماه پیش
Peer.hpp ba2a4a605c clang-format 6 ماه پیش
Poly1305.cpp ba2a4a605c clang-format 6 ماه پیش
Poly1305.hpp ba2a4a605c clang-format 6 ماه پیش
README.md 8a2ff0b31e Actual documentation. 9 سال پیش
Revocation.cpp ba2a4a605c clang-format 6 ماه پیش
Revocation.hpp 342fa9d33f clang-format this branch 6 ماه پیش
RingBuffer.hpp ba2a4a605c clang-format 6 ماه پیش
RuntimeEnvironment.hpp ba2a4a605c clang-format 6 ماه پیش
SHA512.cpp ba2a4a605c clang-format 6 ماه پیش
SHA512.hpp ba2a4a605c clang-format 6 ماه پیش
Salsa20.cpp ba2a4a605c clang-format 6 ماه پیش
Salsa20.hpp ba2a4a605c clang-format 6 ماه پیش
SelfAwareness.cpp ba2a4a605c clang-format 6 ماه پیش
SelfAwareness.hpp ba2a4a605c clang-format 6 ماه پیش
SharedPtr.hpp ba2a4a605c clang-format 6 ماه پیش
Switch.cpp 92af3bf7dd clang-format for Switch.cpp 6 ماه پیش
Switch.hpp 25b2814916 more consistent naming and formatting 6 ماه پیش
Tag.cpp ba2a4a605c clang-format 6 ماه پیش
Tag.hpp 342fa9d33f clang-format this branch 6 ماه پیش
Topology.cpp ba2a4a605c clang-format 6 ماه پیش
Topology.hpp ba2a4a605c clang-format 6 ماه پیش
Trace.cpp ba2a4a605c clang-format 6 ماه پیش
Trace.hpp ba2a4a605c clang-format 6 ماه پیش
Utils.cpp ba2a4a605c clang-format 6 ماه پیش
Utils.hpp ba2a4a605c clang-format 6 ماه پیش
World.hpp 342fa9d33f clang-format this branch 6 ماه پیش

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.