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
48876762
Commit
48876762
authored
Jul 09, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPv4 over IPv4 support.
Thanks wolfson292.
parent
2bb8f28e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
IpV4Datagram.cs
PcapDotNet/src/PcapDotNet.Packets/IpV4/IpV4Datagram.cs
+14
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets/IpV4/IpV4Datagram.cs
View file @
48876762
...
...
@@ -227,6 +227,19 @@ namespace PcapDotNet.Packets.IpV4
get
{
return
Tcp
;
}
}
/// <summary>
/// The payload of the datagram as an IPv4 datagram (IP over IP).
/// </summary>
public
IpV4Datagram
IpV4
{
get
{
if
(
_ipV4
==
null
&&
Length
>=
HeaderLength
)
_ipV4
=
new
IpV4Datagram
(
Buffer
,
StartOffset
+
HeaderLength
,
Length
-
HeaderLength
);
return
_ipV4
;
}
}
/// <summary>
/// The payload of the datagram as an ICMP datagram.
/// </summary>
...
...
@@ -436,6 +449,7 @@ namespace PcapDotNet.Packets.IpV4
private
bool
?
_isHeaderChecksumCorrect
;
private
bool
?
_isTransportChecksumCorrect
;
private
IpV4Options
_options
;
private
IpV4Datagram
_ipV4
;
private
IcmpDatagram
_icmp
;
private
IgmpDatagram
_igmp
;
private
GreDatagram
_gre
;
...
...
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