Versions in this module Expand all Collapse all v0 v0.5.0 Apr 18, 2026 Changes in this version + var ErrNotSupported = errors.New("snix/platform: backend not supported on this host") + type Backend interface + Close func() error + Inject func(p []byte, dir Direction) error + Open func(ctx context.Context, scope Scope) error + Packets func() <-chan Packet + type Direction uint8 + const DirInbound + const DirOutbound + type Packet struct + Dir Direction + Raw []byte + Verdict func(VerdictKind) + type Scope struct + LocalIP netip.Addr + RemoteIP netip.Addr + RemotePort uint16 + type VerdictKind uint8 + const Accept + const AcceptModified + const Drop