Adam Ierymenko 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
..
AES.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
AES.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Address.hpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. пре 5 година
Buf.cpp 547f39bb49 Fixes for Buf, unit test пре 6 година
Buf.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
C25519.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
C25519.hpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. пре 5 година
CMakeLists.txt 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
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. пре 5 година
Capability.hpp 0d05e4bcae Remove capability chain of custody stuff which was never used and was really overly complex and a potential source of security problems. пре 5 година
CertificateOfMembership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
CertificateOfMembership.hpp b5c01999b8 More tweaks to COM stuff. пре 5 година
CertificateOfOwnership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
CertificateOfOwnership.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Constants.hpp da5b11bf2d Rename version constants to something more canonical, and more cleanup. пре 5 година
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. пре 5 година
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. пре 5 година
Defragmenter.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Dictionary.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Dictionary.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. пре 6 година
Endpoint.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Endpoint.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Expect.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
FCV.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Fingerprint.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Identity.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Identity.hpp bedf63e257 Some minor security tightening stuff and AES fixes. пре 5 година
InetAddress.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
InetAddress.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
LZ4.hpp 274db26339 Fix accidentally removed file. пре 5 година
Locator.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Locator.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
MAC.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Map.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Membership.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Membership.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Meter.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
MulticastGroup.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Mutex.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Network.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Network.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
NetworkConfig.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
NetworkConfig.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. пре 5 година
NetworkController.hpp df346a6df6 Work in progress... clean up memcpy and create an annotation for that, lots more porting to new Buf/Protocol code, etc. пре 6 година
Node.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Node.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
OS.hpp 0aa78d0ecb Small fixes. пре 5 година
Path.cpp 0589964f99 Yet more cleanup, and add meters to paths. пре 6 година
Path.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Peer.cpp bedf63e257 Some minor security tightening stuff and AES fixes. пре 5 година
Peer.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. пре 5 година
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Poly1305.hpp f21ecb3762 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. пре 6 година
Protocol.cpp 87da45b3f5 Faster hash table, various other optimizations and simplification. пре 5 година
Protocol.hpp cbf174f96d Warning removal. пре 5 година
README.md c6ce6b46ce build fixes пре 6 година
Revocation.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Revocation.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
RuntimeEnvironment.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
SHA512.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
SHA512.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. пре 6 година
Salsa20.hpp 8a379ba0a1 The MIMC thing was neat but unfortunately is amenable to too much GPU acceleration. пре 5 година
ScopedPtr.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
SelfAwareness.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
SelfAwareness.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
SharedPtr.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Speck128.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Tag.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Tag.hpp 24e30a684b A bunch of little nit-picky header and name cleanup. пре 5 година
Tests.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Tests.h a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. пре 5 година
Topology.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Topology.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Trace.cpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Trace.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
TriviallyCopyable.hpp 1f2e94a51d Some optimization and raw memory access cleanup. пре 5 година
Utils.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
Utils.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. пре 5 година
VL1.cpp 87da45b3f5 Faster hash table, various other optimizations and simplification. пре 5 година
VL1.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. пре 5 година
VL2.cpp e236d6f743 More minor refactoring пре 6 година
VL2.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. пре 5 година

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.