github.com/koomox/wireguard-go@v0.0.0-20230722134753-17a50b2f22a3/device/queueconstants_android.go (about)

     1  /* SPDX-License-Identifier: MIT
     2   *
     3   * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
     4   */
     5  
     6  package device
     7  
     8  import "github.com/koomox/wireguard-go/conn"
     9  
    10  /* Reduce memory consumption for Android */
    11  
    12  const (
    13  	QueueStagedSize            = conn.IdealBatchSize
    14  	QueueOutboundSize          = 1024
    15  	QueueInboundSize           = 1024
    16  	QueueHandshakeSize         = 1024
    17  	MaxSegmentSize             = 2200
    18  	PreallocatedBuffersPerPool = 4096
    19  )