Skip to main content

Crate ts_dataplane

Crate ts_dataplane 

Source
Expand description

§ts_dataplane

The packet processing data plane.

The core of the data plane is synchronous and non-blocking, so that it can be wrapped in the user’s choice of sync/async runtimes.

Modules§

async_tokio
The packet processing dataplane, as a tokio task.

Structs§

DataPlane
Transforms packets to make tailscale happen.
EventResult
The result of processing an event.
InboundResult
The result of processing inbound packets.
OutboundResult
The result of processing outbound packets.

Enums§

CapturePath
The direction/path of a captured packet, mirroring Go Tailscale’s capture.Path. The numeric values are the on-wire path codes written into each pcap record’s Tailscale preamble.
Subsystem
A data plane subsystem that can be the subject of timer events.

Type Aliases§

CaptureHook
A debug packet-capture hook. When installed on a DataPlane, it is invoked with the path and the raw IP packet bytes for every plaintext packet crossing the datapath. It must be cheap and non-blocking — it runs inline on the single-threaded dataplane step, so a slow hook backs up the datapath. Wrapped in Arc so it is cheap to clone and Send + Sync for the actor that installs it.