aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/dummy/bind.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-11-02 21:58:04 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-11-02 21:58:04 +0100
commit027d3d24d97e80af8b46c82b9de6786aa126b5b9 (patch)
tree3defa4bca61c3a8e1107e74ad6fef9dab31636a9 /src/platform/dummy/bind.rs
parentAdd derived_session (diff)
downloadwireguard-rs-027d3d24d97e80af8b46c82b9de6786aa126b5b9.tar.xz
wireguard-rs-027d3d24d97e80af8b46c82b9de6786aa126b5b9.zip
Work on configuration interface
Diffstat (limited to '')
-rw-r--r--src/platform/dummy/bind.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/platform/dummy/bind.rs b/src/platform/dummy/bind.rs
index 3497656..2c30486 100644
--- a/src/platform/dummy/bind.rs
+++ b/src/platform/dummy/bind.rs
@@ -203,7 +203,15 @@ impl Bind for PairBind {
impl Owner for VoidOwner {
type Error = BindError;
- fn set_fwmark(&self, _value: Option<u32>) -> Option<Self::Error> {
+ fn set_fwmark(&mut self, _value: Option<u32>) -> Option<Self::Error> {
+ None
+ }
+
+ fn get_port(&self) -> u16 {
+ 0
+ }
+
+ fn get_fwmark(&self) -> Option<u32> {
None
}
}