ZeroTierOne/node
2017-10-25 16:01:36 -07:00
..
Address.hpp
Array.hpp
AtomicCounter.hpp
Buffer.hpp
C25519.cpp
C25519.hpp
Capability.cpp
Capability.hpp Full and clearer implementation of GitHub issue #588 2017-10-24 13:33:53 -07:00
CertificateOfMembership.cpp
CertificateOfMembership.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
CertificateOfOwnership.cpp
CertificateOfOwnership.hpp A few more uint64_t -> int64_t changes for timestamps 2017-10-04 12:01:17 -07:00
Constants.hpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Credential.hpp Delete something that turns out not to be useful. This will be handled differently. 2017-10-24 14:49:38 -07:00
Dictionary.hpp
Hashtable.hpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Identity.cpp
Identity.hpp
IncomingPacket.cpp A few fixes for cluster mode. 2017-10-25 15:44:10 -07:00
IncomingPacket.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
InetAddress.cpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
InetAddress.hpp Stop duplciate IPv6 addresses due to privacy mode IPs. 2017-10-25 16:01:36 -07:00
MAC.hpp
Membership.cpp A few more uint64_t -> int64_t changes for timestamps 2017-10-04 12:01:17 -07:00
Membership.hpp A few more uint64_t -> int64_t changes for timestamps 2017-10-04 12:01:17 -07:00
Multicaster.cpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
Multicaster.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
MulticastGroup.hpp
Mutex.hpp
Network.cpp Full and clearer implementation of GitHub issue #588 2017-10-24 13:33:53 -07:00
Network.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
NetworkConfig.cpp
NetworkConfig.hpp A few more uint64_t -> int64_t changes for timestamps 2017-10-04 12:01:17 -07:00
NetworkController.hpp
Node.cpp Now with more worky. 2017-10-25 13:27:28 -07:00
Node.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
NonCopyable.hpp
OutboundMulticast.cpp
OutboundMulticast.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
Packet.cpp
Packet.hpp docs 2017-10-24 14:57:02 -07:00
Path.cpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
Path.hpp A few fixes for cluster mode. 2017-10-25 15:44:10 -07:00
Peer.cpp Stop duplciate IPv6 addresses due to privacy mode IPs. 2017-10-25 16:01:36 -07:00
Peer.hpp A few fixes for cluster mode. 2017-10-25 15:44:10 -07:00
Poly1305.cpp
Poly1305.hpp
README.md
Revocation.cpp
Revocation.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
RuntimeEnvironment.hpp
Salsa20.cpp
Salsa20.hpp
SelfAwareness.cpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
SelfAwareness.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
SHA512.cpp
SHA512.hpp
SharedPtr.hpp
Switch.cpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Switch.hpp timestamps changed from uint64_t to int64_t 2017-10-02 15:52:57 -07:00
Tag.cpp
Tag.hpp A few more uint64_t -> int64_t changes for timestamps 2017-10-04 12:01:17 -07:00
Topology.cpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Topology.hpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Trace.cpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Trace.hpp Refactor path stability stuff and add basic multipath support. 2017-10-25 12:42:14 -07:00
Utils.cpp
Utils.hpp
World.hpp

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.