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 56febbf2ba . 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
BinarySemaphore.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 . 10 years ago
Capability.hpp More work on tags and capabilities. 10 years ago
CertificateOfMembership.cpp . 10 years ago
CertificateOfMembership.hpp More work on tags and capabilities. 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 ... 10 years ago
DeferredPackets.cpp Refactor incoming packet (rxQueue/fragmentQueue) to eliminate variable length queues and merge queues. This is both faster and saves memory. 10 years ago
DeferredPackets.hpp Refactor incoming packet (rxQueue/fragmentQueue) to eliminate variable length queues and merge queues. This is both faster and saves memory. 10 years ago
Dictionary.hpp Fix silly one-liner bug... retag time. 10 years ago
Filter.cpp Bunch of work on pushing and replication of tags and capabilities, and protocol cleanup. 10 years ago
Filter.hpp Bunch of work on pushing and replication of tags and capabilities, and protocol cleanup. 10 years ago
Hashtable.hpp boring doc stuff 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 Rules engine work: capability based security model with tags and capabilities, and some cleanup across other places. 10 years ago
IncomingPacket.cpp . 10 years ago
IncomingPacket.hpp Bunch of work on pushing and replication of tags and capabilities, and protocol cleanup. 10 years ago
InetAddress.cpp Add 6plane assignment support to network controller, and cleanup. 10 years ago
InetAddress.hpp Add 6plane assignment support to network controller, and cleanup. 10 years ago
LockingPtr.hpp More work on tags and capabilities. 10 years ago
MAC.hpp boring doc stuff 10 years ago
Membership.cpp . 10 years ago
Membership.hpp . 10 years ago
MulticastGroup.hpp boring doc stuff 10 years ago
Multicaster.cpp Fix getPeer(self) bug if I am the controller. 10 years ago
Multicaster.hpp boring doc stuff 10 years ago
Mutex.hpp boring doc stuff 10 years ago
Network.cpp . 10 years ago
Network.hpp Big refactor mostly builds. We now have a uniform backward compatible netconf. 10 years ago
NetworkConfig.cpp Kill network preferred relays -- this feature is gone (and was seldom used anyway) in favor of federation. 10 years ago
NetworkConfig.hpp ... 10 years ago
NetworkController.hpp Make Dictionary templatable so it can be used where we want a higher capacity. 10 years ago
Node.cpp Kill network preferred relays -- this feature is gone (and was seldom used anyway) in favor of federation. 10 years ago
Node.hpp Trusted path support, and version bump to 1.1.9 10 years ago
NonCopyable.hpp boring doc stuff 10 years ago
OutboundMulticast.cpp boring doc stuff 10 years ago
OutboundMulticast.hpp boring doc stuff 10 years ago
Packet.cpp Bunch of work on pushing and replication of tags and capabilities, and protocol cleanup. 10 years ago
Packet.hpp ... 10 years ago
Path.cpp Kill some old debug code. 10 years ago
Path.hpp IPv6 links are unfortunately not "reliable." Many IPv6 gateways, while not 10 years ago
Peer.cpp . 10 years ago
Peer.hpp More work on tags and capabilities. 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 boring doc stuff 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 Reduce symmetric prediction fuzz just a bit. 10 years ago
SelfAwareness.hpp Reduce direct ping delay back to 1m and make SelfAwareness aware of local received-on address to eliminate false symmetric classification. 10 years ago
SharedPtr.hpp boring doc stuff 10 years ago
Switch.cpp Kill network preferred relays -- this feature is gone (and was seldom used anyway) in favor of federation. 10 years ago
Switch.hpp Tweak new RX queue algorithm to "expire" old entries to prevent always needing to traverse the whole queue array. 10 years ago
Tag.cpp . 10 years ago
Tag.hpp More work on tags and capabilities. 10 years ago
Topology.cpp More work on tags and capabilities. 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.