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
6d8bb627
Commit
6d8bb627
authored
Jun 02, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unremove code in match_fields because error
parent
44d9a1e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
match_fields.rs
src/openflow/ofp10/events/flow_mod/match_fields.rs
+3
-0
No files found.
src/openflow/ofp10/events/flow_mod/match_fields.rs
View file @
6d8bb627
...
@@ -163,9 +163,12 @@ impl MatchFields {
...
@@ -163,9 +163,12 @@ impl MatchFields {
};
};
let
_
=
bytes
.write_u16
::
<
BigEndian
>
(
vlan
);
let
_
=
bytes
.write_u16
::
<
BigEndian
>
(
vlan
);
let
_
=
bytes
.write_u8
(
self
.vlan_pcp
.unwrap_or
(
0
));
let
_
=
bytes
.write_u8
(
self
.vlan_pcp
.unwrap_or
(
0
));
let
_
=
bytes
.write_u8
(
0
);
let
_
=
bytes
.write_u16
::
<
BigEndian
>
(
self
.ethernet_type
.unwrap_or
(
0
));
let
_
=
bytes
.write_u16
::
<
BigEndian
>
(
self
.ethernet_type
.unwrap_or
(
0
));
let
_
=
bytes
.write_u8
(
self
.tos
.unwrap_or
(
0
));
let
_
=
bytes
.write_u8
(
self
.tos
.unwrap_or
(
0
));
let
_
=
bytes
.write_u8
(
self
.protocol
.unwrap_or
(
0
));
let
_
=
bytes
.write_u8
(
self
.protocol
.unwrap_or
(
0
));
let
_
=
bytes
.write_u16
::
<
BigEndian
>
(
0
);
let
_
=
bytes
.write_u32
::
<
BigEndian
>
(
match
&
self
.ip_src
{
let
_
=
bytes
.write_u32
::
<
BigEndian
>
(
match
&
self
.ip_src
{
Some
(
ip
)
=>
ip
.ip
,
Some
(
ip
)
=>
ip
.ip
,
None
=>
0
,
None
=>
0
,
...
...
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