ZeroTierOne/node
Grant Limberg 195d5b47f0
Some checks are pending
/ build_macos (push) Waiting to run
/ build_windows (push) Waiting to run
/ build_ubuntu (push) Waiting to run
Merge branch 'adam/1.16' into gl/ctl-pubsub
2025-09-01 16:47:55 -07:00
..
Address.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
AES.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
AES.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
AES_aesni.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
AES_armcrypto.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
AtomicCounter.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Bond.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Bond.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Buffer.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Capability.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Capability.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
CertificateOfMembership.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
CertificateOfMembership.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
CertificateOfOwnership.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
CertificateOfOwnership.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
CMakeLists.txt Update central controller build to use CMake + conda 2025-08-27 16:23:02 -07:00
Constants.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Credential.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Dictionary.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
DNS.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
ECC.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
ECC.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Hashtable.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Identity.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Identity.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
IncomingPacket.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
IncomingPacket.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
InetAddress.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
InetAddress.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
MAC.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Membership.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Membership.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Metrics.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Metrics.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Multicaster.cpp Add conditional compilation of controller. 2025-08-21 09:55:08 -04:00
Multicaster.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
MulticastGroup.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Mutex.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Network.cpp Do not compress frames -- also unrelated to bug. 2025-08-25 11:47:50 -07:00
Network.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
NetworkConfig.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
NetworkConfig.hpp Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. 2025-08-25 13:38:57 -07:00
NetworkController.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Node.cpp Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2025-08-12 12:34:54 -04:00
Node.hpp Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2025-08-12 12:34:54 -04:00
OutboundMulticast.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
OutboundMulticast.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Packet.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Packet.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
PacketMultiplexer.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
PacketMultiplexer.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Path.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Path.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Peer.cpp Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2025-08-12 12:34:54 -04:00
Peer.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Poly1305.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
Poly1305.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Revocation.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
RingBuffer.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
RuntimeEnvironment.hpp node/ -> MPL 2025-08-06 12:10: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 node/ -> MPL 2025-08-06 12:10:18 -04:00
SelfAwareness.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
SHA512.cpp clang-format this branch 2025-07-03 12:02:18 -04:00
SHA512.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
SharedPtr.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Switch.cpp Re-enable relaying checks, also not bug related but put back after we decided to punt removing moons. 2025-08-25 11:22:21 -07:00
Switch.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Tag.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Tag.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Topology.cpp Do not compress frames -- also unrelated to bug. 2025-08-25 11:47:50 -07:00
Topology.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Trace.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Trace.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Utils.cpp node/ -> MPL 2025-08-06 12:10:18 -04:00
Utils.hpp node/ -> MPL 2025-08-06 12:10:18 -04:00
World.hpp node/ -> MPL 2025-08-06 12:10: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.