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
ba707656
Commit
ba707656
authored
Jun 14, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change var name ip_header to network
parent
749375a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ethernet.rs
src/etherparser/ethernet.rs
+3
-3
No files found.
src/etherparser/ethernet.rs
View file @
ba707656
...
...
@@ -15,7 +15,7 @@ pub struct EthernetFrame {
pub
vlan_pcp
:
u8
,
pub
vlan_dei
:
bool
,
pub
vlan_vid
:
Option
<
u16
>
,
pub
ip_header
:
Network
,
pub
network
:
Network
,
}
impl
EthernetFrame
{
...
...
@@ -41,7 +41,7 @@ impl EthernetFrame {
}
_
=>
(
0x0
,
false
,
None
,
typ
),
};
let
ip_header
=
match
typ
{
let
network
=
match
typ
{
tp
if
tp
==
EtherType
::
IP
as
u16
=>
{
let
ip
=
IP
::
parse
(
&
mut
bytes
);
if
ip
.is_some
()
{
...
...
@@ -67,7 +67,7 @@ impl EthernetFrame {
vlan_pcp
,
vlan_dei
,
vlan_vid
,
ip_header
,
network
,
}
}
}
...
...
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