Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
Tenjin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
Tenjin
Commits
47df7ae9
Commit
47df7ae9
authored
Jul 24, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ofp version code
parent
a4ddcb00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
main.rs
src/main.rs
+2
-2
ofp_header.rs
src/openflow/ofp13/ofp_header.rs
+1
-1
ofp_manager.rs
src/openflow/ofp13/ofp_manager.rs
+2
-2
No files found.
src/main.rs
View file @
47df7ae9
use
tenjin
::{
example
,
openflow
::
ofp1
0
::
ControllerFrame10
};
use
tenjin
::{
example
,
openflow
::
ofp1
3
::
ControllerFrame13
};
extern
crate
byteorder
;
extern
crate
byteorder
;
fn
main
()
->
Result
<
(),
std
::
io
::
Error
>
{
fn
main
()
->
Result
<
(),
std
::
io
::
Error
>
{
let
controller
=
example
::
Controller1
0
::
new
();
let
controller
=
example
::
Controller1
3
::
new
();
controller
.listener
(
"127.0.0.1:6633"
);
controller
.listener
(
"127.0.0.1:6633"
);
Ok
(())
Ok
(())
}
}
src/openflow/ofp13/ofp_header.rs
View file @
47df7ae9
...
@@ -23,7 +23,7 @@ impl OpenflowHeader for OfpHeader {
...
@@ -23,7 +23,7 @@ impl OpenflowHeader for OfpHeader {
}
}
}
}
fn
version
(
&
self
)
->
usize
{
fn
version
(
&
self
)
->
usize
{
1
4
}
}
fn
message
(
&
self
)
->
u8
{
fn
message
(
&
self
)
->
u8
{
self
.message
self
.message
...
...
src/openflow/ofp13/ofp_manager.rs
View file @
47df7ae9
...
@@ -35,10 +35,10 @@ impl OfpMsgEvent for Openflow13 {
...
@@ -35,10 +35,10 @@ impl OfpMsgEvent for Openflow13 {
PacketOutEvent
::
new
(
port_id
,
payload
,
actions
)
PacketOutEvent
::
new
(
port_id
,
payload
,
actions
)
}
}
fn
ofp_version
()
->
usize
{
fn
ofp_version
()
->
usize
{
1
4
}
}
fn
version
(
&
self
)
->
usize
{
fn
version
(
&
self
)
->
usize
{
1
4
}
}
fn
header
(
&
self
,
message
:
u8
,
length
:
u16
,
xid
:
u32
)
->
OfpHeader
{
fn
header
(
&
self
,
message
:
u8
,
length
:
u16
,
xid
:
u32
)
->
OfpHeader
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment