ZeroTierOne/node
2016-09-06 14:05:58 -07:00
..
Address.hpp
Array.hpp
AtomicCounter.hpp Implement "weak pointer" behavior on Topology Path canonicalization hash table. 2016-09-02 12:34:02 -07:00
Buffer.hpp
C25519.cpp
C25519.hpp
Capability.cpp
Capability.hpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 2016-08-31 16:50:22 -07:00
CertificateOfMembership.cpp
CertificateOfMembership.hpp Compute credential TTL et al. 2016-08-23 13:02:59 -07:00
Cluster.cpp Cluster build fixes and warning elimination. 2016-08-31 09:38:21 -07:00
Cluster.hpp
Constants.hpp Tweaks to new Path code for dual-stack operation, and other fixes. 2016-09-03 15:39:05 -07:00
Dictionary.hpp Sign Dictionary in doNETWORK_CONFIG_REQUEST. 2016-08-23 11:57:56 -07:00
Hashtable.hpp Rework how paths are set as remote cluster preferred. The code is now clearer and cluster preference indications are now very sticky as they should be. 2016-09-06 12:45:28 -07:00
Identity.cpp
Identity.hpp Sign Dictionary in doNETWORK_CONFIG_REQUEST. 2016-08-23 11:57:56 -07:00
IncomingPacket.cpp (1) fix crazy bug introduced in doRENDEZVOUS(), (2) reclaim Paths after paths[] condense, (3) fix an edge case around symmetric NAT and external IP change detection. 2016-09-06 14:05:58 -07:00
IncomingPacket.hpp Work in progress: Path canonicalization refactor. 2016-09-01 15:43:07 -07:00
InetAddress.cpp
InetAddress.hpp
MAC.hpp
Membership.cpp Push more than one packet for credentials if we happen to have a whole lot. Should not happen often but might if a member has tons of tags. 2016-08-26 14:43:16 -07:00
Membership.hpp Also need to send credentials when TEEing and REDIRECTing. 2016-08-31 17:56:59 -07:00
Multicaster.cpp
Multicaster.hpp
MulticastGroup.hpp
Mutex.hpp
Network.cpp Tweaks to new Path code for dual-stack operation, and other fixes. 2016-09-03 15:39:05 -07:00
Network.hpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 2016-08-31 16:50:22 -07:00
NetworkConfig.cpp
NetworkConfig.hpp Optimize filter code a bit, and add a network-level setting for what should happen if an unsupported or unknown MATCH is encountered in a rules table. 2016-09-01 12:07:17 -07:00
NetworkController.hpp
Node.cpp Tweaks to new Path code for dual-stack operation, and other fixes. 2016-09-03 15:39:05 -07:00
Node.hpp Push NETWORK_CONFIG_REFRESH on POSTs to /member/... in controller. 2016-08-24 14:28:16 -07:00
NonCopyable.hpp
OutboundMulticast.cpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 2016-08-31 16:50:22 -07:00
OutboundMulticast.hpp
Packet.cpp Stub out USER_MESSAGE. 2016-08-23 14:38:20 -07:00
Packet.hpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 2016-08-31 16:50:22 -07:00
Path.cpp Work in progress: Path canonicalization refactor. 2016-09-01 15:43:07 -07:00
Path.hpp (1) fix crazy bug introduced in doRENDEZVOUS(), (2) reclaim Paths after paths[] condense, (3) fix an edge case around symmetric NAT and external IP change detection. 2016-09-06 14:05:58 -07:00
Peer.cpp (1) fix crazy bug introduced in doRENDEZVOUS(), (2) reclaim Paths after paths[] condense, (3) fix an edge case around symmetric NAT and external IP change detection. 2016-09-06 14:05:58 -07:00
Peer.hpp Rework how paths are set as remote cluster preferred. The code is now clearer and cluster preference indications are now very sticky as they should be. 2016-09-06 12:45:28 -07:00
Poly1305.cpp
Poly1305.hpp
README.md
RuntimeEnvironment.hpp
Salsa20.cpp
Salsa20.hpp
SelfAwareness.cpp
SelfAwareness.hpp
SHA512.cpp
SHA512.hpp
SharedPtr.hpp Implement "weak pointer" behavior on Topology Path canonicalization hash table. 2016-09-02 12:34:02 -07:00
Switch.cpp Remove debug line. 2016-09-02 14:26:04 -07:00
Switch.hpp
Tag.cpp
Tag.hpp
Topology.cpp Implement "weak pointer" behavior on Topology Path canonicalization hash table. 2016-09-02 12:34:02 -07:00
Topology.hpp Work in progress: Path canonicalization refactor. 2016-09-01 15:43:07 -07:00
Utils.cpp More tweaks to path behavior. 2016-09-05 15:47:22 -07:00
Utils.hpp
World.hpp

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.