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
4e34fd27
Commit
4e34fd27
authored
Oct 03, 2014
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename IIpV4NextLayer to IIpNextLayer.
Rename IIpV4NextTransportLayer to IIpNextTransportLayer.
parent
343e7103
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
19 additions
and
19 deletions
+19
-19
GreLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Gre/GreLayer.cs
+1
-1
IcmpLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Icmp/IcmpLayer.cs
+1
-1
IgmpLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Igmp/IgmpLayer.cs
+1
-1
IIpNextLayer.cs
PcapDotNet/src/PcapDotNet.Packets/Ip/IIpNextLayer.cs
+2
-2
IIpNextTransportLayer.cs
...DotNet/src/PcapDotNet.Packets/Ip/IIpNextTransportLayer.cs
+2
-2
IpV4Layer.cs
PcapDotNet/src/PcapDotNet.Packets/IpV4/IpV4Layer.cs
+5
-5
IpV6Layer.cs
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6Layer.cs
+4
-4
PcapDotNet.Packets.csproj
PcapDotNet/src/PcapDotNet.Packets/PcapDotNet.Packets.csproj
+2
-2
TransportLayer.cs
...DotNet/src/PcapDotNet.Packets/Transport/TransportLayer.cs
+1
-1
No files found.
PcapDotNet/src/PcapDotNet.Packets/Gre/GreLayer.cs
View file @
4e34fd27
...
...
@@ -11,7 +11,7 @@ namespace PcapDotNet.Packets.Gre
/// Represents a GRE layer.
/// <seealso cref="GreDatagram"/>
/// </summary>
public
sealed
class
GreLayer
:
EthernetBaseLayer
,
IIp
V4
NextLayer
,
IEquatable
<
GreLayer
>
public
sealed
class
GreLayer
:
EthernetBaseLayer
,
IIpNextLayer
,
IEquatable
<
GreLayer
>
{
/// <summary>
/// The GRE Version Number.
...
...
PcapDotNet/src/PcapDotNet.Packets/Icmp/IcmpLayer.cs
View file @
4e34fd27
...
...
@@ -7,7 +7,7 @@ namespace PcapDotNet.Packets.Icmp
/// Represents an ICMP layer.
/// <seealso cref="IcmpDatagram"/>
/// </summary>
public
abstract
class
IcmpLayer
:
SimpleLayer
,
IIp
V4
NextLayer
public
abstract
class
IcmpLayer
:
SimpleLayer
,
IIpNextLayer
{
/// <summary>
/// The value of this field determines the format of the remaining data.
...
...
PcapDotNet/src/PcapDotNet.Packets/Igmp/IgmpLayer.cs
View file @
4e34fd27
...
...
@@ -8,7 +8,7 @@ namespace PcapDotNet.Packets.Igmp
/// The base of all IGMP layers.
/// <seealso cref="IgmpDatagram"/>
/// </summary>
public
abstract
class
IgmpLayer
:
SimpleLayer
,
IIp
V4
NextLayer
public
abstract
class
IgmpLayer
:
SimpleLayer
,
IIpNextLayer
{
/// <summary>
/// The type of the IGMP message of concern to the host-router interaction.
...
...
PcapDotNet/src/PcapDotNet.Packets/Ip
V4/IIpV4
NextLayer.cs
→
PcapDotNet/src/PcapDotNet.Packets/Ip
/IIp
NextLayer.cs
View file @
4e34fd27
namespace
PcapDotNet.Packets.IpV4
{
/// <summary>
/// A layer under an IP
v4
layer.
/// A layer under an IP layer.
/// Must provide the IPv4 Protocol.
/// </summary>
public
interface
IIp
V4
NextLayer
:
ILayer
public
interface
IIpNextLayer
:
ILayer
{
/// <summary>
/// The protocol that should be written in the previous (IPv4) layer.
...
...
PcapDotNet/src/PcapDotNet.Packets/Ip
V4/IIpV4
NextTransportLayer.cs
→
PcapDotNet/src/PcapDotNet.Packets/Ip
/IIp
NextTransportLayer.cs
View file @
4e34fd27
namespace
PcapDotNet.Packets.IpV4
{
/// <summary>
/// A Transport layer under an IP
v4
layer.
/// A Transport layer under an IP layer.
/// Must supply information about the Transport layer checksum.
/// </summary>
public
interface
IIp
V4NextTransportLayer
:
IIpV4
NextLayer
public
interface
IIp
NextTransportLayer
:
IIp
NextLayer
{
/// <summary>
/// Checksum is the 16-bit one's complement of the one's complement sum of a pseudo header of information from the IP header,
...
...
PcapDotNet/src/PcapDotNet.Packets/IpV4/IpV4Layer.cs
View file @
4e34fd27
...
...
@@ -8,7 +8,7 @@ namespace PcapDotNet.Packets.IpV4
/// Represents IPv4 layer.
/// <seealso cref="IpV4Datagram"/>
/// </summary>
public
sealed
class
IpV4Layer
:
Layer
,
IEthernetNextLayer
,
IIp
V4
NextLayer
public
sealed
class
IpV4Layer
:
Layer
,
IEthernetNextLayer
,
IIpNextLayer
{
/// <summary>
/// Creates an IPv4 layer with all zero values.
...
...
@@ -131,10 +131,10 @@ namespace PcapDotNet.Packets.IpV4
{
if
(
nextLayer
==
null
)
throw
new
ArgumentException
(
"Can't determine protocol automatically from next layer because there is no next layer"
);
IIp
V4NextLayer
ipV4NextLayer
=
nextLayer
as
IIpV4
NextLayer
;
if
(
ip
V4
NextLayer
==
null
)
IIp
NextLayer
ipNextLayer
=
nextLayer
as
IIp
NextLayer
;
if
(
ipNextLayer
==
null
)
throw
new
ArgumentException
(
"Can't determine protocol automatically from next layer ("
+
nextLayer
.
GetType
()
+
")"
);
protocol
=
ip
V4
NextLayer
.
PreviousLayerProtocol
;
protocol
=
ipNextLayer
.
PreviousLayerProtocol
;
}
else
protocol
=
Protocol
.
Value
;
...
...
@@ -156,7 +156,7 @@ namespace PcapDotNet.Packets.IpV4
/// <param name="nextLayer">The layer that comes after this layer. null if this is the last layer.</param>
public
override
void
Finalize
(
byte
[]
buffer
,
int
offset
,
int
payloadLength
,
ILayer
nextLayer
)
{
IIp
V4NextTransportLayer
nextTransportLayer
=
nextLayer
as
IIpV4
NextTransportLayer
;
IIp
NextTransportLayer
nextTransportLayer
=
nextLayer
as
IIp
NextTransportLayer
;
if
(
nextTransportLayer
==
null
||
!
nextTransportLayer
.
CalculateChecksum
)
return
;
...
...
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6Layer.cs
View file @
4e34fd27
...
...
@@ -12,7 +12,7 @@ namespace PcapDotNet.Packets.IpV6
/// Represents IPv6 layer.
/// <seealso cref="IpV6Datagram"/>
/// </summary>
public
sealed
class
IpV6Layer
:
Layer
,
IEthernetNextLayer
,
IIp
V4
NextLayer
public
sealed
class
IpV6Layer
:
Layer
,
IEthernetNextLayer
,
IIpNextLayer
{
/// <summary>
/// Creates an IPv6 layer with all zero values.
...
...
@@ -118,10 +118,10 @@ namespace PcapDotNet.Packets.IpV6
{
if
(
nextLayer
==
null
)
throw
new
ArgumentException
(
"Can't determine protocol automatically from next layer because there is no next layer"
);
IIp
V4NextLayer
ipV4NextLayer
=
nextLayer
as
IIpV4
NextLayer
;
if
(
ip
V4
NextLayer
==
null
)
IIp
NextLayer
ipNextLayer
=
nextLayer
as
IIp
NextLayer
;
if
(
ipNextLayer
==
null
)
throw
new
ArgumentException
(
"Can't determine protocol automatically from next layer ("
+
nextLayer
.
GetType
()
+
")"
);
nextHeader
=
ip
V4
NextLayer
.
PreviousLayerProtocol
;
nextHeader
=
ipNextLayer
.
PreviousLayerProtocol
;
}
}
else
...
...
PcapDotNet/src/PcapDotNet.Packets/PcapDotNet.Packets.csproj
View file @
4e34fd27
...
...
@@ -502,8 +502,8 @@
<Compile
Include=
"Ip\V4Option.cs"
/>
<Compile
Include=
"Ip\IIpOptionQuickStart.cs"
/>
<Compile
Include=
"IpV4\IpV4OptionTypeRegistrationAttribute.cs"
/>
<Compile
Include=
"Ip
V4\IIpV4
NextLayer.cs"
/>
<Compile
Include=
"Ip
V4\IIpV4
NextTransportLayer.cs"
/>
<Compile
Include=
"Ip
\IIp
NextLayer.cs"
/>
<Compile
Include=
"Ip
\IIp
NextTransportLayer.cs"
/>
<Compile
Include=
"ILayer.cs"
/>
<Compile
Include=
"Ip\IOptionUnknownFactory.cs"
/>
<Compile
Include=
"IpV4\IpV4Layer.cs"
/>
...
...
PcapDotNet/src/PcapDotNet.Packets/Transport/TransportLayer.cs
View file @
4e34fd27
...
...
@@ -8,7 +8,7 @@ namespace PcapDotNet.Packets.Transport
/// Contains the common part of UDP and TCP layers.
/// <seealso cref="TransportDatagram"/>
/// </summary>
public
abstract
class
TransportLayer
:
Layer
,
IIp
V4
NextTransportLayer
,
IEquatable
<
TransportLayer
>
public
abstract
class
TransportLayer
:
Layer
,
IIpNextTransportLayer
,
IEquatable
<
TransportLayer
>
{
/// <summary>
/// Checksum is the 16-bit one's complement of the one's complement sum of a pseudo header of information from the IP header,
...
...
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