wireguard-go-awg2-lx/conn
Jordan Whited 24483d7a00 conn,device: always perform PeerAwareEndpoint check
It was previously suppressed if roaming was disabled for the peer.
Tailscale always disables roaming as we explicitly configure
conn.Endpoint's for all peers.

This commit also modifies PeerAwareEndpoint usage such that wireguard-go
never uses/sets it as a Peer Endpoint value. In theory we (Tailscale)
always disable roaming, so we should always return early from
SetEndpointFromPacket(), but this acts as an extra footgun guard and
improves clarity around intended usage.

Updates tailscale/corp#27502
Updates tailscale/corp#29422
Updates tailscale/corp#30042

Signed-off-by: Jordan Whited <jordan@tailscale.com>
2025-07-01 15:37:56 -07:00
..
bindtest conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
winrio global: bump copyright year 2023-02-07 20:39:29 -03:00
bind_std.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
bind_std_test.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
bind_windows.go conn,device: provide 8 free bytes at packet head to conn.Bind.Send() 2025-05-30 14:02:35 -07:00
boundif_android.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
conn.go conn,device: always perform PeerAwareEndpoint check 2025-07-01 15:37:56 -07:00
conn_test.go global: buff -> buf 2023-03-13 17:55:53 +01:00
control_default.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
control_linux.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
control_linux_test.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
controlfns.go conn: set SO_{SND,RCV}BUF to 7MB on the Bind UDP socket 2023-03-10 14:52:20 +01:00
controlfns_linux.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
controlfns_unix.go adjust build tags for tamago 2023-09-29 15:32:57 -07:00
controlfns_windows.go conn: set SO_{SND,RCV}BUF to 7MB on the Bind UDP socket 2023-03-10 14:52:20 +01:00
default.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
erraddrinuse.go all: adjust build tags for plan9 2023-09-29 15:32:57 -07:00
errors_default.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
errors_linux.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
features_default.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
features_linux.go conn, device: use UDP GSO and GRO on Linux 2023-09-29 15:32:54 -07:00
mark_default.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
mark_unix.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00