Commit 38b71075 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

clear todo!

parent 6cb489d3
...@@ -37,13 +37,13 @@ pub trait ControllerFrame<OME: OfpMsgEvent> { ...@@ -37,13 +37,13 @@ pub trait ControllerFrame<OME: OfpMsgEvent> {
let message = self.get_ofp().msg_parse(message as u16); let message = self.get_ofp().msg_parse(message as u16);
match message { match message {
OfpMsg::Hello => self.send_msg(self.get_ofp().fetures_req(), xid, stream), OfpMsg::Hello => self.send_msg(self.get_ofp().fetures_req(), xid, stream),
OfpMsg::FeaturesReq => todo!(), OfpMsg::FeaturesReq => (),
OfpMsg::PacketIn => { OfpMsg::PacketIn => {
self.packet_in_handler(xid, PacketInEvent::parse(&payload), stream); self.packet_in_handler(xid, PacketInEvent::parse(&payload), stream);
} }
OfpMsg::PacketOut => (), OfpMsg::PacketOut => (),
OfpMsg::FlowMod => todo!(), OfpMsg::FlowMod => (),
OfpMsg::NotFound => todo!(), OfpMsg::NotFound => (),
} }
} }
......
...@@ -113,7 +113,7 @@ impl FlowAction { ...@@ -113,7 +113,7 @@ impl FlowAction {
} }
let _ = bytes.write_u32::<BigEndian>(*qid); let _ = bytes.write_u32::<BigEndian>(*qid);
} }
FlowAction::Unparsable => todo!(), FlowAction::Unparsable => (),
} }
} }
pub fn parse_sequence(bytes: &mut Cursor<Vec<u8>>) -> Vec<FlowAction> { pub fn parse_sequence(bytes: &mut Cursor<Vec<u8>>) -> Vec<FlowAction> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment