Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
07e05ec8
Commit
07e05ec8
authored
May 21, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Coverage for PcapDotNet.Core
Documentation
parent
34f840dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
PcapDotNet.Core.vcxproj
PcapDotNet/src/PcapDotNet.Core/PcapDotNet.Core.vcxproj
+2
-0
EthernetDatagram.cs
...otNet/src/PcapDotNet.Packets/Ethernet/EthernetDatagram.cs
+12
-0
No files found.
PcapDotNet/src/PcapDotNet.Core/PcapDotNet.Core.vcxproj
View file @
07e05ec8
...
@@ -287,6 +287,7 @@
...
@@ -287,6 +287,7 @@
<TargetMachine>
MachineX86
</TargetMachine>
<TargetMachine>
MachineX86
</TargetMachine>
<KeyFile>
"$(SolutionDir)$(SolutionName).snk"
</KeyFile>
<KeyFile>
"$(SolutionDir)$(SolutionName).snk"
</KeyFile>
<DelaySign>
true
</DelaySign>
<DelaySign>
true
</DelaySign>
<Profile>
true
</Profile>
</Link>
</Link>
<PostBuildEvent>
<PostBuildEvent>
<Command>
sn -Ra "$(TargetPath)" "$(SolutionDir)$(SolutionName).snk"
</Command>
<Command>
sn -Ra "$(TargetPath)" "$(SolutionDir)$(SolutionName).snk"
</Command>
...
@@ -320,6 +321,7 @@
...
@@ -320,6 +321,7 @@
<TargetMachine>
MachineX64
</TargetMachine>
<TargetMachine>
MachineX64
</TargetMachine>
<KeyFile>
"$(SolutionDir)$(SolutionName).snk"
</KeyFile>
<KeyFile>
"$(SolutionDir)$(SolutionName).snk"
</KeyFile>
<DelaySign>
true
</DelaySign>
<DelaySign>
true
</DelaySign>
<Profile>
true
</Profile>
</Link>
</Link>
<PostBuildEvent>
<PostBuildEvent>
<Command>
sn -Ra "$(TargetPath)" "$(SolutionDir)$(SolutionName).snk"
</Command>
<Command>
sn -Ra "$(TargetPath)" "$(SolutionDir)$(SolutionName).snk"
</Command>
...
...
PcapDotNet/src/PcapDotNet.Packets/Ethernet/EthernetDatagram.cs
View file @
07e05ec8
...
@@ -95,6 +95,12 @@ namespace PcapDotNet.Packets.Ethernet
...
@@ -95,6 +95,12 @@ namespace PcapDotNet.Packets.Ethernet
get
{
return
PayloadDatagrams
.
Payload
;
}
get
{
return
PayloadDatagrams
.
Payload
;
}
}
}
/// <summary>
/// The bytes padding the Ethernet packet beyond the actual Ethernet payload.
/// This assumes we know how to calculate the actual payload length (For example, by using the Total Length of the IPv4 payload).
/// If we don't know how to calculate the actual payload length <see langword="null"/> will be returned.
/// The trailer doesn't include the <see cref="FrameCheckSequence"/> if it exists.
/// </summary>
public
Datagram
Trailer
public
Datagram
Trailer
{
{
get
get
...
@@ -109,6 +115,12 @@ namespace PcapDotNet.Packets.Ethernet
...
@@ -109,6 +115,12 @@ namespace PcapDotNet.Packets.Ethernet
}
}
}
}
/// <summary>
/// The 4 bytes of the France Check Sequence (FCS).
/// Usually, these bytes won't be available because the device remvoed them after checking their validity.
/// We assume they exist when we see that the Ethernet padding pads to 68 bytes or more.
/// If the padding isn't that long or we don't know how to calculate the real payload length, <see langword="null"/> will be returned.
/// </summary>
public
Datagram
FrameCheckSequence
public
Datagram
FrameCheckSequence
{
{
get
get
...
...
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