github.com/cawidtu/notwireguard-go/device@v0.0.0-20230523131112-68e8e5ce9cdf/queueconstants_android.go (about)

     1  /* SPDX-License-Identifier: MIT
     2   *
     3   * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
     4   */
     5  
     6  package device
     7  
     8  /* Reduce memory consumption for Android */
     9  
    10  const (
    11  	QueueStagedSize            = 128
    12  	QueueOutboundSize          = 1024
    13  	QueueInboundSize           = 1024
    14  	QueueHandshakeSize         = 1024
    15  	MaxSegmentSize             = 2200
    16  	PreallocatedBuffersPerPool = 4096
    17  )