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
19ed05da
Commit
19ed05da
authored
Sep 08, 2012
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPv6
parent
d6af7b3a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
1 deletion
+50
-1
IpV6Datagram.cs
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6Datagram.cs
+50
-1
No files found.
PcapDotNet/src/PcapDotNet.Packets/IpV6/IpV6Datagram.cs
View file @
19ed05da
...
@@ -2228,7 +2228,56 @@ namespace PcapDotNet.Packets.IpV6
...
@@ -2228,7 +2228,56 @@ namespace PcapDotNet.Packets.IpV6
buffer
.
Write
(
ref
offset
,
SubTlvs
);
buffer
.
Write
(
ref
offset
,
SubTlvs
);
}
}
}
}
// IlnpNonce = 0x8B,
/// <summary>
/// RFC irtf-rrg-ilnp-noncev6-06.
/// http://tools.ietf.org/html/draft-irtf-rrg-ilnp-noncev6-06
/// IPv6 Nonce Destination Option for ILNPv6.
/// <pre>
/// +-----+-------------+--------------+
/// | Bit | 0-7 | 8-15 |
/// +-----+-------------+--------------+
/// | 0 | Option Type | Opt Data Len |
/// +-----+-------------+--------------+
/// | 16 | Nonce Value |
/// | ... | |
/// +-----+----------------------------+
/// </pre>
/// </summary>
[
IpV6OptionTypeRegistration
(
IpV6OptionType
.
IlnpNonce
)]
public
class
IpV6OptionIlnpNonce
:
IpV6OptionComplex
{
public
IpV6OptionIlnpNonce
(
DataSegment
nonce
)
:
base
(
IpV6OptionType
.
IlnpNonce
)
{
Nonce
=
nonce
;
}
/// <summary>
/// An unpredictable cryptographically random value used to prevent off-path attacks on an ILNP session.
/// </summary>
public
DataSegment
Nonce
{
get
;
private
set
;
}
internal
IpV6OptionIlnpNonce
()
:
this
(
DataSegment
.
Empty
)
{
}
internal
override
IpV6Option
CreateInstance
(
DataSegment
data
)
{
return
new
IpV6OptionIlnpNonce
(
data
);
}
internal
override
int
DataLength
{
get
{
return
Nonce
.
Length
;
}
}
internal
override
void
WriteData
(
byte
[]
buffer
,
ref
int
offset
)
{
buffer
.
Write
(
ref
offset
,
Nonce
);
}
}
public
class
IpV6Options
:
Options
<
IpV6Option
>
public
class
IpV6Options
:
Options
<
IpV6Option
>
{
{
...
...
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