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
38b71075
Commit
38b71075
authored
May 12, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear todo!
parent
6cb489d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
controller_frame.rs
src/openflow/controller_frame.rs
+3
-3
flow_actions.rs
src/openflow/events/flow_mod/flow_actions.rs
+1
-1
No files found.
src/openflow/controller_frame.rs
View file @
38b71075
...
@@ -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
=>
(),
}
}
}
}
...
...
src/openflow/events/flow_mod/flow_actions.rs
View file @
38b71075
...
@@ -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
>
{
...
...
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