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
d84f10c4
Commit
d84f10c4
authored
Sep 26, 2014
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPv6
Code Coverage 96.11%
parent
0a58b798
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
213 additions
and
34 deletions
+213
-34
WiresharkDatagramComparerIpV6MobilityHeader.cs
....Core.Test/WiresharkDatagramComparerIpV6MobilityHeader.cs
+1
-0
IpV6Tests.cs
PcapDotNet/src/PcapDotNet.Packets.Test/IpV6Tests.cs
+209
-31
IpV6ExtensionHeaderRoutingProtocolLowPowerAndLossyNetworks.cs
...ExtensionHeaderRoutingProtocolLowPowerAndLossyNetworks.cs
+2
-2
IpV6Layer.cs
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6Layer.cs
+1
-1
No files found.
PcapDotNet/src/PcapDotNet.Core.Test/WiresharkDatagramComparerIpV6MobilityHeader.cs
View file @
d84f10c4
...
@@ -115,6 +115,7 @@ namespace PcapDotNet.Core.Test
...
@@ -115,6 +115,7 @@ namespace PcapDotNet.Core.Test
protocol
==
IpV4Protocol
.
SpriteRpc
||
protocol
==
IpV4Protocol
.
SpriteRpc
||
protocol
==
IpV4Protocol
.
CombatRadioUserDatagram
||
protocol
==
IpV4Protocol
.
CombatRadioUserDatagram
||
protocol
==
IpV4Protocol
.
Gmtp
||
protocol
==
IpV4Protocol
.
Gmtp
||
protocol
==
IpV4Protocol
.
MobileHostRoutingProtocol
||
protocol
==
IpV4Protocol
.
Shim6
||
// TODO: Implement Shim6.
protocol
==
IpV4Protocol
.
Shim6
||
// TODO: Implement Shim6.
protocol
==
IpV4Protocol
.
RemoteVirtualDiskProtocol
))
protocol
==
IpV4Protocol
.
RemoteVirtualDiskProtocol
))
return
false
;
return
false
;
...
...
PcapDotNet/src/PcapDotNet.Packets.Test/IpV6Tests.cs
View file @
d84f10c4
This diff is collapsed.
Click to expand it.
PcapDotNet/src/PcapDotNet.Packets/IpV6/ExtensionHeaders/IpV6ExtensionHeaderRoutingProtocolLowPowerAndLossyNetworks.cs
View file @
d84f10c4
...
@@ -91,10 +91,10 @@ namespace PcapDotNet.Packets.IpV6
...
@@ -91,10 +91,10 @@ namespace PcapDotNet.Packets.IpV6
/// </param>
/// </param>
/// <param name="addresses">Routing addresses.</param>
/// <param name="addresses">Routing addresses.</param>
public
IpV6ExtensionHeaderRoutingProtocolLowPowerAndLossyNetworks
(
IpV4Protocol
nextHeader
,
byte
segmentsLeft
,
byte
commonPrefixLengthForNonLastAddresses
,
public
IpV6ExtensionHeaderRoutingProtocolLowPowerAndLossyNetworks
(
IpV4Protocol
nextHeader
,
byte
segmentsLeft
,
byte
commonPrefixLengthForNonLastAddresses
,
byte
commonPrefixLengthForLastAddress
,
params
IpV6Address
[]
addresses
)
byte
commonPrefixLengthForLastAddress
,
params
IpV6Address
[]
addresses
)
:
base
(
nextHeader
,
segmentsLeft
)
:
base
(
nextHeader
,
segmentsLeft
)
{
{
if
(
addresses
==
null
)
if
(
addresses
==
null
)
throw
new
ArgumentNullException
(
"addresses"
);
throw
new
ArgumentNullException
(
"addresses"
);
if
(
commonPrefixLengthForNonLastAddresses
>
MaxCommonPrefixLength
)
if
(
commonPrefixLengthForNonLastAddresses
>
MaxCommonPrefixLength
)
{
{
...
...
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6Layer.cs
View file @
d84f10c4
...
@@ -164,7 +164,7 @@ namespace PcapDotNet.Packets.IpV6
...
@@ -164,7 +164,7 @@ namespace PcapDotNet.Packets.IpV6
{
{
return
base
.
GetHashCode
()
^
return
base
.
GetHashCode
()
^
Sequence
.
GetHashCode
(
BitSequence
.
Merge
(
TrafficClass
,
HopLimit
),
Sequence
.
GetHashCode
(
BitSequence
.
Merge
(
TrafficClass
,
HopLimit
),
FlowLabel
,
Source
,
CurrentDestination
,
NextHeader
)
^
ExtensionHeaders
.
Sequence
GetHashCode
();
FlowLabel
,
Source
,
CurrentDestination
,
NextHeader
)
^
ExtensionHeaders
.
GetHashCode
();
}
}
/// <summary>
/// <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