aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/mod.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/mod.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/mod.rs')
-rw-r--r--src/wireguard/router/mod.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/wireguard/router/mod.rs b/src/wireguard/router/mod.rs
new file mode 100644
index 0000000..7a29cd9
--- /dev/null
+++ b/src/wireguard/router/mod.rs
@@ -0,0 +1,22 @@
+mod anti_replay;
+mod constants;
+mod device;
+mod ip;
+mod messages;
+mod peer;
+mod types;
+mod workers;
+
+#[cfg(test)]
+mod tests;
+
+use messages::TransportHeader;
+use std::mem;
+
+pub const SIZE_MESSAGE_PREFIX: usize = mem::size_of::<TransportHeader>();
+pub const CAPACITY_MESSAGE_POSTFIX: usize = 16;
+
+pub use messages::TYPE_TRANSPORT;
+pub use device::Device;
+pub use peer::Peer;
+pub use types::Callbacks;