summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vrrpv2.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vrrpv2.rs b/src/vrrpv2.rs
index 7ef30f3..8adf7f0 100644
--- a/src/vrrpv2.rs
+++ b/src/vrrpv2.rs
@@ -62,6 +62,12 @@ impl From<std::io::Error> for VRRPv2Error {
}
}
+impl From<std::io::Error> for VRRPv2Error {
+ fn from(_err: std::io::Error) -> VRRPv2Error {
+ VRRPv2Error::ParseError
+ }
+}
+
#[derive(Debug, PartialEq)]
pub enum VRRPv2AuthType {
VRRPv2AuthNoAuth = 0x00,