ZeroTierOne/node
2020-01-20 08:08:38 -08:00
..
Address.hpp Everything but the Go code builds now! 2020-01-10 21:09:13 -08:00
AES.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
AES.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
AtomicCounter.hpp New Buffer implementation (not used yet) and cleanup 2020-01-10 15:28:27 -08:00
Buf.cpp New Buffer implementation (not used yet) and cleanup 2020-01-10 15:28:27 -08:00
Buf.hpp Go code cleanup for new changes 2020-01-10 16:54:01 -08:00
Buffer.hpp work in progress 2019-10-15 12:49:03 -07:00
C25519.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
C25519.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Capability.hpp cleanup 2020-01-07 14:03:50 -08:00
CertificateOfMembership.hpp cleanup 2020-01-07 14:03:50 -08:00
CertificateOfOwnership.hpp cleanup 2020-01-07 14:03:50 -08:00
CMakeLists.txt Move self-test so it can be called from CLI and always builds, implement Endpoint and Locator deserialization in Go as well as C++. 2020-01-14 14:37:49 -08:00
Constants.hpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Credential.cpp A bunch of cleanup and refactoring toward 2.x 2019-12-12 16:15:49 -08:00
Credential.hpp cleanup 2020-01-07 14:03:50 -08:00
Dictionary.hpp cleanup 2020-01-07 14:03:50 -08:00
ECC384.cpp . 2020-01-08 18:08:41 -08:00
ECC384.hpp Licenses, and use full strength AES-128 in scramble. 2019-08-23 12:03:13 -07:00
Endpoint.cpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Endpoint.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Hashtable.hpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Identity.cpp Self test is back, wiring up roots again. 2020-01-13 16:35:49 -08:00
Identity.hpp Bunch more fixes, implement C API for Identity operations. 2020-01-09 13:50:51 -08:00
IncomingPacket.cpp Wiring back up PUSH_DIRECT_PATHS and friends. 2020-01-13 14:04:17 -08:00
IncomingPacket.hpp cleanup 2020-01-07 14:03:50 -08:00
InetAddress.cpp Move self-test so it can be called from CLI and always builds, implement Endpoint and Locator deserialization in Go as well as C++. 2020-01-14 14:37:49 -08:00
InetAddress.hpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Locator.cpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Locator.hpp Self test is back, wiring up roots again. 2020-01-13 16:35:49 -08:00
MAC.hpp cleanup 2020-01-07 14:03:50 -08:00
Membership.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Membership.hpp Everything but the Go code builds now! 2020-01-10 21:09:13 -08:00
Meter.hpp . 2020-01-07 13:24:15 -08:00
MulticastGroup.hpp cleanup 2020-01-07 14:03:50 -08:00
Mutex.hpp Wiring back up PUSH_DIRECT_PATHS and friends. 2020-01-13 14:04:17 -08:00
Network.cpp Everything but the Go code builds now! 2020-01-10 21:09:13 -08:00
Network.hpp cleanup 2020-01-07 14:03:50 -08:00
NetworkConfig.cpp Build fixes, cleanup 2020-01-08 21:24:47 -08:00
NetworkConfig.hpp A bunch more cleanup and build fixes, and remove old version of multipath code to prep for new version. 2020-01-10 20:40:14 -08:00
NetworkController.hpp cleanup 2020-01-07 14:03:50 -08:00
Node.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Node.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
OS.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Packet.cpp Packet ID fix 2019-09-13 10:23:35 -07:00
Packet.hpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Path.cpp A bunch more cleanup and build fixes, and remove old version of multipath code to prep for new version. 2020-01-10 20:40:14 -08:00
Path.hpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Peer.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Peer.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Poly1305.cpp cleanup 2020-01-07 14:03:50 -08:00
Poly1305.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.hpp . 2020-01-08 18:08:41 -08:00
RingBuffer.hpp cleanup 2020-01-07 14:03:50 -08:00
RuntimeEnvironment.hpp A bunch of cleanup and refactoring toward 2.x 2019-12-12 16:15:49 -08:00
Salsa20.cpp Spellcheck sweep across codebase 2018-06-07 17:25:27 -07:00
Salsa20.hpp cleanup 2020-01-07 14:03:50 -08:00
ScopedPtr.hpp A bunch more cleanup and build fixes, and remove old version of multipath code to prep for new version. 2020-01-10 20:40:14 -08:00
SelfAwareness.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
SelfAwareness.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
SHA512.cpp cleanup 2020-01-07 14:03:50 -08:00
SHA512.hpp Go build works now 2020-01-10 22:12:56 -08:00
SharedPtr.hpp A bunch more cleanup and build fixes, and remove old version of multipath code to prep for new version. 2020-01-10 20:40:14 -08:00
Str.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Switch.cpp A bunch of wiring up of stuff... 2020-01-17 14:01:22 -08:00
Switch.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Tag.hpp . 2020-01-08 18:08:41 -08:00
Topology.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Topology.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Trace.hpp . 2020-01-09 08:39:47 -08:00
Utils.cpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08:00
Utils.hpp Make Peer bootstrap field an Endpoint even though we only support InetAddress right now, and a bunch more stuff. 2020-01-20 08:08:38 -08: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.