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 d637988ccf Fix chicken or egg problem in tags, and better filter debug instrumentation. 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 boring doc stuff 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 Add a debug log feature in the filter, which only works if enabled in Network.cpp. 10 years ago
CertificateOfMembership.cpp . 10 years ago
CertificateOfMembership.hpp Compute credential TTL et al. 10 years ago
Cluster.cpp Cleanup in numerous places, reduce network chattiness around MULTICAST_LIKE, and fix a "how was that working" latent bug causing some control traffic to take the scenic route. 10 years ago
Cluster.hpp Tweak a few cluster params for higher perf / lower initial setup latency. 10 years ago
Constants.hpp Obsolete "test network" removal. 10 years ago
Dictionary.hpp Sign Dictionary in doNETWORK_CONFIG_REQUEST. 10 years ago
Hashtable.hpp . 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 Fix a missing receive(). 10 years ago
IncomingPacket.hpp Put CONFIG_REFRESH back. 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 Fix chicken or egg problem in tags, and better filter debug instrumentation. 10 years ago
Membership.hpp Fix chicken or egg problem in tags, and better filter debug instrumentation. 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 Fix chicken or egg problem in tags, and better filter debug instrumentation. 10 years ago
Network.hpp It basically works... at least on current controllers. 10 years ago
NetworkConfig.cpp Cleanup. 10 years ago
NetworkConfig.hpp Instantaneous blacklisting and credential revocation. 10 years ago
NetworkController.hpp Encode and decode of tags and capabilities in NetworkConfig. 10 years ago
Node.cpp Push NETWORK_CONFIG_REFRESH on POSTs to /member/... in controller. 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 It basically works... at least on current controllers. 10 years ago
OutboundMulticast.hpp Integrate Filter into OutboundMulticast properly. 10 years ago
Packet.cpp Stub out USER_MESSAGE. 10 years ago
Packet.hpp Add length limit to TEE and REDIRECT, and completely factor out old C json-parser to eliminate a dependency. 10 years ago
Path.cpp Kill some old debug code. 10 years ago
Path.hpp Dead code removal, and get rid of reliable() because we will no longer make that distinction. 10 years ago
Peer.cpp Dead code removal, and get rid of reliable() because we will no longer make that distinction. 10 years ago
Peer.hpp Harden PUSH_DIRECT_PATHS and simplify things by only doing it on receive when hops>0 and trust has been established. 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 Refactor and redesign symmetric NAT predictor. This is cleaner. 10 years ago
SelfAwareness.hpp Minor bug fix and some instrumentation stuff for testing. 10 years ago
SharedPtr.hpp boring doc stuff 10 years ago
Switch.cpp Harden PUSH_DIRECT_PATHS and simplify things by only doing it on receive when hops>0 and trust has been established. 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 It builds... almost ready to test some rules engine stuff. 10 years ago
Topology.hpp . 10 years ago
Utils.cpp Big refactor mostly builds. We now have a uniform backward compatible netconf. 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.