aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge/src/queueconstants.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-10-02 18:12:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-02 19:15:03 +0200
commitcd86ba92eca722812ee592001e9b566bf50183b6 (patch)
tree5e6f1b3b674b16f60bb0799fc87e031c432aa5e6 /wireguard-go-bridge/src/queueconstants.go
parentDon't crash on failure to obtain version info and inform user on what is needed to be able to retrieve version info from the Go client. (diff)
downloadwireguard-apple-cd86ba92eca722812ee592001e9b566bf50183b6.tar.xz
wireguard-apple-cd86ba92eca722812ee592001e9b566bf50183b6.zip
Rewrite bridge build system
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wireguard-go-bridge/src/queueconstants.go')
-rw-r--r--wireguard-go-bridge/src/queueconstants.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/wireguard-go-bridge/src/queueconstants.go b/wireguard-go-bridge/src/queueconstants.go
new file mode 100644
index 0000000..410af14
--- /dev/null
+++ b/wireguard-go-bridge/src/queueconstants.go
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Copyright (C) 2017-2018 WireGuard LLC. All Rights Reserved.
+ */
+
+package main
+
+/* Fit within memory limits for iOS */
+
+const (
+ QueueOutboundSize = 1024
+ QueueInboundSize = 1024
+ QueueHandshakeSize = 1024
+ MaxSegmentSize = 1700
+ PreallocatedBuffersPerPool = 1024
+)