Adam Ierymenko bfa4bd2584 Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. hace 2 meses
..
AES.cpp 9aff094b6f node/ -> MPL hace 2 meses
AES.hpp 9aff094b6f node/ -> MPL hace 2 meses
AES_aesni.cpp 9aff094b6f node/ -> MPL hace 2 meses
AES_armcrypto.cpp 9aff094b6f node/ -> MPL hace 2 meses
Address.hpp 9aff094b6f node/ -> MPL hace 2 meses
AtomicCounter.hpp 9aff094b6f node/ -> MPL hace 2 meses
Bond.cpp 9aff094b6f node/ -> MPL hace 2 meses
Bond.hpp 9aff094b6f node/ -> MPL hace 2 meses
Buffer.hpp 9aff094b6f node/ -> MPL hace 2 meses
Capability.cpp 9aff094b6f node/ -> MPL hace 2 meses
Capability.hpp 9aff094b6f node/ -> MPL hace 2 meses
CertificateOfMembership.cpp 9aff094b6f node/ -> MPL hace 2 meses
CertificateOfMembership.hpp 9aff094b6f node/ -> MPL hace 2 meses
CertificateOfOwnership.cpp 9aff094b6f node/ -> MPL hace 2 meses
CertificateOfOwnership.hpp 9aff094b6f node/ -> MPL hace 2 meses
Constants.hpp 9aff094b6f node/ -> MPL hace 2 meses
Credential.hpp 9aff094b6f node/ -> MPL hace 2 meses
DNS.hpp 9aff094b6f node/ -> MPL hace 2 meses
Dictionary.hpp 9aff094b6f node/ -> MPL hace 2 meses
ECC.cpp 342fa9d33f clang-format this branch hace 3 meses
ECC.hpp 9aff094b6f node/ -> MPL hace 2 meses
Hashtable.hpp 9aff094b6f node/ -> MPL hace 2 meses
Identity.cpp 9aff094b6f node/ -> MPL hace 2 meses
Identity.hpp 9aff094b6f node/ -> MPL hace 2 meses
IncomingPacket.cpp 9aff094b6f node/ -> MPL hace 2 meses
IncomingPacket.hpp 9aff094b6f node/ -> MPL hace 2 meses
InetAddress.cpp 9aff094b6f node/ -> MPL hace 2 meses
InetAddress.hpp 9aff094b6f node/ -> MPL hace 2 meses
MAC.hpp 9aff094b6f node/ -> MPL hace 2 meses
Membership.cpp 9aff094b6f node/ -> MPL hace 2 meses
Membership.hpp 9aff094b6f node/ -> MPL hace 2 meses
Metrics.cpp 9aff094b6f node/ -> MPL hace 2 meses
Metrics.hpp 9aff094b6f node/ -> MPL hace 2 meses
MulticastGroup.hpp 9aff094b6f node/ -> MPL hace 2 meses
Multicaster.cpp 6e6fc9a704 Add conditional compilation of controller. hace 2 meses
Multicaster.hpp 9aff094b6f node/ -> MPL hace 2 meses
Mutex.hpp 9aff094b6f node/ -> MPL hace 2 meses
Network.cpp 1e62d69762 Do not compress frames -- also unrelated to bug. hace 2 meses
Network.hpp 9aff094b6f node/ -> MPL hace 2 meses
NetworkConfig.cpp 9aff094b6f node/ -> MPL hace 2 meses
NetworkConfig.hpp bfa4bd2584 Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. hace 2 meses
NetworkController.hpp 9aff094b6f node/ -> MPL hace 2 meses
Node.cpp ab208bb8f9 Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. hace 2 meses
Node.hpp ab208bb8f9 Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. hace 2 meses
OutboundMulticast.cpp 9aff094b6f node/ -> MPL hace 2 meses
OutboundMulticast.hpp 9aff094b6f node/ -> MPL hace 2 meses
Packet.cpp 9aff094b6f node/ -> MPL hace 2 meses
Packet.hpp 9aff094b6f node/ -> MPL hace 2 meses
PacketMultiplexer.cpp 9aff094b6f node/ -> MPL hace 2 meses
PacketMultiplexer.hpp 9aff094b6f node/ -> MPL hace 2 meses
Path.cpp 9aff094b6f node/ -> MPL hace 2 meses
Path.hpp 9aff094b6f node/ -> MPL hace 2 meses
Peer.cpp ab208bb8f9 Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. hace 2 meses
Peer.hpp 9aff094b6f node/ -> MPL hace 2 meses
Poly1305.cpp ba2a4a605c clang-format hace 3 meses
Poly1305.hpp 9aff094b6f node/ -> MPL hace 2 meses
README.md 8a2ff0b31e Actual documentation. hace 8 años
Revocation.cpp 9aff094b6f node/ -> MPL hace 2 meses
Revocation.hpp 9aff094b6f node/ -> MPL hace 2 meses
RingBuffer.hpp 9aff094b6f node/ -> MPL hace 2 meses
RuntimeEnvironment.hpp 9aff094b6f node/ -> MPL hace 2 meses
SHA512.cpp ba2a4a605c clang-format hace 3 meses
SHA512.hpp 9aff094b6f node/ -> MPL hace 2 meses
Salsa20.cpp ba2a4a605c clang-format hace 3 meses
Salsa20.hpp ba2a4a605c clang-format hace 3 meses
SelfAwareness.cpp 9aff094b6f node/ -> MPL hace 2 meses
SelfAwareness.hpp 9aff094b6f node/ -> MPL hace 2 meses
SharedPtr.hpp 9aff094b6f node/ -> MPL hace 2 meses
Switch.cpp bed6557a6d Re-enable relaying checks, also not bug related but put back after we decided to punt removing moons. hace 2 meses
Switch.hpp 9aff094b6f node/ -> MPL hace 2 meses
Tag.cpp 9aff094b6f node/ -> MPL hace 2 meses
Tag.hpp 9aff094b6f node/ -> MPL hace 2 meses
Topology.cpp 1e62d69762 Do not compress frames -- also unrelated to bug. hace 2 meses
Topology.hpp 9aff094b6f node/ -> MPL hace 2 meses
Trace.cpp 9aff094b6f node/ -> MPL hace 2 meses
Trace.hpp 9aff094b6f node/ -> MPL hace 2 meses
Utils.cpp 9aff094b6f node/ -> MPL hace 2 meses
Utils.hpp 9aff094b6f node/ -> MPL hace 2 meses
World.hpp 9aff094b6f node/ -> MPL hace 2 meses

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.