ZeroTierOne/node
Adam Ierymenko d51b82d0e6
Some checks failed
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
Temporarily disable checks to always forward -- for testing.
2025-07-18 14:26:19 -04:00
..
Address.hpp Controller support for "relays" field. 2025-07-17 17:04:07 -04:00
AES.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
AES.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
AES_aesni.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
AES_armcrypto.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
AtomicCounter.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Bond.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Bond.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Buffer.hpp clang-format 2025-07-03 11:26:23 -04:00
Capability.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Capability.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
CertificateOfMembership.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
CertificateOfMembership.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
CertificateOfOwnership.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
CertificateOfOwnership.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Constants.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Credential.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Dictionary.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
DNS.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
ECC.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
ECC.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Hashtable.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Identity.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Identity.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
IncomingPacket.cpp Merge changes from dev 2025-07-09 18:01:11 -07:00
IncomingPacket.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
InetAddress.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
InetAddress.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
MAC.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Membership.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Membership.hpp clang-format 2025-07-03 11:26:23 -04:00
Metrics.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Metrics.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Multicaster.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Multicaster.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
MulticastGroup.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Mutex.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Network.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Network.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
NetworkConfig.cpp Cleanup, define specialist for network specific relays, remove some dead code. 2025-07-11 10:48:12 -04:00
NetworkConfig.hpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
NetworkController.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Node.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Node.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
OutboundMulticast.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
OutboundMulticast.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Packet.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Packet.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
PacketMultiplexer.cpp Add network ID to upstream lookup, cleanup, release notes for 1.16. 2025-07-15 13:54:10 -04:00
PacketMultiplexer.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Path.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Path.hpp clang-format 2025-07-03 11:26:23 -04:00
Peer.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Peer.hpp Add network ID to upstream lookup, cleanup, release notes for 1.16. 2025-07-15 13:54:10 -04:00
Poly1305.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Poly1305.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Revocation.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
RingBuffer.hpp clang-format 2025-07-03 11:26:23 -04:00
RuntimeEnvironment.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Salsa20.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Salsa20.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
SelfAwareness.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
SelfAwareness.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
SHA512.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
SHA512.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
SharedPtr.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Switch.cpp Temporarily disable checks to always forward -- for testing. 2025-07-18 14:26:19 -04:00
Switch.hpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Tag.cpp clang-format 2025-07-03 11:26:23 -04:00
Tag.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Topology.cpp Add network ID to upstream lookup, cleanup, release notes for 1.16. 2025-07-15 13:54:10 -04:00
Topology.hpp Add network ID to upstream lookup, cleanup, release notes for 1.16. 2025-07-15 13:54:10 -04:00
Trace.cpp Plumb through attaching network ID to packet sends. 2025-07-16 11:55:00 -04:00
Trace.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
Utils.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Utils.hpp clang-format this branch 2025-07-03 12:02:18 -04:00
World.hpp clang-format this branch 2025-07-03 12:02:18 -04:00

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.