You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Adam Ierymenko c9ee8612e4 Credential TTL (tags/capabilities) should be credential time max delta, since we could get pushed one that is newer. 10 years ago
..
Address.hpp Bunch more refactoring for an even more compact NetworkConfig representation, especially rules. 10 years ago
Array.hpp boring doc stuff 10 years ago
AtomicCounter.hpp Implement "weak pointer" behavior on Topology Path canonicalization hash table. 10 years ago
Buffer.hpp Changes to how new-style binary network configs are detected, and a new-style binary serialized meta-data representation. 10 years ago
C25519.cpp More little stuff in crypto code. 12 years ago
C25519.hpp boring doc stuff 10 years ago
Capability.cpp More cleanup and removal of DeferredPackets, will do the latter in a more elegant way. 10 years ago
Capability.hpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 10 years ago
CertificateOfMembership.cpp . 10 years ago
CertificateOfMembership.hpp Compute credential TTL et al. 10 years ago
Cluster.cpp Cluster build fix. 10 years ago
Cluster.hpp Tweak a few cluster params for higher perf / lower initial setup latency. 10 years ago
Constants.hpp Bunch more path refactoring. Peers no longer forget paths, but do not normally use expired paths. Expired paths might still be tried if nothing else is reachable. 10 years ago
Dictionary.hpp Sign Dictionary in doNETWORK_CONFIG_REQUEST. 10 years ago
Hashtable.hpp 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. 10 years ago
Identity.cpp Rules engine work: capability based security model with tags and capabilities, and some cleanup across other places. 10 years ago
Identity.hpp Sign Dictionary in doNETWORK_CONFIG_REQUEST. 10 years ago
IncomingPacket.cpp Use ECHO instead of HELLO where possible. 10 years ago
IncomingPacket.hpp Work in progress: Path canonicalization refactor. 10 years ago
InetAddress.cpp More controller work -- it builds! 10 years ago
InetAddress.hpp Bunch of rule JSON stuff. 10 years ago
MAC.hpp boring doc stuff 10 years ago
Membership.cpp Push more than one packet for credentials if we happen to have a whole lot. Should not happen often but might if a member has tons of tags. 10 years ago
Membership.hpp Credential TTL (tags/capabilities) should be credential time max delta, since we could get pushed one that is newer. 10 years ago
MulticastGroup.hpp Dead code removal. 10 years ago
Multicaster.cpp Tidy up a few minor protocol things, improve documentation in Packet.hpp. 10 years ago
Multicaster.hpp It builds... almost ready to test some rules engine stuff. 10 years ago
Mutex.hpp boring doc stuff 10 years ago
Network.cpp Tweaks to new Path code for dual-stack operation, and other fixes. 10 years ago
Network.hpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 10 years ago
NetworkConfig.cpp Credential TTL (tags/capabilities) should be credential time max delta, since we could get pushed one that is newer. 10 years ago
NetworkConfig.hpp Credential TTL (tags/capabilities) should be credential time max delta, since we could get pushed one that is newer. 10 years ago
NetworkController.hpp Encode and decode of tags and capabilities in NetworkConfig. 10 years ago
Node.cpp Bunch more path refactoring. Peers no longer forget paths, but do not normally use expired paths. Expired paths might still be tried if nothing else is reachable. 10 years ago
Node.hpp Push NETWORK_CONFIG_REFRESH on POSTs to /member/... in controller. 10 years ago
NonCopyable.hpp boring doc stuff 10 years ago
OutboundMulticast.cpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 10 years ago
OutboundMulticast.hpp Integrate Filter into OutboundMulticast properly. 10 years ago
Packet.cpp Stub out USER_MESSAGE. 10 years ago
Packet.hpp Think through and refine a few things in rules, especially edge case TEE and REDIRECT behavior and semantics. 10 years ago
Path.cpp Work in progress: Path canonicalization refactor. 10 years ago
Path.hpp Use ECHO instead of HELLO where possible. 10 years ago
Peer.cpp Use ECHO instead of HELLO where possible. 10 years ago
Peer.hpp Use ECHO instead of HELLO where possible. 10 years ago
Poly1305.cpp Only enable 128-bit Poly1305 on X86_64 right now. Has compilation issues on ARM, but the 64-bit version should be fine. 11 years ago
Poly1305.hpp boring doc stuff 10 years ago
README.md Docs and controller API version 10 years ago
RuntimeEnvironment.hpp More cleanup and removal of DeferredPackets, will do the latter in a more elegant way. 10 years ago
SHA512.cpp boring doc stuff 10 years ago
SHA512.hpp boring doc stuff 10 years ago
Salsa20.cpp Unroll Salsa20 fully for a little more speed (non-SSE now almost as fast as SSE) 11 years ago
Salsa20.hpp Add uint16_t key to Hashtable, and make Salsa20 zero its keyspace on destruction. 11 years ago
SelfAwareness.cpp Bunch more path refactoring. Peers no longer forget paths, but do not normally use expired paths. Expired paths might still be tried if nothing else is reachable. 10 years ago
SelfAwareness.hpp Bunch more path refactoring. Peers no longer forget paths, but do not normally use expired paths. Expired paths might still be tried if nothing else is reachable. 10 years ago
SharedPtr.hpp Implement "weak pointer" behavior on Topology Path canonicalization hash table. 10 years ago
Switch.cpp Bunch more path refactoring. Peers no longer forget paths, but do not normally use expired paths. Expired paths might still be tried if nothing else is reachable. 10 years ago
Switch.hpp More cleanup and removal of cruft due to obsolete network-specific relays (will be replaced with federation stuff). 10 years ago
Tag.cpp . 10 years ago
Tag.hpp Get rid of expiration in Capability and Tag and move this to NetworkConfig so it can be set network-wide and reset if needed. Also add NetworkConfig field for this and centralize checking of credential time validity. 10 years ago
Topology.cpp Bunch more path refactoring. Peers no longer forget paths, but do not normally use expired paths. Expired paths might still be tried if nothing else is reachable. 10 years ago
Topology.hpp Work in progress: Path canonicalization refactor. 10 years ago
Utils.cpp More tweaks to path behavior. 10 years ago
Utils.hpp Big refactor mostly builds. We now have a uniform backward compatible netconf. 10 years ago
World.hpp Rules engine work: capability based security model with tags and capabilities, and some cleanup across other places. 10 years ago

README.md

ZeroTier Virtual Switch 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.