# Functions
New creates a new capture sink.
# Constants
FromLocal indicates the packet was logged as it traversed the FromLocal path: i.e.: A packet from the local system into the TUN.
FromPeer indicates the packet was logged upon reception from a remote peer.
PathDisco indicates the packet is information about a disco frame.
SynthesizedToLocal indicates the packet was generated from within tailscaled, and is being routed to the local machine's network stack.
SynthesizedToPeer indicates the packet was generated from within tailscaled, and is being routed to a remote Wireguard peer.
# Variables
go:embed ts-dissector.lua.
# Structs
Type Sink handles callbacks with packets to be logged, formatting them into a pcap stream which is mirrored to all registered outputs.