wireguard-go-awg2-lx/device
Jordan Whited 7a66fbee4a
device: add priority message transmission around session establishment
Add SetPriorityMessageOnEstablishmentFunc, which registers a
PeerPriorityMessageFunc callback invoked when a peer's session keypair
is established or re-keyed for forward data transmission. The bytes it
returns are transmitted to the peer as a transport message.

The message is "priority" in two senses: it bypasses the staged packet
queue entirely, so it cannot be evicted by TUN-sourced packets, and it
is enqueued ahead of the keepalive/staged packets that follow keypair
establishment.

Updates tailscale/tailscale#20081

Signed-off-by: Jordan Whited <jordan@tailscale.com>
2026-08-04 19:18:01 +08:00
..
allowedips.go device: refactor container locking for lock-order clarity 2026-08-04 19:18:01 +08:00
channels.go device: convert runtime.SetFinalizer to AddCleanup (#71) 2026-08-04 19:18:01 +08:00
constants.go Apply Tailscale bind send headroom 2026-05-17 20:36:35 +08:00
cookie.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
device.go device: add priority message transmission around session establishment 2026-08-04 19:18:01 +08:00
devicestate_string.go device: remove deviceStateNew 2021-02-09 15:39:19 +01:00
indextable.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
ip.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
keypair.go Rename module 2026-05-17 20:09:28 +08:00
logger.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
mobilequirks.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
noise-helpers.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
noise-protocol.go device: fix some lock ordering violations, add a test for a deadlock we hit 2026-08-04 19:18:01 +08:00
noise-types.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
peer.go device: fix TOCTOU race during session state update (#77) 2026-08-04 19:18:01 +08:00
pools.go device: refactor container locking for lock-order clarity 2026-08-04 19:18:01 +08:00
queueconstants_android.go Rename module 2026-05-17 20:09:28 +08:00
queueconstants_default.go Rename module 2026-05-17 20:09:28 +08:00
queueconstants_ios.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
queueconstants_windows.go global: bump copyright notice 2025-05-05 15:05:35 +02:00
receive.go device: add priority message transmission around session establishment 2026-08-04 19:18:01 +08:00
send.go device: add priority message transmission around session establishment 2026-08-04 19:18:01 +08:00
sticky_default.go Rename module 2026-05-17 20:09:28 +08:00
sticky_linux.go Rename module 2026-05-17 20:09:28 +08:00
timers.go device: fix TOCTOU race during session state update (#77) 2026-08-04 19:18:01 +08:00
tun.go Rename module 2026-05-17 20:09:28 +08:00
uapi.go Rename module 2026-05-17 20:09:28 +08:00