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
7ec2cf6d
Commit
7ec2cf6d
authored
Nov 04, 2011
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DNS
parent
c56980ec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
408 additions
and
21 deletions
+408
-21
RandomDnsExtensions.cs
...t/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
+8
-0
DnsResourceData.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
+397
-20
DnsType.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
+3
-1
No files found.
PcapDotNet/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
View file @
7ec2cf6d
...
@@ -246,6 +246,14 @@ namespace PcapDotNet.Packets.TestUtils
...
@@ -246,6 +246,14 @@ namespace PcapDotNet.Packets.TestUtils
case
DnsType
.
Opt
:
case
DnsType
.
Opt
:
return
new
DnsResourceDataOptions
(
random
.
NextDnsOptions
());
return
new
DnsResourceDataOptions
(
random
.
NextDnsOptions
());
case
DnsType
.
Apl
:
return
new
DnsResourceDataAddressPrefixList
(
((
Func
<
DnsAddressPrefix
>)
(()
=>
new
DnsAddressPrefix
(
random
.
NextEnum
<
AddressFamily
>(),
random
.
NextByte
(),
random
.
NextBool
(),
random
.
NextDataSegment
(
random
.
Next
(
0
,
128
))))).
GenerateArray
(
random
.
Next
(
10
)));
default
:
default
:
return
new
DnsResourceDataAnything
(
random
.
NextDataSegment
(
random
.
Next
(
100
)));
return
new
DnsResourceDataAnything
(
random
.
NextDataSegment
(
random
.
Next
(
100
)));
}
}
...
...
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
View file @
7ec2cf6d
This diff is collapsed.
Click to expand it.
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
View file @
7ec2cf6d
...
@@ -292,12 +292,14 @@
...
@@ -292,12 +292,14 @@
/// <summary>
/// <summary>
/// RFC 2671.
/// RFC 2671.
/// OPT.
/// OPT.
/// Payload type: DnsResourceDataOptions.
/// </summary>
/// </summary>
Opt
=
41
,
Opt
=
41
,
/// <summary>
/// <summary>
/// RFC 3123.
/// RFC 3123.
/// APL.
/// Address Prefix List.
/// Payload type: DnsResourceDataAddressPrefixList.
/// </summary>
/// </summary>
Apl
=
42
,
Apl
=
42
,
...
...
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