Adam Ierymenko 3d6d9c5808 LINT cleanliness. vor 5 Jahren
..
AES.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
AES.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
Address.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Buf.cpp 547f39bb49 Fixes for Buf, unit test vor 6 Jahren
Buf.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
C25519.cpp 1f85b0402e Just use unordered_map, and some other cleanup. vor 5 Jahren
C25519.hpp 1f85b0402e Just use unordered_map, and some other cleanup. vor 5 Jahren
CMakeLists.txt 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
Capability.cpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. vor 5 Jahren
Capability.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
CertificateOfMembership.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
CertificateOfMembership.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
CertificateOfOwnership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
CertificateOfOwnership.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Constants.hpp da5b11bf2d Rename version constants to something more canonical, and more cleanup. vor 5 Jahren
Credential.cpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. vor 5 Jahren
Credential.hpp d3a7468e83 Implement AES-GMAC-SIV and benchmark, rework COM and add a lot of comments and docs, and comments and docs elsewhere too. vor 5 Jahren
Defragmenter.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
Dictionary.cpp b3314cd34f Small build fixes. vor 5 Jahren
Dictionary.hpp b3314cd34f Small build fixes. vor 5 Jahren
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. vor 5 Jahren
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. vor 6 Jahren
Endpoint.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
Endpoint.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Expect.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
FCV.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Fingerprint.hpp 7fd78a87d1 Use static_assert more. vor 5 Jahren
Identity.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Identity.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
InetAddress.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
InetAddress.hpp 7fd78a87d1 Use static_assert more. vor 5 Jahren
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
LZ4.hpp 274db26339 Fix accidentally removed file. vor 5 Jahren
Locator.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
Locator.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
MAC.hpp 3d6d9c5808 LINT cleanliness. vor 5 Jahren
Map.hpp 1f85b0402e Just use unordered_map, and some other cleanup. vor 5 Jahren
Membership.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Membership.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Meter.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
MulticastGroup.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Network.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
Network.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
NetworkConfig.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
NetworkConfig.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
NetworkController.hpp df346a6df6 Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. vor 6 Jahren
Node.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Node.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
OS.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Path.cpp 0589964f99 Yet more cleanup, and add meters to paths. vor 6 Jahren
Path.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Peer.cpp 64c533c189 More warning removal. vor 5 Jahren
Peer.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. vor 5 Jahren
Poly1305.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Protocol.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Protocol.hpp 7fd78a87d1 Use static_assert more. vor 5 Jahren
README.md c6ce6b46ce build fixes vor 6 Jahren
Revocation.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
Revocation.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
RuntimeEnvironment.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
SHA512.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
SHA512.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. vor 6 Jahren
Salsa20.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
ScopedPtr.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
SelfAwareness.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
SelfAwareness.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
SharedPtr.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Speck128.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Tag.cpp 1f2e94a51d Some optimization and raw memory access cleanup. vor 5 Jahren
Tag.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Tests.cpp 7fd78a87d1 Use static_assert more. vor 5 Jahren
Tests.h a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. vor 5 Jahren
Topology.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. vor 5 Jahren
Topology.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Trace.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Trace.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
TriviallyCopyable.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Utils.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
Utils.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
VL1.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren
VL1.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. vor 5 Jahren
VL2.cpp e236d6f743 More minor refactoring vor 6 Jahren
VL2.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. vor 5 Jahren

README.md

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.