aboutsummaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-08-14 09:45:01 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-08-14 09:45:01 +0200
commitb7989eb19879c800cb84b51d767905d0a62bbd82 (patch)
tree3b6de661fee888dd4259aa37a2b50ffb898592d6 /src/state.rs
parent5ea0d66da472820c6ce02b1ded3601846a3ca756 (diff)
close the session if no lcp pings are received for 30s
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state.rs b/src/state.rs
index 7919255..b71824a 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -1,3 +1,5 @@
+use std::time::Instant;
+
use ppproperly::{AuthProto, MacAddr};
#[derive(Clone, Debug, Default, Eq, PartialEq)]
@@ -15,7 +17,7 @@ pub enum Ppp {
SyncAck(u8, u16, Option<AuthProto>, u32, usize),
SyncAcked(usize),
Auth(Option<AuthProto>, usize),
- Active,
+ Active(Instant),
Terminate(Vec<u8>, usize),
Terminate2(String),
Terminated,