aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/constants.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-13 22:26:12 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-10-13 22:26:12 +0200
commita08fd4002bfae92072f64f8d5e0084e6f248f139 (patch)
treea50315318549056627adb05bdd0a4f1a02f8541d /src/wireguard/router/constants.rs
parentPort timer.c from WireGuard (diff)
downloadwireguard-rs-a08fd4002bfae92072f64f8d5e0084e6f248f139.tar.xz
wireguard-rs-a08fd4002bfae92072f64f8d5e0084e6f248f139.zip
Work on Linux platform code
Diffstat (limited to 'src/wireguard/router/constants.rs')
-rw-r--r--src/wireguard/router/constants.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wireguard/router/constants.rs b/src/wireguard/router/constants.rs
new file mode 100644
index 0000000..0ca824a
--- /dev/null
+++ b/src/wireguard/router/constants.rs
@@ -0,0 +1,7 @@
+// WireGuard semantics constants
+
+pub const MAX_STAGED_PACKETS: usize = 128;
+
+// performance constants
+
+pub const WORKER_QUEUE_SIZE: usize = MAX_STAGED_PACKETS;