github.com/tailscale/wireguard-go@v0.0.20201119-0.20210522003738-46b531feb08a/device/queueconstants_default.go (about)

     1  // +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  )