ZeroTierOne/node
2020-03-25 13:21:50 -07:00
..
Address.hpp Moar build fixes, clock perf improvement. 2020-03-23 16:12:45 -07:00
AES.cpp Moar build fixes, clock perf improvement. 2020-03-23 16:12:45 -07:00
AES.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Buf.cpp Fixes for Buf, unit test 2020-02-24 15:40:19 -08:00
Buf.hpp ARM64 build fixes 2020-03-16 09:24:57 -07:00
C25519.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
C25519.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Capability.cpp More minor refactoring 2020-02-14 10:19:45 -08:00
Capability.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
CertificateOfMembership.cpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
CertificateOfMembership.hpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
CertificateOfOwnership.cpp build fixes 2020-02-21 08:44:53 -08:00
CertificateOfOwnership.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
CMakeLists.txt The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 2020-03-14 20:29:44 -07:00
Constants.hpp Rename version constants to something more canonical, and more cleanup. 2020-03-03 07:38:51 -08:00
Credential.cpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Credential.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Defragmenter.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Dictionary.cpp Take Dictionary behind the barn... 2020-01-25 18:02:11 -08:00
Dictionary.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
ECC384.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
ECC384.hpp Version 2.x notice updates and other boring stuff. 2020-01-20 08:46:20 -08:00
Endpoint.cpp more test fixes 2020-03-14 15:27:01 -07:00
Endpoint.hpp more test fixes 2020-03-14 15:27:01 -07:00
Expect.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
FCV.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Fingerprint.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Hashtable.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Identity.cpp ARM64 build fixes 2020-03-16 09:24:57 -07:00
Identity.hpp The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 2020-03-14 20:29:44 -07:00
InetAddress.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
InetAddress.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Locator.cpp Add Peer method for getting preferred cipher, various cleanup in VL1 2020-02-18 12:38:48 -08:00
Locator.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
LZ4.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
LZ4.hpp Fix accidentally removed file. 2020-03-23 16:15:36 -07:00
MAC.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Membership.cpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
Membership.hpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
Meter.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
MulticastGroup.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Mutex.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Network.cpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
Network.hpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
NetworkConfig.cpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
NetworkConfig.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
NetworkController.hpp Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. 2020-02-03 13:00:13 -08:00
Node.cpp Moar build fixes, clock perf improvement. 2020-03-23 16:12:45 -07:00
Node.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
OS.hpp It almost builds! 2020-03-17 16:27:31 -07:00
Path.cpp Yet more cleanup, and add meters to paths. 2020-02-19 11:06:05 -08:00
Path.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Peer.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Peer.hpp Fix tests, fix identity issue 2020-03-14 12:08:40 -07:00
Poly1305.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Poly1305.hpp Yet more major and very nit-picky refactoring for performance, etc. Also use std::atomic<> now with a TODO to implement a shim if we ever do need to build this on a pre-c++11 compiler. 2020-02-12 14:04:25 -08:00
Protocol.cpp Regularize use of fingerprint concept across code. 2020-03-02 12:09:38 -08:00
Protocol.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
README.md build fixes 2020-02-21 08:44:53 -08:00
Revocation.cpp Yet more major and very nit-picky refactoring for performance, etc. Also use std::atomic<> now with a TODO to implement a shim if we ever do need to build this on a pre-c++11 compiler. 2020-02-12 14:04:25 -08:00
Revocation.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
RuntimeEnvironment.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Salsa20.cpp More refactoring and a bunch of AES goodness. 2020-02-13 14:44:18 -08:00
Salsa20.hpp The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 2020-03-14 20:29:44 -07:00
ScopedPtr.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
SelfAwareness.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
SelfAwareness.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
SHA512.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
SHA512.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
SharedPtr.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Speck128.hpp minor stuff 2020-03-15 19:44:40 -07:00
Tag.cpp Yet more major and very nit-picky refactoring for performance, etc. Also use std::atomic<> now with a TODO to implement a shim if we ever do need to build this on a pre-c++11 compiler. 2020-02-12 14:04:25 -08:00
Tag.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Tests.cpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Tests.h Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. 2020-03-02 10:25:15 -08:00
Topology.cpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Topology.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
Trace.cpp Harden some stuff around COMs and members of networks. 2020-03-25 13:21:50 -07:00
Trace.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
TriviallyCopyable.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
Utils.cpp The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. 2020-03-14 20:29:44 -07:00
Utils.hpp Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. 2020-03-25 09:05:44 -07:00
VL1.cpp Linux build fixes, warning removal. 2020-03-24 08:39:54 -07:00
VL1.hpp A bunch of little nit-picky header and name cleanup. 2020-03-04 08:16:44 -08:00
VL2.cpp More minor refactoring 2020-02-14 10:19:45 -08:00
VL2.hpp More minor refactoring 2020-02-14 10:19:45 -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.
  • 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.