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
51f635a9
Commit
51f635a9
authored
Nov 12, 2011
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DNS
parent
0b18658d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
RandomDnsExtensions.cs
...t/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
+1
-0
DnsResourceData.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
+2
-0
DnsType.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
+1
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
View file @
51f635a9
...
@@ -172,6 +172,7 @@ namespace PcapDotNet.Packets.TestUtils
...
@@ -172,6 +172,7 @@ namespace PcapDotNet.Packets.TestUtils
return
new
DnsResourceDataNetworkServiceAccessPoint
(
random
.
NextDataSegment
(
1
+
random
.
Next
(
10
)),
random
.
NextUInt48
(),
random
.
NextByte
());
return
new
DnsResourceDataNetworkServiceAccessPoint
(
random
.
NextDataSegment
(
1
+
random
.
Next
(
10
)),
random
.
NextUInt48
(),
random
.
NextByte
());
case
DnsType
.
Sig
:
case
DnsType
.
Sig
:
case
DnsType
.
RrSig
:
return
new
DnsResourceDataSig
(
random
.
NextEnum
<
DnsType
>(),
random
.
NextEnum
<
DnsAlgorithm
>(),
random
.
NextByte
(),
random
.
NextUInt
(),
return
new
DnsResourceDataSig
(
random
.
NextEnum
<
DnsType
>(),
random
.
NextEnum
<
DnsAlgorithm
>(),
random
.
NextByte
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUShort
(),
random
.
NextDnsDomainName
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUShort
(),
random
.
NextDnsDomainName
(),
random
.
NextDataSegment
(
random
.
Next
(
100
)));
random
.
NextDataSegment
(
random
.
Next
(
100
)));
...
...
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
View file @
51f635a9
...
@@ -1338,6 +1338,7 @@ namespace PcapDotNet.Packets.Dns
...
@@ -1338,6 +1338,7 @@ namespace PcapDotNet.Packets.Dns
}
}
/// <summary>
/// <summary>
/// RFCs 2535, 4034.
/// <pre>
/// <pre>
/// +-----+--------------+-----------+--------+
/// +-----+--------------+-----------+--------+
/// | bit | 0-15 | 16-23 | 24-31 |
/// | bit | 0-15 | 16-23 | 24-31 |
...
@@ -1360,6 +1361,7 @@ namespace PcapDotNet.Packets.Dns
...
@@ -1360,6 +1361,7 @@ namespace PcapDotNet.Packets.Dns
/// </pre>
/// </pre>
/// </summary>
/// </summary>
[
DnsTypeRegistration
(
Type
=
DnsType
.
Sig
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
Sig
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
RrSig
)]
public
sealed
class
DnsResourceDataSig
:
DnsResourceData
,
IEquatable
<
DnsResourceDataSig
>
public
sealed
class
DnsResourceDataSig
:
DnsResourceData
,
IEquatable
<
DnsResourceDataSig
>
{
{
private
static
class
Offset
private
static
class
Offset
...
...
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
View file @
51f635a9
...
@@ -328,6 +328,7 @@
...
@@ -328,6 +328,7 @@
/// <summary>
/// <summary>
/// RFCs 3755, 4034.
/// RFCs 3755, 4034.
/// RRSIG.
/// RRSIG.
/// Payload type: DnsResourceDataSig.
/// </summary>
/// </summary>
RrSig
=
46
,
RrSig
=
46
,
...
...
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