aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index a76fb9e..6f1b4f0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -636,6 +636,15 @@ fn handle_lcp(lcp: LcpPkt, ctl_w: &mut BufWriter<File>, state: Arc<Mutex<Ppp>>)
);
Ok(())
}
+ LcpData::ProtocolReject(protocol_reject) => {
+ // TODO: update ncp state to failed
+
+ println!(
+ " <- lcp protocol-reject {}, protocol: {}, packet: {:?}",
+ lcp.identifier, protocol_reject.protocol, protocol_reject.pkt
+ );
+ Ok(())
+ }
LcpData::EchoRequest(echo_request) => {
PppPkt::new_lcp(LcpPkt::new_echo_reply(
lcp.identifier,
@@ -670,6 +679,5 @@ fn handle_lcp(lcp: LcpPkt, ctl_w: &mut BufWriter<File>, state: Arc<Mutex<Ppp>>)
);
Ok(())
}
- _ => Ok(()),
}
}