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
e94f56bb
Commit
e94f56bb
authored
May 07, 2010
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Analysis and Documentation - 5 warnings left.
parent
07856fa3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
ByteArrayExtensions.cs
PcapDotNet/src/PcapDotNet.Packets/ByteArrayExtensions.cs
+8
-6
Datagram.cs
PcapDotNet/src/PcapDotNet.Packets/Datagram.cs
+4
-4
IgmpQueryVersion3Layer.cs
...Net/src/PcapDotNet.Packets/Igmp/IgmpQueryVersion3Layer.cs
+4
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets/ByteArrayExtensions.cs
View file @
e94f56bb
...
@@ -224,14 +224,14 @@ namespace PcapDotNet.Packets
...
@@ -224,14 +224,14 @@ namespace PcapDotNet.Packets
offset
+=
UInt48
.
SizeOf
;
offset
+=
UInt48
.
SizeOf
;
return
result
;
return
result
;
}
}
/*
/// <
!--
summary>
/// <summary>
/// Reads 8 bytes from a specific offset as an int with a given endianity.
/// Reads 8 bytes from a specific offset as an int with a given endianity.
/// </summary>
/// </summary>
/// <param name="buffer">The buffer to read the bytes from.</param>
/// <param name="buffer">The buffer to read the bytes from.</param>
/// <param name="offset">The offset in the buffer to start reading.</param>
/// <param name="offset">The offset in the buffer to start reading.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <returns>The value converted from the read bytes according to the endianity.</returns
--
>
/// <returns>The value converted from the read bytes according to the endianity.</returns>
// public static long ReadLong(this byte[] buffer, int offset, Endianity endianity)
// public static long ReadLong(this byte[] buffer, int offset, Endianity endianity)
// {
// {
// long value = ReadLong(buffer, offset);
// long value = ReadLong(buffer, offset);
...
@@ -239,19 +239,21 @@ namespace PcapDotNet.Packets
...
@@ -239,19 +239,21 @@ namespace PcapDotNet.Packets
// value = IPAddress.HostToNetworkOrder(value);
// value = IPAddress.HostToNetworkOrder(value);
// return value;
// return value;
// }
// }
*/
/// <!--summary>
/*
/// <summary>
/// Reads 8 bytes from a specific offset as a ulong with a given endianity.
/// Reads 8 bytes from a specific offset as a ulong with a given endianity.
/// </summary>
/// </summary>
/// <param name="buffer">The buffer to read the bytes from.</param>
/// <param name="buffer">The buffer to read the bytes from.</param>
/// <param name="offset">The offset in the buffer to start reading.</param>
/// <param name="offset">The offset in the buffer to start reading.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <returns>The value converted from the read bytes according to the endianity.</returns
--
>
/// <returns>The value converted from the read bytes according to the endianity.</returns>
// public static ulong ReadULong(this byte[] buffer, int offset, Endianity endianity)
// public static ulong ReadULong(this byte[] buffer, int offset, Endianity endianity)
// {
// {
// return (ulong)ReadLong(buffer, offset, endianity);
// return (ulong)ReadLong(buffer, offset, endianity);
// }
// }
*/
/// <summary>
/// <summary>
/// Reads 6 bytes from a specific offset as a MacAddress with a given endianity.
/// Reads 6 bytes from a specific offset as a MacAddress with a given endianity.
/// </summary>
/// </summary>
...
...
PcapDotNet/src/PcapDotNet.Packets/Datagram.cs
View file @
e94f56bb
...
@@ -220,18 +220,18 @@ namespace PcapDotNet.Packets
...
@@ -220,18 +220,18 @@ namespace PcapDotNet.Packets
{
{
return
Buffer
.
ReadUInt
(
StartOffset
+
offset
,
endianity
);
return
Buffer
.
ReadUInt
(
StartOffset
+
offset
,
endianity
);
}
}
/*
/// <
!--
summary>
/// <summary>
/// Reads 8 bytes from a specific offset in the datagram as a ulong with a given endianity.
/// Reads 8 bytes from a specific offset in the datagram as a ulong with a given endianity.
/// </summary>
/// </summary>
/// <param name="offset">The offset in the datagram to start reading.</param>
/// <param name="offset">The offset in the datagram to start reading.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <param name="endianity">The endianity to use to translate the bytes to the value.</param>
/// <returns>The value converted from the read bytes according to the endianity.</returns
--
>
/// <returns>The value converted from the read bytes according to the endianity.</returns>
// protected ulong ReadULong(int offset, Endianity endianity)
// protected ulong ReadULong(int offset, Endianity endianity)
// {
// {
// return Buffer.ReadULong(StartOffset + offset, endianity);
// return Buffer.ReadULong(StartOffset + offset, endianity);
// }
// }
*/
/// <summary>
/// <summary>
/// Reads 6 bytes from a specific offset in the datagram as a MacAddress with a given endianity.
/// Reads 6 bytes from a specific offset in the datagram as a MacAddress with a given endianity.
/// </summary>
/// </summary>
...
...
PcapDotNet/src/PcapDotNet.Packets/Igmp/IgmpQueryVersion3Layer.cs
View file @
e94f56bb
...
@@ -14,6 +14,10 @@ namespace PcapDotNet.Packets.Igmp
...
@@ -14,6 +14,10 @@ namespace PcapDotNet.Packets.Igmp
/// </summary>
/// </summary>
public
class
IgmpQueryVersion3Layer
:
IgmpLayer
,
IIgmpLayerWithGroupAddress
public
class
IgmpQueryVersion3Layer
:
IgmpLayer
,
IIgmpLayerWithGroupAddress
{
{
/// <summary>
/// Creates an instance of an IGMP Query Version 3 layer.
/// Default SourceAddresses is no addresses.
/// </summary>
public
IgmpQueryVersion3Layer
()
public
IgmpQueryVersion3Layer
()
{
{
SourceAddresses
=
new
IpV4Address
[
0
].
AsReadOnly
();
SourceAddresses
=
new
IpV4Address
[
0
].
AsReadOnly
();
...
...
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