Cleanup / temp buffers for various things

This commit is contained in:
jdl
2026-06-12 14:16:38 +02:00
parent 6856727985
commit 4d2aa5c8c7
10 changed files with 30 additions and 17 deletions

View File

@@ -21,6 +21,8 @@ type WGDevice interface {
// ControlConn sends pings to peers over the VPN control port.
// Reading is handled separately via run, which feeds the App's pingCh.
// buf is a caller-provided scratch buffer (at least control.Size bytes) used to
// marshal the ping; the caller reuses one across sends.
type ControlConn interface {
SendPing(dst netip.AddrPort, ping control.Ping) error
SendPing(dst netip.AddrPort, ping control.Ping, buf []byte) error
}