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
03251b8d
Commit
03251b8d
authored
Aug 04, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed: cpu is working too hard
parent
f1c8a60e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ctrl13.rs
src/example/ctrl13.rs
+1
-1
tcp_listener.rs
src/openflow/ofp10/tcp_listener.rs
+1
-1
tcp_listener.rs
src/openflow/ofp13/tcp_listener.rs
+1
-1
No files found.
src/example/ctrl13.rs
View file @
03251b8d
...
@@ -84,7 +84,7 @@ impl ControllerFrame13 for Controller13 {
...
@@ -84,7 +84,7 @@ impl ControllerFrame13 for Controller13 {
match_fields
,
match_fields
,
&
actions
,
&
actions
,
packetin
.table_id
,
packetin
.table_id
,
Some
(
buf_id
as
u32
),
Some
(
buf_id
),
stream
,
stream
,
);
);
return
;
return
;
...
...
src/openflow/ofp10/tcp_listener.rs
View file @
03251b8d
...
@@ -27,7 +27,7 @@ pub fn tcp_listener_handler(
...
@@ -27,7 +27,7 @@ pub fn tcp_listener_handler(
ctrl
.request_handler
(
&
mut
buffer
,
&
mut
stream
);
ctrl
.request_handler
(
&
mut
buffer
,
&
mut
stream
);
}
}
Ok
(
_
)
=>
{
Ok
(
_
)
=>
{
continue
;
break
;
}
}
Err
(
_
)
=>
{
Err
(
_
)
=>
{
println!
(
"cannot read packet"
);
println!
(
"cannot read packet"
);
...
...
src/openflow/ofp13/tcp_listener.rs
View file @
03251b8d
...
@@ -27,7 +27,7 @@ pub fn tcp_listener_handler(
...
@@ -27,7 +27,7 @@ pub fn tcp_listener_handler(
ctrl
.request_handler
(
&
mut
buffer
,
&
mut
stream
);
ctrl
.request_handler
(
&
mut
buffer
,
&
mut
stream
);
}
}
Ok
(
_
)
=>
{
Ok
(
_
)
=>
{
continue
;
break
;
}
}
Err
(
_
)
=>
{
Err
(
_
)
=>
{
println!
(
"cannot read packet"
);
println!
(
"cannot read packet"
);
...
...
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