aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/tests.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-07 18:38:19 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-09-07 18:38:19 +0200
commit7b61ee4c2db87e195f5291fb1a3927648d38a2a4 (patch)
tree410c0609c3f4d1afbd0d87791b9156a538f59398 /src/router/tests.rs
parentAdded outbound benchmark (diff)
downloadwireguard-rs-7b61ee4c2db87e195f5291fb1a3927648d38a2a4.tar.xz
wireguard-rs-7b61ee4c2db87e195f5291fb1a3927648d38a2a4.zip
Write inbound packets to TUN device
Diffstat (limited to '')
-rw-r--r--src/router/tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/router/tests.rs b/src/router/tests.rs
index 5463532..7fe2b7a 100644
--- a/src/router/tests.rs
+++ b/src/router/tests.rs
@@ -156,6 +156,8 @@ mod tests {
#[bench]
fn bench_outbound(b: &mut Bencher) {
+ init();
+
// type for tracking number of packets
type Opaque = Arc<AtomicU64>;