A PQ node could complete the hybrid handshake and still never join the network: status ACCESS_DENIED, peers [], frames dropped. Three separate defects, none in the key exchange itself. 1. EmbeddedNetworkController::_request gated known members with Identity(haveIdStr) != identity. HELLO carries only the classic projection (Identity::serializeClassic), so peer->identity() stays type 0 while a stored record is type 1, and operator== -- which compares PQ material -- always reported a mismatch. Use the existing sameClassicalIdentity(); PQ key rotation stays detectable via VERB_PQ_KEYS. 2. Peer::setPQPublicKeys() cached the received PQ keys for the crypto path only and never wrote them into _id. The controller's identity therefore stayed type 0 in every table, com.verify() returned 1, and Membership deferred for WHOIS forever -- a WHOIS cannot help, the keys arrive in VERB_PQ_KEYS. Add Identity::attachPQPublicKeys() and call it so the peer's Identity is complete once keys arrive. 3. OneServiceImpl::run constructed an EmbeddedNetworkController unconditionally, so a member-only node answered its own NETWORK_CONFIG_REQUESTs and self-signed a local config, never contacting the node that owned the network. Add settings.disableController (default false, so existing installs are unchanged) for member-only nodes. Verified live on two hosts with pqcMode: hybrid on both sides: status OK, peer DIRECT over 192.168.122.85/9993, pqcCapable and pqcHybridActive true both directions, ping 0% loss both ways, selftest exit 0. The selftest regression covers the controller match and keeps rejecting an impostor identity at the same address. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.