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
919c9236
Commit
919c9236
authored
Mar 13, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GRE
parent
b98d48b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
460 additions
and
0 deletions
+460
-0
GreDatagram.cs
PcapDotNet/src/PcapDotNet.Packets/Gre/GreDatagram.cs
+446
-0
IpV4Datagram.cs
PcapDotNet/src/PcapDotNet.Packets/IpV4/IpV4Datagram.cs
+13
-0
PcapDotNet.Packets.csproj
PcapDotNet/src/PcapDotNet.Packets/PcapDotNet.Packets.csproj
+1
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets/Gre/GreDatagram.cs
0 → 100644
View file @
919c9236
This diff is collapsed.
Click to expand it.
PcapDotNet/src/PcapDotNet.Packets/IpV4/IpV4Datagram.cs
View file @
919c9236
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
using
System.Collections
;
using
System.Collections
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Text
;
using
PcapDotNet.Packets.Gre
;
using
PcapDotNet.Packets.Icmp
;
using
PcapDotNet.Packets.Icmp
;
using
PcapDotNet.Packets.Igmp
;
using
PcapDotNet.Packets.Igmp
;
using
PcapDotNet.Packets.Transport
;
using
PcapDotNet.Packets.Transport
;
...
@@ -276,6 +277,17 @@ namespace PcapDotNet.Packets.IpV4
...
@@ -276,6 +277,17 @@ namespace PcapDotNet.Packets.IpV4
}
}
}
}
public
GreDatagram
Gre
{
get
{
if
(
_gre
==
null
&&
Length
>=
HeaderLength
)
_gre
=
new
GreDatagram
(
Buffer
,
StartOffset
+
HeaderLength
,
Length
-
HeaderLength
);
return
_gre
;
}
}
/// <summary>
/// <summary>
/// The payload of the datagram as a UDP datagram.
/// The payload of the datagram as a UDP datagram.
/// </summary>
/// </summary>
...
@@ -416,6 +428,7 @@ namespace PcapDotNet.Packets.IpV4
...
@@ -416,6 +428,7 @@ namespace PcapDotNet.Packets.IpV4
private
IpV4Options
_options
;
private
IpV4Options
_options
;
private
IcmpDatagram
_icmp
;
private
IcmpDatagram
_icmp
;
private
IgmpDatagram
_igmp
;
private
IgmpDatagram
_igmp
;
private
GreDatagram
_gre
;
private
TcpDatagram
_tcp
;
private
TcpDatagram
_tcp
;
private
UdpDatagram
_udp
;
private
UdpDatagram
_udp
;
}
}
...
...
PcapDotNet/src/PcapDotNet.Packets/PcapDotNet.Packets.csproj
View file @
919c9236
...
@@ -73,6 +73,7 @@
...
@@ -73,6 +73,7 @@
<Compile
Include=
"Ethernet\EthernetType.cs"
/>
<Compile
Include=
"Ethernet\EthernetType.cs"
/>
<Compile
Include=
"Ethernet\MacAddress.cs"
/>
<Compile
Include=
"Ethernet\MacAddress.cs"
/>
<Compile
Include=
"Arp\IArpPreviousLayer.cs"
/>
<Compile
Include=
"Arp\IArpPreviousLayer.cs"
/>
<Compile
Include=
"Gre\GreDatagram.cs"
/>
<Compile
Include=
"Icmp\IcmpAddressMaskReplyDatagram.cs"
/>
<Compile
Include=
"Icmp\IcmpAddressMaskReplyDatagram.cs"
/>
<Compile
Include=
"Icmp\IcmpAddressMaskReplyLayer.cs"
/>
<Compile
Include=
"Icmp\IcmpAddressMaskReplyLayer.cs"
/>
<Compile
Include=
"Icmp\IcmpAddressMaskRequestLayer.cs"
/>
<Compile
Include=
"Icmp\IcmpAddressMaskRequestLayer.cs"
/>
...
...
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