aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-06 13:32:32 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-06 13:32:32 +0100
commitf53ae8daaf546d888af0e4b6782c249991b0da15 (patch)
tree5932c5678b10e8ee69aa959e26bdcd098130d6dd
parentb83601736c05c6a5ef9d6ab2a18d42982e7cd8c0 (diff)
trigger pppoe status update on administrative/local close
fixes PADOs being ignores
-rw-r--r--src/pppoe.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pppoe.rs b/src/pppoe.rs
index b9881b7..a617cd1 100644
--- a/src/pppoe.rs
+++ b/src/pppoe.rs
@@ -143,6 +143,10 @@ impl PppoeClient {
self.state = PppoeClientState::Closed
}
PppoeClientState::Active => {
+ self.upper_status_tx
+ .send(false)
+ .expect("upper status channel is closed");
+
self.output_tx
.send(PppoePacket {
ty: PppoeType::Padt,