ZeroTierOne/node
Aaron Johnson 19d1de64ca Fix: Restore backward compatibility for mixed-version networks
Restores the deprecated ENCRYPTED flag (0x80) that was removed between
1.14.2 and 1.16, fixing L2 multicast failures when 1.16 controllers
communicate through pre-1.16 moons.

- Move ZT_PROTO_FLAG_EXTENDED_ARMOR to unused bit 0x20
- Restore ZT_PROTO_FLAG_ENCRYPTED at 0x80
- Restore setCipher() backward compatibility code from 1.14.2

This ensures MULTICAST_GATHER responses can be relayed through older
moons, fixing ARP resolution in L2 networks with broadcastEnabled:true.

Fixes connectivity issues in mixed-version networks.
2025-08-15 10:29:06 -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
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 node/ -> MPL 2025-08-06 12:10:18 -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 node/ -> MPL 2025-08-06 12:10:18 -04: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 node/ -> MPL 2025-08-06 12:10:18 -04: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 Fix: Restore backward compatibility for mixed-version networks 2025-08-15 10:29:06 -07: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 node/ -> MPL 2025-08-06 12:10:18 -04: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 node/ -> MPL 2025-08-06 12:10:18 -04: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.