ZeroTierOne/node
Joseph Henry 226bb1d4ef
Some checks failed
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled
Merge pull request #2427 from SwarmboticsAI/fix-active-backup-selection
Fix active backup link selection
2025-07-03 10:55:38 -07:00
..
Address.hpp clang-format 2025-07-03 11:26:23 -04:00
AES.cpp clang-format 2025-07-03 11:26:23 -04:00
AES.hpp clang-format 2025-07-03 11:26:23 -04:00
AES_aesni.cpp clang-format 2025-07-03 11:26:23 -04:00
AES_armcrypto.cpp clang-format 2025-07-03 11:26:23 -04:00
AtomicCounter.hpp clang-format 2025-07-03 11:26:23 -04:00
Bond.cpp Merge pull request #2427 from SwarmboticsAI/fix-active-backup-selection 2025-07-03 10:55:38 -07:00
Bond.hpp clang-format 2025-07-03 11:26:23 -04:00
Buffer.hpp clang-format 2025-07-03 11:26:23 -04:00
C25519.cpp clang-format 2025-07-03 11:26:23 -04:00
C25519.hpp clang-format 2025-07-03 11:26:23 -04:00
Capability.cpp clang-format 2025-07-03 11:26:23 -04:00
Capability.hpp clang-format 2025-07-03 11:26:23 -04:00
CertificateOfMembership.cpp clang-format 2025-07-03 11:26:23 -04:00
CertificateOfMembership.hpp clang-format 2025-07-03 11:26:23 -04:00
CertificateOfOwnership.cpp clang-format 2025-07-03 11:26:23 -04:00
CertificateOfOwnership.hpp clang-format 2025-07-03 11:26:23 -04:00
Constants.hpp clang-format 2025-07-03 11:26:23 -04:00
Credential.hpp clang-format 2025-07-03 11:26:23 -04:00
Dictionary.hpp clang-format 2025-07-03 11:26:23 -04:00
DNS.hpp clang-format 2025-07-03 11:26:23 -04:00
Hashtable.hpp clang-format 2025-07-03 11:26:23 -04:00
Identity.cpp clang-format 2025-07-03 11:26:23 -04:00
Identity.hpp clang-format 2025-07-03 11:26:23 -04:00
IncomingPacket.cpp clang-format 2025-07-03 11:26:23 -04:00
IncomingPacket.hpp clang-format 2025-07-03 11:26:23 -04:00
InetAddress.cpp clang-format 2025-07-03 11:26:23 -04:00
InetAddress.hpp clang-format 2025-07-03 11:26:23 -04:00
MAC.hpp clang-format 2025-07-03 11:26:23 -04:00
Membership.cpp clang-format 2025-07-03 11:26:23 -04:00
Membership.hpp clang-format 2025-07-03 11:26:23 -04:00
Metrics.cpp one more clang-format fix 2025-07-03 08:41:19 -07:00
Metrics.hpp stop clang-format from breaking the build by sorting headers here 2025-07-03 08:38:21 -07:00
Multicaster.cpp Don't count bridges towards multicast limit. Send to all bridges 2025-07-03 09:44:45 -07:00
Multicaster.hpp clang-format 2025-07-03 11:26:23 -04:00
MulticastGroup.hpp clang-format 2025-07-03 11:26:23 -04:00
Mutex.hpp clang-format 2025-07-03 11:26:23 -04:00
Network.cpp clang-format 2025-07-03 11:26:23 -04:00
Network.hpp clang-format 2025-07-03 11:26:23 -04:00
NetworkConfig.cpp clang-format 2025-07-03 11:26:23 -04:00
NetworkConfig.hpp clang-format 2025-07-03 11:26:23 -04:00
NetworkController.hpp clang-format 2025-07-03 11:26:23 -04:00
Node.cpp clang-format 2025-07-03 11:26:23 -04:00
Node.hpp clang-format 2025-07-03 11:26:23 -04:00
OutboundMulticast.cpp clang-format 2025-07-03 11:26:23 -04:00
OutboundMulticast.hpp clang-format 2025-07-03 11:26:23 -04:00
Packet.cpp clang-format 2025-07-03 11:26:23 -04:00
Packet.hpp clang-format 2025-07-03 11:26:23 -04:00
PacketMultiplexer.cpp clang-format 2025-07-03 11:26:23 -04:00
PacketMultiplexer.hpp Simplify packet critical path. Plus more platform fixes 2024-08-22 12:59:06 -07:00
Path.cpp clang-format 2025-07-03 11:26:23 -04:00
Path.hpp clang-format 2025-07-03 11:26:23 -04:00
Peer.cpp clang-format 2025-07-03 11:26:23 -04:00
Peer.hpp clang-format 2025-07-03 11:26:23 -04:00
Poly1305.cpp clang-format 2025-07-03 11:26:23 -04:00
Poly1305.hpp clang-format 2025-07-03 11:26:23 -04:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.cpp clang-format 2025-07-03 11:26:23 -04:00
Revocation.hpp clang-format 2025-07-03 11:26:23 -04:00
RingBuffer.hpp clang-format 2025-07-03 11:26:23 -04:00
RuntimeEnvironment.hpp clang-format 2025-07-03 11:26:23 -04:00
Salsa20.cpp clang-format 2025-07-03 11:26:23 -04:00
Salsa20.hpp clang-format 2025-07-03 11:26:23 -04:00
SelfAwareness.cpp clang-format 2025-07-03 11:26:23 -04:00
SelfAwareness.hpp clang-format 2025-07-03 11:26:23 -04:00
SHA512.cpp clang-format 2025-07-03 11:26:23 -04:00
SHA512.hpp clang-format 2025-07-03 11:26:23 -04:00
SharedPtr.hpp clang-format 2025-07-03 11:26:23 -04:00
Switch.cpp clang-format 2025-07-03 11:26:23 -04:00
Switch.hpp clang-format 2025-07-03 11:26:23 -04:00
Tag.cpp clang-format 2025-07-03 11:26:23 -04:00
Tag.hpp clang-format 2025-07-03 11:26:23 -04:00
Topology.cpp clang-format 2025-07-03 11:26:23 -04:00
Topology.hpp clang-format 2025-07-03 11:26:23 -04:00
Trace.cpp clang-format 2025-07-03 11:26:23 -04:00
Trace.hpp clang-format 2025-07-03 11:26:23 -04:00
Utils.cpp clang-format 2025-07-03 11:26:23 -04:00
Utils.hpp clang-format 2025-07-03 11:26:23 -04:00
World.hpp clang-format 2025-07-03 11:26:23 -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.