Adam Ierymenko d8f5cfdee4 Windows profile build target (CPU profiling), and a little bit of optimization revealed by such. пре 8 година
..
Address.hpp 31db768e4d A bit of code cleanup. пре 9 година
Array.hpp 4e4fd51117 boring doc stuff пре 10 година
AtomicCounter.hpp 4931e44998 Implement "weak pointer" behavior on Topology Path canonicalization hash table. пре 9 година
Buffer.hpp 2bf9145ae6 Outgoing side of packet counter for link quality reporting. Also some cleanup and a cluster mode build fix. пре 9 година
C25519.cpp 38433e85bf More little stuff in crypto code. пре 11 година
C25519.hpp 4e4fd51117 boring doc stuff пре 10 година
Capability.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Capability.hpp eddbc7e757 Logic simplification, cleanup, and memory use improvements in Membership. Also fix an issue that may cause network instability in some cases. пре 8 година
CertificateOfMembership.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
CertificateOfMembership.hpp eddbc7e757 Logic simplification, cleanup, and memory use improvements in Membership. Also fix an issue that may cause network instability in some cases. пре 8 година
CertificateOfOwnership.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
CertificateOfOwnership.hpp eddbc7e757 Logic simplification, cleanup, and memory use improvements in Membership. Also fix an issue that may cause network instability in some cases. пре 8 година
CertificateOfRepresentation.hpp eddbc7e757 Logic simplification, cleanup, and memory use improvements in Membership. Also fix an issue that may cause network instability in some cases. пре 8 година
Cluster.cpp 91c9f4cb20 Fix TRACE and CLUSTER builds. пре 8 година
Cluster.hpp 29ec7bf3a2 Add more specific check in source==self case instead of dumping it. пре 9 година
Constants.hpp 139c4b5633 Significant simplification to path logic. пре 8 година
Credential.hpp 8a62ba07e5 Membership cleanup work in progress. пре 8 година
Dictionary.hpp c6a39ed927 Fixes for possible ARM issues, cleanup, fix for spurious meaningless exceptions on NETWORK_CONFIG_REQUEST пре 8 година
Hashtable.hpp 8a2e8bd585 Rework how paths are set as remote cluster preferred. The code is now clearer and cluster preference indications are now very sticky as they should be. пре 9 година
Identity.cpp 43182f8f57 Docs, code cleanup, and protect the extra new fields of HELLO with encryption as a precaution. пре 9 година
Identity.hpp 7036831203 Sign Dictionary in doNETWORK_CONFIG_REQUEST. пре 9 година
IncomingPacket.cpp f1c0563c40 Fix for cluster handoff. пре 8 година
IncomingPacket.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
InetAddress.cpp 6a50291aa2 Fix the case for InetAddress::containsAddress for IPv6 route of :: пре 9 година
InetAddress.hpp 25f9c294dc Small bug fix and warning removal. пре 9 година
MAC.hpp 4e4fd51117 boring doc stuff пре 10 година
Membership.cpp ba5d0cc2f9 Silence some TRACE noise. пре 8 година
Membership.hpp 5ad120208f Small fix, should filter by temporal validity. пре 8 година
MulticastGroup.hpp dbf3e6c3c9 Dead code removal. пре 9 година
Multicaster.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Multicaster.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Mutex.hpp 4e4fd51117 boring doc stuff пре 10 година
Network.cpp 88a4a3b1ba Pass tptr on leave. пре 8 година
Network.hpp 88a4a3b1ba Pass tptr on leave. пре 8 година
NetworkConfig.cpp 10185e92fa Certificate of ownership -- used to secure against IP address spoofing, especially for IPv4 and regular IPv6. пре 9 година
NetworkConfig.hpp 10185e92fa Certificate of ownership -- used to secure against IP address spoofing, especially for IPv4 and regular IPv6. пре 9 година
NetworkController.hpp 5e6a4e5f5e Send revocations automatically on deauth for instant kill, also fix some issues with the RP. пре 9 година
Node.cpp 139c4b5633 Significant simplification to path logic. пре 8 година
Node.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
NonCopyable.hpp 4e4fd51117 boring doc stuff пре 10 година
OutboundMulticast.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
OutboundMulticast.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Packet.cpp 78ef2c5f16 Windows build fixes, app about text revisions. пре 8 година
Packet.hpp e10325e133 GitHub issue #461 -- plus a bit of cleanup and optimization пре 8 година
Path.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Path.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Peer.cpp 95e5345cc3 Cluster build fix. пре 8 година
Peer.hpp 95e5345cc3 Cluster build fix. пре 8 година
Poly1305.cpp d8f5cfdee4 Windows profile build target (CPU profiling), and a little bit of optimization revealed by such. пре 8 година
Poly1305.hpp 4e4fd51117 boring doc stuff пре 10 година
README.md 8a2ff0b31e Actual documentation. пре 9 година
Revocation.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Revocation.hpp eddbc7e757 Logic simplification, cleanup, and memory use improvements in Membership. Also fix an issue that may cause network instability in some cases. пре 8 година
RuntimeEnvironment.hpp 98152d974a More cleanup and removal of DeferredPackets, will do the latter in a more elegant way. пре 9 година
SHA512.cpp 4e4fd51117 boring doc stuff пре 10 година
SHA512.hpp 4e4fd51117 boring doc stuff пре 10 година
Salsa20.cpp 43182f8f57 Docs, code cleanup, and protect the extra new fields of HELLO with encryption as a precaution. пре 9 година
Salsa20.hpp 43182f8f57 Docs, code cleanup, and protect the extra new fields of HELLO with encryption as a precaution. пре 9 година
SelfAwareness.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
SelfAwareness.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
SharedPtr.hpp 4931e44998 Implement "weak pointer" behavior on Topology Path canonicalization hash table. пре 9 година
Switch.cpp 91c9f4cb20 Fix TRACE and CLUSTER builds. пре 8 година
Switch.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Tag.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Tag.hpp eddbc7e757 Logic simplification, cleanup, and memory use improvements in Membership. Also fix an issue that may cause network instability in some cases. пре 8 година
Topology.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. пре 8 година
Topology.hpp 139c4b5633 Significant simplification to path logic. пре 8 година
Utils.cpp 42f28bce52 Cleanup and make moons (federated roots) a little easier to deal with. пре 9 година
Utils.hpp 1d39be61b2 ZeroTier now has link quality measurement. We are not using this yet but decided to put it in to prep for future QoS support and SD-WAN stuff. пре 9 година
World.hpp 4b11566505 Integrate moon concept into http config bus, and clean up that code quite a bit. пре 9 година

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.
  • 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.