Commit 6c4a5497 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

update ofp version code

parent 47df7ae9
...@@ -16,7 +16,7 @@ pub struct OfpHeader { ...@@ -16,7 +16,7 @@ pub struct OfpHeader {
impl OpenflowHeader for OfpHeader { impl OpenflowHeader for OfpHeader {
fn new(message: u8, length: usize, xid: usize) -> Self { fn new(message: u8, length: usize, xid: usize) -> Self {
Self { Self {
version: 1, version: 4,
message, message,
length: (size_of::<OfpHeader>() + length) as u16, length: (size_of::<OfpHeader>() + length) as u16,
xid: xid as u32, xid: xid as u32,
......
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