aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/config.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/config.rs
parentPort timer.c from WireGuard (diff)
downloadwireguard-rs-a08fd4002bfae92072f64f8d5e0084e6f248f139.tar.xz
wireguard-rs-a08fd4002bfae92072f64f8d5e0084e6f248f139.zip
Work on Linux platform code
Diffstat (limited to '')
-rw-r--r--src/wireguard/config.rs (renamed from src/config.rs)12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/config.rs b/src/wireguard/config.rs
index 3376dcc..0f2953d 100644
--- a/src/config.rs
+++ b/src/wireguard/config.rs
@@ -1,12 +1,10 @@
-use std::error::Error;
use std::net::{IpAddr, SocketAddr};
use x25519_dalek::{PublicKey, StaticSecret};
-use crate::wireguard::Wireguard;
-use crate::types::tun::Tun;
-use crate::types::bind::Bind;
+use super::wireguard::Wireguard;
+use super::types::bind::Bind;
+use super::types::tun::Tun;
-///
/// The goal of the configuration interface is, among others,
/// to hide the IO implementations (over which the WG device is generic),
/// from the configuration and UAPI code.
@@ -180,5 +178,9 @@ impl <T : Tun, B : Bind>Configuration for Wireguard<T, B> {
fn set_listen_port(&self, port : u16) -> Option<ConfigError> {
None
}
+
+ fn set_fwmark(&self, mark: Option<u32>) -> Option<ConfigError> {
+ None
+ }
} \ No newline at end of file