summaryrefslogtreecommitdiffstats
path: root/src/configuration/error.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-11-10 17:57:39 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-11-10 17:57:39 +0100
commit2ff044dda954ad2402309bd9022b33dd385bb3d7 (patch)
tree3030233c8958c96e292a4f3dd80a7622eb042c26 /src/configuration/error.rs
parentRemoval of secret key in the handshake module (diff)
downloadwireguard-rs-2ff044dda954ad2402309bd9022b33dd385bb3d7.tar.xz
wireguard-rs-2ff044dda954ad2402309bd9022b33dd385bb3d7.zip
Implemented UAPI "get" line-parser
Diffstat (limited to 'src/configuration/error.rs')
-rw-r--r--src/configuration/error.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configuration/error.rs b/src/configuration/error.rs
index 74e2144..be08c9e 100644
--- a/src/configuration/error.rs
+++ b/src/configuration/error.rs
@@ -6,6 +6,9 @@ pub enum ConfigError {
InvalidPortNumber,
InvalidFwmark,
InvalidKey,
+ InvalidSocketAddr,
+ InvalidKeepaliveInterval,
+ InvalidAllowedIp,
UnsupportedValue,
UnsupportedProtocolVersion,
}
@@ -20,6 +23,9 @@ impl ConfigError {
ConfigError::InvalidHexValue => 4,
ConfigError::InvalidPortNumber => 5,
ConfigError::InvalidFwmark => 6,
+ ConfigError::InvalidSocketAddr => 10,
+ ConfigError::InvalidKeepaliveInterval => 11,
+ ConfigError::InvalidAllowedIp => 12,
ConfigError::UnsupportedValue => 7,
ConfigError::InvalidKey => 8,
ConfigError::UnsupportedProtocolVersion => 9,