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
f7f8a371
Commit
f7f8a371
authored
Aug 17, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor and clear unused
parent
8bd9e85a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
ctrl10.rs
src/example/ctrl10.rs
+1
-2
ctrl13.rs
src/example/ctrl13.rs
+0
-1
mod.rs
src/openflow/ofp10/events/mod.rs
+1
-1
mod.rs
src/openflow/ofp10/mod.rs
+2
-2
No files found.
src/example/ctrl10.rs
View file @
f7f8a371
...
...
@@ -7,7 +7,6 @@ use crate::{
openflow
::
ofp10
::{
self
,
events
::{
flow_mod
::
MatchFields
,
Action
},
ofp_manager
::
Openflow10
,
ControllerFrame10
,
FlowModEvent
,
OfpMsgEvent
,
PacketInEvent
,
},
};
...
...
@@ -60,7 +59,7 @@ impl ControllerFrame10 for Controller10 {
let
actions
=
vec!
[
Action
::
Oputput
(
out_port
.clone
())];
if
let
ofp10
::
PseudoPort
::
PhysicalPort
(
_
)
=
out_port
{
let
mut
match_fields
=
MatchFields
::
match_all
();
let
mut
match_fields
=
ofp10
::
MatchFields
::
match_all
();
match_fields
.in_port
=
Some
(
packetin
.in_port
);
match_fields
.mac_dest
=
Some
(
mac_dst
);
match_fields
.mac_src
=
Some
(
mac_src
);
...
...
src/example/ctrl13.rs
View file @
f7f8a371
...
...
@@ -7,7 +7,6 @@ use crate::{
openflow
::
ofp13
::{
self
,
events
::{
flow_mod
::
MatchFields
,
Action
},
ofp_manager
::
Openflow13
,
ControllerFrame13
,
FlowModEvent
,
OfpMsgEvent
,
PacketInEvent
,
},
};
...
...
src/openflow/ofp10/events/mod.rs
View file @
f7f8a371
...
...
@@ -8,7 +8,7 @@ pub mod packet_out;
pub
use
packet_out
::
PacketOutEvent
;
pub
mod
flow_mod
;
pub
use
flow_mod
::
FlowModEvent
;
pub
use
flow_mod
::
{
FlowModEvent
,
MatchFields
}
;
pub
mod
actions
;
pub
use
actions
::
Action
;
...
...
src/openflow/ofp10/mod.rs
View file @
f7f8a371
...
...
@@ -6,8 +6,8 @@ pub use ofp_port::PseudoPort;
pub
mod
events
;
pub
use
events
::{
Action
,
EchoReplyEvent
,
EchoRequestEvent
,
ErrorEvent
,
FlowModEvent
,
HelloEvent
,
PacketInEvent
,
PacketOutEvent
,
Action
,
EchoReplyEvent
,
EchoRequestEvent
,
ErrorEvent
,
FlowModEvent
,
HelloEvent
,
MatchFields
,
Packet
InEvent
,
Packet
OutEvent
,
};
pub
mod
ofp_header
;
...
...
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