Commit 303d46be authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

ofp13: change message code

parent 29787176
...@@ -6,7 +6,7 @@ pub enum Msg { ...@@ -6,7 +6,7 @@ pub enum Msg {
Error = 1, Error = 1,
EchoRequest = 2, EchoRequest = 2,
EchoReply = 3, EchoReply = 3,
Vendor = 4, Experimenter = 4,
FeaturesRequest = 5, FeaturesRequest = 5,
FeaturesReply = 6, FeaturesReply = 6,
ConfigRequest = 7, ConfigRequest = 7,
...@@ -17,13 +17,21 @@ pub enum Msg { ...@@ -17,13 +17,21 @@ pub enum Msg {
PortStatus = 12, PortStatus = 12,
PacketOut = 13, PacketOut = 13,
FlowMod = 14, FlowMod = 14,
PortMod = 15, GroupMod = 15,
StatsRequest = 16, PortMod = 16,
StateReply = 17, TableMod = 17,
BarrierRequest = 18, MultipartRequest = 18,
BarrierReply = 19, MultipartReply = 19,
QueueGetConfigRequest = 20, BarrierRequest = 20,
QueueGetConfigReply = 21, BarrierReply = 21,
GetConfigRequest = 22,
GetConfigReply = 23,
RoleRequest = 24,
RoleReply = 25,
GetAsyncRequest = 26,
GetAsyncReply = 27,
SetAsync = 28,
MeterMod = 29,
NotFound = 0xff, NotFound = 0xff,
} }
......
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use tenjin::{ use tenjin::{
openflow::ofp10::{ControllerFrame10, Msg, OfpMsgEvent, OpenflowHeader}, openflow::ofp13::{ControllerFrame13, Msg, OfpMsgEvent, OpenflowHeader},
Controller, Controller,
}; };
......
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