github.com/liloew/wireguard-go@v0.0.0-20220224014633-9cd745e6f114/device/queueconstants_default.go (about)

     1  //go:build !android && !ios && !windows
     2  
     3  /* SPDX-License-Identifier: MIT
     4   *
     5   * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
     6   */
     7  
     8  package device
     9  
    10  const (
    11  	QueueStagedSize            = 128
    12  	QueueOutboundSize          = 1024
    13  	QueueInboundSize           = 1024
    14  	QueueHandshakeSize         = 1024
    15  	MaxSegmentSize             = (1 << 16) - 1 // largest possible UDP datagram
    16  	PreallocatedBuffersPerPool = 0             // Disable and allow for infinite memory growth
    17  )