ZeroTierOne/core
2021-04-06 17:33:00 -04:00
..
Address.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
AES.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
AES.hpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
AES_aesni.cpp Small fix for VAES. 2021-04-02 15:32:12 -04:00
AES_armcrypto.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
Buf.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Buf.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
C25519.cpp Warning removal, Go work... 2020-08-10 12:35:26 -07:00
C25519.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
CallContext.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
CapabilityCredential.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
CapabilityCredential.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
CAPI.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Certificate.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Certificate.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
CMakeLists.txt Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Constants.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Containers.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Credential.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Credential.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Defaults.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Defaults.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Defragmenter.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Dictionary.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Dictionary.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
ECC384.cpp Various cleanup... 2021-01-12 15:23:35 -05:00
ECC384.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Endpoint.cpp Create and verify locators via CLI. 2021-03-11 21:37:04 -05:00
Endpoint.hpp Swap out warp for simple hyper web server in Rust, and we will use web sockets for webby-style communication since WebRTC is a mess. 2021-02-25 10:49:35 -05:00
EphemeralKey.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Expect.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
FCV.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Fingerprint.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Identity.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Identity.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
InetAddress.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
InetAddress.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Locator.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Locator.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
LZ4.cpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
LZ4.hpp Add serialize and deserialize functions to TrustStore. 2021-04-02 18:12:30 -04:00
MAC.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Member.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Member.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
MembershipCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MembershipCredential.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Meter.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
MIMC52.cpp cleanup, warning removal. 2021-03-08 14:05:33 -05:00
MIMC52.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
MulticastGroup.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Mutex.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Network.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Network.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
NetworkConfig.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkConfig.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
NetworkController.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Node.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Node.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
OS.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
OwnershipCredential.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
OwnershipCredential.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Path.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Path.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Peer.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Peer.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Poly1305.cpp More reorg, work in progress. 2020-06-05 13:04:37 -07:00
Poly1305.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
Protocol.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
README.md More reorg, work in progress. 2020-06-05 13:04:37 -07:00
RevocationCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
RevocationCredential.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
RuntimeEnvironment.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Salsa20.cpp Some optimization work on crypto code. 2020-07-15 14:33:02 -07:00
Salsa20.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
ScopedPtr.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
SelfAwareness.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
SelfAwareness.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
SHA512.cpp Some cleanup and optimization. 2020-07-02 10:33:34 -07:00
SHA512.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
SharedPtr.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Spinlock.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Store.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
SymmetricKey.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TagCredential.cpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TagCredential.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Tests.cpp Break out certificate trust store into a separate object and simplify and clean up certificate verification code. 2021-03-31 22:15:26 -04:00
Tests.h Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TinyMap.hpp Break out a few things from Node in the core to make code cleaner. 2021-04-02 15:28:25 -04:00
Topology.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Topology.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Trace.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Trace.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
TriviallyCopyable.hpp Copyright notices, dates. 2021-02-22 22:58:16 -05:00
TrustStore.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
TrustStore.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Utils.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
Utils.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
version.h.in Copyright notices, dates. 2021-02-22 22:58:16 -05:00
VL1.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
VL1.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
VL2.cpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
VL2.hpp Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -04:00
zerotier.h Big core refactor to create a CallContext to carry several annoying state variables through the call chain. Also remove some warnings. 2021-04-06 17:33:00 -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.
  • 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.