ZeroTierOne/node
2019-08-28 07:34:24 -07:00
..
Address.hpp more opt 2019-08-23 12:40:08 -07:00
AES.cpp Add check for PCLMUL instruction too. Virtually all CPUs with AES-NI have it but good to be sure. 2019-08-26 19:48:56 -07:00
AES.hpp cleanup 2019-08-27 14:31:04 -07:00
AtomicCounter.hpp more opt 2019-08-23 12:40:08 -07:00
Buffer.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
C25519.cpp Revert "optimization stuff" 2019-08-26 19:03:09 -07:00
C25519.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Capability.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
CertificateOfMembership.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
CertificateOfOwnership.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
CMakeLists.txt More cleanup, and fix SHA384 built-in C code. 2019-08-22 14:52:47 -07:00
Constants.hpp Optimization stuff 2019-08-23 12:18:02 -07:00
Credential.cpp Licenses, and use full strength AES-128 in scramble. 2019-08-23 12:03:13 -07:00
Credential.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Dictionary.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
ECC384.cpp cleanup 2019-08-27 14:42:49 -07:00
ECC384.hpp Licenses, and use full strength AES-128 in scramble. 2019-08-23 12:03:13 -07:00
Hashtable.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Identity.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Identity.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
IncomingPacket.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
IncomingPacket.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
InetAddress.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
InetAddress.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Locator.hpp Licenses, and use full strength AES-128 in scramble. 2019-08-23 12:03:13 -07:00
MAC.hpp more opt 2019-08-23 12:40:08 -07:00
Membership.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Membership.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Multicaster.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Multicaster.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
MulticastGroup.hpp Cleanup, multicast fingerprint, benchmark asymmetric crypto 2019-08-28 07:31:17 -07:00
Mutex.hpp Yield in ticket lock 2019-08-28 07:34:24 -07:00
Network.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Network.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
NetworkConfig.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
NetworkConfig.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
NetworkController.hpp Relicense: GPLv3 -> ZeroTier BSL 1.1 2019-08-23 09:23:39 -07:00
Node.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Node.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
OutboundMulticast.cpp Relicense: GPLv3 -> ZeroTier BSL 1.1 2019-08-23 09:23:39 -07:00
OutboundMulticast.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Packet.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Packet.hpp cleanup 2019-08-27 14:25:11 -07:00
Path.cpp Relicense: GPLv3 -> ZeroTier BSL 1.1 2019-08-23 09:23:39 -07:00
Path.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Peer.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Peer.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Poly1305.cpp More cleanup, and fix SHA384 built-in C code. 2019-08-22 14:52:47 -07: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 Optimization and cleanup 2019-08-26 20:18:28 -07:00
RingBuffer.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Root.hpp Licenses, and use full strength AES-128 in scramble. 2019-08-23 12:03:13 -07:00
RuntimeEnvironment.hpp Relicense: GPLv3 -> ZeroTier BSL 1.1 2019-08-23 09:23:39 -07:00
Salsa20.cpp Spellcheck sweep across codebase 2018-06-07 17:25:27 -07:00
Salsa20.hpp Remove ASM Salsa20 since it will not be the default in 2.x any more... reduce build complexity. 2019-08-16 14:26:25 -07:00
SelfAwareness.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
SelfAwareness.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
SHA512.cpp Cleanup, Linux build fix. 2019-08-26 12:17:23 -07:00
SHA512.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
SharedPtr.hpp more opt 2019-08-23 12:40:08 -07:00
Str.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Switch.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Switch.hpp Relicense: GPLv3 -> ZeroTier BSL 1.1 2019-08-23 09:23:39 -07:00
Tag.hpp Optimization and cleanup 2019-08-26 20:18:28 -07:00
Topology.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Trace.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Trace.hpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Utils.cpp Merge relicensing change from dev 2019-08-23 09:27:13 -07:00
Utils.hpp Optimization stuff 2019-08-26 18:15:32 -07: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.