Skip to content

Commit

Permalink
fix wrong message code in ofp v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikato111 committed May 12, 2024
1 parent 372ec21 commit 47a531c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openflow/ofp_manager/ofp_v1_0.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl OfpMsgEvent for Openflow10 {
match msg {
0 => OfpMsg::Hello,
5 => OfpMsg::FeaturesReq,
8 => OfpMsg::PacketIn,
10 => OfpMsg::PacketIn,
13 => OfpMsg::PacketOut,
14 => OfpMsg::FlowMod,
_ => OfpMsg::NotFound,
Expand All @@ -63,7 +63,7 @@ impl OfpMsgEvent for Openflow10 {
match msg {
OfpMsg::Hello => 0,
OfpMsg::FeaturesReq => 5,
OfpMsg::PacketIn => 8,
OfpMsg::PacketIn => 10,
OfpMsg::PacketOut => 13,
OfpMsg::FlowMod => 14,
_ => 1024,
Expand Down

0 comments on commit 47a531c

Please sign in to comment.