diff --git a/device/queueconstants_windows.go b/device/queueconstants_windows.go index 1eee32b..e085f3b 100644 --- a/device/queueconstants_windows.go +++ b/device/queueconstants_windows.go @@ -10,6 +10,6 @@ const ( QueueOutboundSize = 1024 QueueInboundSize = 1024 QueueHandshakeSize = 1024 - MaxSegmentSize = 2048 - 32 // largest possible UDP datagram - PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth + MaxSegmentSize = 65535 // Match with WINTUN_MAX_IP_PACKET_SIZE macro definition + PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth )