ZeroTierOne/node
2019-03-21 16:18:49 -07:00
..
Address.hpp Replace certificate based gating of multicast like/gather with a simpler more efficient method, fix some minor issues with request based com/cert push, and clean up some other random stuff. 2019-03-21 16:18:49 -07:00
AtomicCounter.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Buffer.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
C25519.cpp Replace certificate based gating of multicast like/gather with a simpler more efficient method, fix some minor issues with request based com/cert push, and clean up some other random stuff. 2019-03-21 16:18:49 -07:00
C25519.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Capability.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Capability.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
CertificateOfMembership.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
CertificateOfMembership.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
CertificateOfOwnership.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
CertificateOfOwnership.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Constants.hpp . 2019-03-19 16:43:43 -07:00
Credential.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Dictionary.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Hashtable.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Identity.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Identity.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
IncomingPacket.cpp Replace certificate based gating of multicast like/gather with a simpler more efficient method, fix some minor issues with request based com/cert push, and clean up some other random stuff. 2019-03-21 16:18:49 -07:00
IncomingPacket.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
InetAddress.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
InetAddress.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
MAC.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Membership.cpp . 2019-03-19 16:43:43 -07:00
Membership.hpp Replace certificate based gating of multicast like/gather with a simpler more efficient method, fix some minor issues with request based com/cert push, and clean up some other random stuff. 2019-03-21 16:18:49 -07:00
Multicaster.cpp Clean out some unnecessarily pedantic auth stuff in favor of a simpler way of gating multicast gathers. 2019-03-14 14:29:15 -07:00
Multicaster.hpp Clean out some unnecessarily pedantic auth stuff in favor of a simpler way of gating multicast gathers. 2019-03-14 14:29:15 -07:00
MulticastGroup.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Mutex.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Network.cpp . 2019-03-19 16:43:43 -07:00
Network.hpp . 2019-03-19 16:43:43 -07:00
NetworkConfig.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
NetworkConfig.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
NetworkController.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Node.cpp Replace certificate based gating of multicast like/gather with a simpler more efficient method, fix some minor issues with request based com/cert push, and clean up some other random stuff. 2019-03-21 16:18:49 -07:00
Node.hpp . 2019-03-19 16:43:43 -07:00
OutboundMulticast.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
OutboundMulticast.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Packet.cpp Replace certificate based gating of multicast like/gather with a simpler more efficient method, fix some minor issues with request based com/cert push, and clean up some other random stuff. 2019-03-21 16:18:49 -07:00
Packet.hpp . 2019-03-19 16:43:43 -07:00
Path.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Path.hpp Revert "#ifdef'd out multipath/QoS statistics buffers allocations for ZT_PROTOCOL_VERSION<10" 2019-03-11 09:44:40 -07:00
Peer.cpp . 2019-03-19 16:43:43 -07:00
Peer.hpp . 2019-03-19 16:43:43 -07:00
Poly1305.cpp Minor cleanup. 2017-07-17 14:21:09 -07:00
Poly1305.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
README.md Actual documentation. 2017-02-03 19:47:00 -08:00
Revocation.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Revocation.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
RingBuffer.hpp Fixed potential memory leak in RingBuffer 2019-01-27 14:43:29 -08:00
RuntimeEnvironment.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Salsa20.cpp Spellcheck sweep across codebase 2018-06-07 17:25:27 -07:00
Salsa20.hpp Another very small crypto optimization. 2017-05-03 07:43:23 -07:00
SelfAwareness.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
SelfAwareness.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
SHA512.cpp 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. 2018-03-13 06:51:17 -07:00
SHA512.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
SharedPtr.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Switch.cpp . 2019-03-19 16:43:43 -07:00
Switch.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Tag.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Tag.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Topology.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Topology.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Trace.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Trace.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Utils.cpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
Utils.hpp Updated licenses for 2019 2019-01-14 10:25:53 -08:00
World.hpp Updated licenses for 2019 2019-01-14 10:25:53 -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.