wireguard-go/conn
Jordan Whited fff53afca7 conn: use CmsgSpace() for ancillary data buf sizing
CmsgLen() does not account for data alignment.

Reviewed-by: Adrian Dewhurst <adrian@tailscale.com>
Signed-off-by: Jordan Whited <jordan@tailscale.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-16 17:45:41 +01:00
..
bindtest global: buff -> buf 2023-03-13 17:55:53 +01:00
winrio global: bump copyright year 2023-02-07 20:39:29 -03:00
bind_std_test.go global: buff -> buf 2023-03-13 17:55:53 +01:00
bind_std.go global: buff -> buf 2023-03-13 17:55:53 +01:00
bind_windows.go global: buff -> buf 2023-03-13 17:55:53 +01:00
boundif_android.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
conn_test.go global: buff -> buf 2023-03-13 17:55:53 +01:00
conn.go global: buff -> buf 2023-03-13 17:55:53 +01:00
controlfns_linux.go conn: set SO_{SND,RCV}BUF to 7MB on the Bind UDP socket 2023-03-10 14:52:20 +01:00
controlfns_unix.go conn: set SO_{SND,RCV}BUF to 7MB on the Bind UDP socket 2023-03-10 14:52:20 +01: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
controlfns.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
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
sticky_default.go conn, device, tun: implement vectorized I/O on Linux 2023-03-10 14:52:17 +01:00
sticky_linux_test.go conn: use right cmsghdr len types on 32-bit in sticky test 2023-03-10 16:19:18 +01:00
sticky_linux.go conn: use CmsgSpace() for ancillary data buf sizing 2023-03-16 17:45:41 +01:00