diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-10-13 22:26:12 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-10-13 22:26:12 +0200 |
commit | a08fd4002bfae92072f64f8d5e0084e6f248f139 (patch) | |
tree | a50315318549056627adb05bdd0a4f1a02f8541d /src/wireguard/router/constants.rs | |
parent | Port timer.c from WireGuard (diff) | |
download | wireguard-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.rs | 7 |
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; |