aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-07-29 14:13:30 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-07-29 14:13:30 +0200
commit30ca5caf10fd28f9c6b157d781742fbb7b3ae04a (patch)
treea2ee0acd77f72c10ac0e81d1d45ba80c05e8fb49 /src
parentf1d20adbc1b9cda15375a91f23c88b9964169abd (diff)
handle lcp configure-reject
Diffstat (limited to 'src')
-rw-r--r--src/main.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 9cc4477..914dbfe 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -561,6 +561,18 @@ fn handle_lcp(lcp: LcpPkt, ctl_w: &mut BufWriter<File>, state: Arc<Mutex<Ppp>>)
println!(" <- lcp configure-nak {}", lcp.identifier);
Ok(())
}
+ LcpData::ConfigureReject(..) => {
+ // None of our options can be unset.
+ // Ignore the packet and let the negotiation time out.
+
+ match *state.lock().expect("ppp state mutex is poisoned") {
+ Ppp::Synchronize(..) => println!(" <- lcp configure-reject {}", lcp.identifier),
+ Ppp::SyncAck(..) => println!(" <- lcp configure-reject {}", lcp.identifier),
+ _ => println!(" <- unexpected lcp configure-reject {}", lcp.identifier),
+ }
+
+ Ok(())
+ }
_ => Ok(()),
}
}