Skip to main content

Module server

Module server 

Source
Expand description

The overlayd server engine.

OverlaydServer is a near 1:1 migration of the mechanics half of the agent’s OverlayManager: it owns the single cluster WireGuard OverlayTransport, the per-service Linux bridges (Linux) / HCN Internal network + endpoints (Windows), the per-node IP allocator, DNS config, and NAT traversal. The cluster-brain half (Raft, scheduler, service registry) stays in the main daemon, which drives this server over the IPC contract in zlayer_types::overlayd.

Every OverlaydRequest maps to a method here via OverlaydServer::handle.

Structs§

OverlaydServer
The overlay daemon engine.

Functions§

make_interface_name
Generate a Linux-safe interface name guaranteed to be <= 15 chars.
peer_spec_to_info
Convert a wire PeerSpec into a zlayer_overlay::PeerInfo.