ZeroTierOne/node
2020-04-13 12:22:08 -07:00
..
Address.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
AES.cpp A bunch of cleanup, bug fix, just use unordered_map, etc. 2020-03-30 17:28:23 -07:00
AES.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Buf.cpp Fixes for Buf, unit test 2020-02-24 15:40:19 -08:00
Buf.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
C25519.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
C25519.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Capability.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Capability.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
CertificateOfMembership.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
CertificateOfMembership.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
CertificateOfOwnership.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
CertificateOfOwnership.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
CMakeLists.txt Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Constants.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Containers.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Credential.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Credential.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Defragmenter.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Dictionary.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Dictionary.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
ECC384.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
ECC384.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Endpoint.cpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Endpoint.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Expect.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
FCV.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Fingerprint.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Identity.cpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Identity.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
InetAddress.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
InetAddress.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Locator.cpp Some optimization and raw memory access cleanup. 2020-03-27 07:40:14 -07:00
Locator.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
LZ4.cpp Some optimization and raw memory access cleanup. 2020-03-27 07:40:14 -07:00
LZ4.hpp Fix accidentally removed file. 2020-03-23 16:15:36 -07:00
MAC.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Membership.cpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Membership.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Meter.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
MulticastGroup.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Mutex.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Network.cpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Network.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
NetworkConfig.cpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
NetworkConfig.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
NetworkController.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Node.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Node.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
OS.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Path.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Path.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Peer.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Peer.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Poly1305.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Poly1305.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Protocol.cpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Protocol.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
README.md build fixes 2020-02-21 08:44:53 -08:00
Revocation.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Revocation.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
RuntimeEnvironment.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Salsa20.cpp More refactoring and a bunch of AES goodness. 2020-02-13 14:44:18 -08:00
Salsa20.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
ScopedPtr.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
SelfAwareness.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
SelfAwareness.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
SHA512.cpp Some optimization and raw memory access cleanup. 2020-03-27 07:40:14 -07:00
SHA512.hpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
SharedPtr.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Speck128.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
SymmetricKey.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Tag.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Tag.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Tests.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Tests.h A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Topology.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Topology.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Trace.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
Trace.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
TriviallyCopyable.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
Utils.cpp A bunch of warning removal and LINT cleanliness. 2020-03-31 12:35:54 -07:00
Utils.hpp Add symmetric key container, tons of cleanup. 2020-04-06 16:54:35 -07:00
VL1.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
VL1.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
VL2.cpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -07:00
VL2.hpp A bunch of cleanup and refactoring, implementation of prep for forward secrecy still in progress. 2020-04-13 12:22:08 -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.
  • 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.