Files
wireguard-go/device/queueconstants_windows.go
pzoli e851523ebd Fix buffer out of range crash
The wintun driver can provide larger packages
than the buffer size of the reader part.
2023-05-24 16:53:23 +02:00

16 lines
445 B
Go

/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package device
const (
QueueStagedSize = 128
QueueOutboundSize = 1024
QueueInboundSize = 1024
QueueHandshakeSize = 1024
MaxSegmentSize = 65535 // Match with WINTUN_MAX_IP_PACKET_SIZE macro definition
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
)