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
7a7ee933
Commit
7a7ee933
authored
Sep 06, 2014
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
706 warnings left.
parent
981b531d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
StringExtensions.cs
PcapDotNet/src/PcapDotNet.Base/StringExtensions.cs
+7
-0
UInt24.cs
PcapDotNet/src/PcapDotNet.Base/UInt24.cs
+5
-0
IpV6MobilityHeaderType.cs
...t.Packets/IpV6/ExtensionHeaders/IpV6MobilityHeaderType.cs
+4
-1
IpV6BindingAcknowledgementStatus.cs
...apDotNet.Packets/IpV6/IpV6BindingAcknowledgementStatus.cs
+3
-0
No files found.
PcapDotNet/src/PcapDotNet.Base/StringExtensions.cs
View file @
7a7ee933
...
...
@@ -9,6 +9,13 @@ namespace PcapDotNet.Base
/// </summary>
public
static
class
StringExtensions
{
/// <summary>
/// Returns whether all of the chars in the given string are in the [minValue, maxValue] range.
/// </summary>
/// <param name="value">The string to test.</param>
/// <param name="minValue">The first char in the chars range.</param>
/// <param name="maxValue">The last char in the chars range.</param>
/// <returns>True iff all of the string's chars are in the given range.</returns>
public
static
bool
AreAllCharactersInRange
(
this
string
value
,
char
minValue
,
char
maxValue
)
{
return
value
.
All
(
c
=>
c
>=
minValue
&&
c
<=
maxValue
);
...
...
PcapDotNet/src/PcapDotNet.Base/UInt24.cs
View file @
7a7ee933
...
...
@@ -19,6 +19,11 @@ namespace PcapDotNet.Base
/// </summary>
public
static
readonly
UInt24
MaxValue
=
(
UInt24
)
0x00FFFFFF
;
/// <summary>
/// Converts a 16 bit unsigned integer to a 24 bit unsigned integer.
/// </summary>
/// <param name="value">The 16 bit value to convert.</param>
/// <returns>The 24 bit value created.</returns>
public
static
implicit
operator
UInt24
(
ushort
value
)
{
return
new
UInt24
(
value
);
...
...
PcapDotNet/src/PcapDotNet.Packets/IpV6/ExtensionHeaders/IpV6MobilityHeaderType.cs
View file @
7a7ee933
namespace
PcapDotNet.Packets.IpV6
{
/// <summary>
/// The type of the IPv6 mobility header.
/// </summary>
public
enum
IpV6MobilityHeaderType
:
byte
{
/// <summary>
...
...
@@ -23,7 +26,7 @@ namespace PcapDotNet.Packets.IpV6
HomeTest
=
3
,
/// <summary>
/// RFC6275
/// RFC
6275
/// </summary>
CareOfTest
=
4
,
...
...
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6BindingAcknowledgementStatus.cs
View file @
7a7ee933
namespace
PcapDotNet.Packets.IpV6
{
/// <summary>
/// The Binidng Acknowledgement status in an IPv6 Mobility Binding Acknowledgement extension header.
/// </summary>
public
enum
IpV6BindingAcknowledgementStatus
:
byte
{
/// <summary>
...
...
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