From 3c11c0308e4e9fae76e1531f4f49a39f1ae24253 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 22 Feb 2021 18:47:41 +0100 Subject: conn: implement RIO for fast Windows UDP sockets Signed-off-by: Jason A. Donenfeld --- device/queueconstants_windows.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 device/queueconstants_windows.go (limited to 'device/queueconstants_windows.go') diff --git a/device/queueconstants_windows.go b/device/queueconstants_windows.go new file mode 100644 index 0000000..e330a6b --- /dev/null +++ b/device/queueconstants_windows.go @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved. + */ + +package device + +const ( + QueueStagedSize = 128 + QueueOutboundSize = 1024 + QueueInboundSize = 1024 + QueueHandshakeSize = 1024 + MaxSegmentSize = 2048 - 32 // largest possible UDP datagram + PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth +) -- cgit v1.2.3-59-g8ed1b