Files
proitlab 6c23665072
build.yml / build_ubuntu (push) Canceled after 0s
build.yml / build_macos (push) Canceled after 0s
build.yml / build_windows (push) Canceled after 0s
Lint / clang-format (push) Canceled after 0s
validate.yml / build_ubuntu (push) Canceled after 0s
fix(controller): issue classic COM to pre-PQ requesters
A hybrid controller always double-signed the COM, so it serialized with type
byte 2. A legacy (v1.14.1) client's COM parser rejects any type != 1, which
threw inside NetworkConfig::fromDictionary; handleConfigChunk swallowed it, so
the client sat at REQUESTING_CONFIGURATION forever and surfaced as
ACCESS_DENIED once the network was private and its member unapproved.

Advertise PQ capability in the network-config-request metadata ("f" bit 0,
previously hardcoded 0) and let the controller pick the wire form per
requester: type 2 only for a requester that flagged the bit, type 1 otherwise
(all legacy clients, and push configs with no request metadata).

Verified: selftest's new "PQ authority can issue classic COM on demand" case
passes, and a real v1.14.1 client reaches status OK / netconfRevision 5
against a pqcMode:hybrid controller while a hybrid client still comes up OK.
2026-12-04 18:00:43 +07:00
..
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07:00
2025-11-19 16:23:45 +07: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.