Adam Ierymenko fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
..
AES.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
AES.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
Address.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Buf.cpp 547f39bb49 Fixes for Buf, unit test 6 ani în urmă
Buf.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
C25519.cpp 1f85b0402e Just use unordered_map, and some other cleanup. 5 ani în urmă
C25519.hpp 1f85b0402e Just use unordered_map, and some other cleanup. 5 ani în urmă
CMakeLists.txt 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
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 ani în urmă
Capability.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
CertificateOfMembership.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
CertificateOfMembership.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
CertificateOfOwnership.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
CertificateOfOwnership.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Constants.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
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 ani în urmă
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 ani în urmă
Defragmenter.hpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
Dictionary.cpp b3314cd34f Small build fixes. 5 ani în urmă
Dictionary.hpp b3314cd34f Small build fixes. 5 ani în urmă
ECC384.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 ani în urmă
ECC384.hpp eef70e198b Version 2.x notice updates and other boring stuff. 6 ani în urmă
Endpoint.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
Endpoint.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Expect.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
FCV.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Fingerprint.hpp 7fd78a87d1 Use static_assert more. 5 ani în urmă
Identity.cpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Identity.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
InetAddress.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
InetAddress.hpp 7fd78a87d1 Use static_assert more. 5 ani în urmă
LZ4.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
LZ4.hpp 274db26339 Fix accidentally removed file. 5 ani în urmă
Locator.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
Locator.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
MAC.hpp 3d6d9c5808 LINT cleanliness. 5 ani în urmă
Map.hpp 1f85b0402e Just use unordered_map, and some other cleanup. 5 ani în urmă
Membership.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Membership.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Meter.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
MulticastGroup.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Mutex.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Network.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
Network.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
NetworkConfig.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
NetworkConfig.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
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 ani în urmă
Node.cpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Node.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
OS.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Path.cpp 0589964f99 Yet more cleanup, and add meters to paths. 6 ani în urmă
Path.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Peer.cpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Peer.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Poly1305.cpp 24e30a684b A bunch of little nit-picky header and name cleanup. 5 ani în urmă
Poly1305.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Protocol.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Protocol.hpp 7fd78a87d1 Use static_assert more. 5 ani în urmă
README.md c6ce6b46ce build fixes 6 ani în urmă
Revocation.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
Revocation.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
RuntimeEnvironment.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
SHA512.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
SHA512.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Salsa20.cpp 08e06f9b8f More refactoring and a bunch of AES goodness. 6 ani în urmă
Salsa20.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
ScopedPtr.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
SelfAwareness.cpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
SelfAwareness.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
SharedPtr.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Speck128.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Tag.cpp 1f2e94a51d Some optimization and raw memory access cleanup. 5 ani în urmă
Tag.hpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
Tests.cpp 7fd78a87d1 Use static_assert more. 5 ani în urmă
Tests.h a8db4a8d2d Minor future proofing and cleanup in CertificateOfMembership, improve comments in a few places. 5 ani în urmă
Topology.cpp 9428fc53f6 A bunch of cleanup, bug fix, just use unordered_map, etc. 5 ani în urmă
Topology.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Trace.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Trace.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
TriviallyCopyable.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Utils.cpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
Utils.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă
VL1.cpp fbf4ae823b Clean up timing stuff in Peer and make it more rational, implement some more P2P stuff, rename some methods, cleanup cleanup cleanup. 5 ani în urmă
VL1.hpp 87da45b3f5 Faster hash table, various other optimizations and simplification. 5 ani în urmă
VL2.cpp e236d6f743 More minor refactoring 6 ani în urmă
VL2.hpp b9f60fc3c2 A bunch of warning removal and LINT cleanliness. 5 ani în urmă

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.