Joseph Henry fa5c8ef434 Fix timers, fix flow count discrepancy after flow removal, fix balance-aware flow re-assignment when one or more links go down 5 lat temu
..
Address.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
AtomicCounter.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Bond.cpp fa5c8ef434 Fix timers, fix flow count discrepancy after flow removal, fix balance-aware flow re-assignment when one or more links go down 5 lat temu
Bond.hpp fa5c8ef434 Fix timers, fix flow count discrepancy after flow removal, fix balance-aware flow re-assignment when one or more links go down 5 lat temu
BondController.cpp fa5c8ef434 Fix timers, fix flow count discrepancy after flow removal, fix balance-aware flow re-assignment when one or more links go down 5 lat temu
BondController.hpp 7266550c22 Remove vestigial constructor, fix typos, clean up code 5 lat temu
Buffer.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
C25519.cpp 6c44fcc290 more warning cleanup 6 lat temu
C25519.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Capability.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Capability.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
CertificateOfMembership.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
CertificateOfMembership.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
CertificateOfOwnership.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
CertificateOfOwnership.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Constants.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Credential.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Dictionary.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Flow.hpp 58d567c331 Formatting 5 lat temu
Hashtable.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Identity.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Identity.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
IncomingPacket.cpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
IncomingPacket.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
InetAddress.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
InetAddress.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
MAC.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Membership.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Membership.hpp 633cf9ec04 Warning removal 6 lat temu
MulticastGroup.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Multicaster.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Multicaster.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Mutex.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Network.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Network.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
NetworkConfig.cpp 7ed960297b Merge changes from dev into multipath 5 lat temu
NetworkConfig.hpp 7ed960297b Merge changes from dev into multipath 5 lat temu
NetworkController.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Node.cpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Node.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
OutboundMulticast.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
OutboundMulticast.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Packet.cpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Packet.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Path.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Path.hpp 7266550c22 Remove vestigial constructor, fix typos, clean up code 5 lat temu
Peer.cpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Peer.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Poly1305.cpp d530356055 RingBuffer<> is now templated with size, buffer is now static. 6 lat temu
Poly1305.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
README.md 8a2ff0b31e Actual documentation. 9 lat temu
Revocation.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Revocation.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
RingBuffer.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
RuntimeEnvironment.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
SHA512.cpp beb170e4fb Use X64 ASM ed25519 signatures on Linux/x64, which are about 10X faster. Will matter a lot for network controllers, not so much for other things. 7 lat temu
SHA512.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Salsa20.cpp 9681fedbb4 Spellcheck sweep across codebase 7 lat temu
Salsa20.hpp 41c187ba12 Another very small crypto optimization. 8 lat temu
SelfAwareness.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
SelfAwareness.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
SharedPtr.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Switch.cpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Switch.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Tag.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Tag.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Topology.cpp ecee310087 Update built-in root list. 6 lat temu
Topology.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Trace.cpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Trace.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
Utils.cpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu
Utils.hpp a50e8e9878 Add Bonds, Slaves, and Flows 5 lat temu
World.hpp 52a166a71f Relicense: GPLv3 -> ZeroTier BSL 1.1 6 lat temu

README.md

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.