diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pppoe.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pppoe.rs b/src/pppoe.rs index a617cd1..bd1eae0 100644 --- a/src/pppoe.rs +++ b/src/pppoe.rs @@ -189,6 +189,9 @@ impl PppoeClient { | PppoeClientState::InitiationSent | PppoeClientState::Active => {} // illegal PppoeClientState::RequestSent => { + self.restart_timer.reset(); + self.restart_counter = -1; + self.output_tx .send(PppoePacket { ty: PppoeType::Padi, @@ -250,6 +253,7 @@ impl PppoeClient { .expect("upper status channel is closed"); self.restart_timer.reset(); + self.restart_counter = -1; self.output_tx .send(PppoePacket { |