Lennon Day Reynolds 92af3bf7dd clang-format for Switch.cpp пре 5 месеци
..
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 пре 5 месеци
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 пре 5 месеци
Metrics.hpp 8285e0f45b Add Prometheus metrics for packet fragmentation monitoring in nodes пре 5 месеци
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 пре 5 месеци
Switch.hpp 25b2814916 more consistent naming and formatting пре 5 месеци
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.