ZeroTierOne/node
2017-01-30 08:01:36 -08:00
..
Address.hpp
Array.hpp
AtomicCounter.hpp
Buffer.hpp allow user to specify arbitrary allowed IP networks in allowManaged 2017-01-23 12:16:40 +01:00
C25519.cpp
C25519.hpp
Capability.cpp
Capability.hpp
CertificateOfMembership.cpp
CertificateOfMembership.hpp
Cluster.cpp
Cluster.hpp
Constants.hpp Slightly increase thread stack size for safety (primary Alpine related) possibly GitHub #443 2017-01-30 08:01:36 -08:00
Dictionary.hpp
Hashtable.hpp
Identity.cpp
Identity.hpp
IncomingPacket.cpp Fix moon persistence. 2017-01-27 15:35:21 -08:00
IncomingPacket.hpp Wire up VERB_USER_MESSAGE in core. 2017-01-09 15:55:07 -08:00
InetAddress.cpp
InetAddress.hpp
MAC.hpp
Membership.cpp
Membership.hpp
Multicaster.cpp
Multicaster.hpp Windows build fixes, Software update fix, warning removal. 2017-01-13 14:22:36 -08:00
MulticastGroup.hpp
Mutex.hpp
Network.cpp Relay policy can now be computed. 2017-01-27 14:05:09 -08:00
Network.hpp
NetworkConfig.cpp
NetworkConfig.hpp Relay policy can now be computed. 2017-01-27 14:05:09 -08:00
NetworkController.hpp
Node.cpp Fix deadlock. 2017-01-27 16:16:06 -08:00
Node.hpp Add comments to join ("orbit") moons. 2017-01-27 15:27:26 -08:00
NonCopyable.hpp
OutboundMulticast.cpp
OutboundMulticast.hpp
Packet.cpp Encapsulate LZ4 in Packet.cpp to eliminate dependency. 2017-01-19 15:16:04 -08:00
Packet.hpp Extend in-band world updates to handle moons too. 2017-01-27 13:50:56 -08:00
Path.cpp
Path.hpp
Peer.cpp Add comments to join ("orbit") moons. 2017-01-27 15:27:26 -08:00
Peer.hpp
Poly1305.cpp
Poly1305.hpp
README.md
Revocation.cpp
Revocation.hpp
RuntimeEnvironment.hpp
Salsa20.cpp
Salsa20.hpp
SelfAwareness.cpp
SelfAwareness.hpp
SHA512.cpp
SHA512.hpp
SharedPtr.hpp
Switch.cpp Relay policy can now be computed. 2017-01-27 14:05:09 -08:00
Switch.hpp
Tag.cpp
Tag.hpp
Topology.cpp Dead code removal, fix minor issue in upstream endpoint check. 2017-01-27 16:25:53 -08:00
Topology.hpp Fix deadlock. 2017-01-27 16:16:06 -08:00
Utils.cpp
Utils.hpp Add a build version for software update use so we can do very minor updates within a version. 2017-01-18 09:16:23 -08:00
World.hpp zerotier-idtool commands to init and generate moons 2017-01-27 17:34:39 -08:00

ZeroTier Virtual Switch 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.