diff --git a/services/net/src/api.rs b/services/net/src/api.rs index 70dc63a46..f21f8d106 100644 --- a/services/net/src/api.rs +++ b/services/net/src/api.rs @@ -25,12 +25,12 @@ pub(crate) enum Opcode { /// [Internal] com llio interrupt callback ComInterrupt, - /// [Internal] run the network stack code NetPump, - /// Suspend/resume callback SuspendResume, + /// Quit the server + Quit } #[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)] diff --git a/services/net/src/main.rs b/services/net/src/main.rs index 47a2f623c..aec5938bf 100644 --- a/services/net/src/main.rs +++ b/services/net/src/main.rs @@ -646,9 +646,12 @@ fn xmain() -> ! { // handle an suspend/resume state stuff here. right now, it's a NOP susres.suspend_until_resume(token).expect("couldn't execute suspend/resume"); }), + Some(Opcode::Quit) => { + log::warn!("quit received"); + break; + } None => { - log::error!("couldn't convert opcode"); - break + log::error!("couldn't convert opcode: {}", msg); } } }