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
8e1d67cd
Commit
8e1d67cd
authored
Oct 21, 2011
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DNS
parent
2d605154
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
251 additions
and
0 deletions
+251
-0
RandomDnsExtensions.cs
...t/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
+8
-0
DnsResourceData.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
+242
-0
DnsType.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
+1
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
View file @
8e1d67cd
...
@@ -142,6 +142,14 @@ namespace PcapDotNet.Packets.TestUtils
...
@@ -142,6 +142,14 @@ namespace PcapDotNet.Packets.TestUtils
random
.
NextEnum
<
DnsKeyProtocol
>(),
random
.
NextEnum
<
DnsAlgorithm
>(),
random
.
NextEnum
<
DnsKeyProtocol
>(),
random
.
NextEnum
<
DnsAlgorithm
>(),
random
.
NextBool
()
?
(
ushort
?)
random
.
NextUShort
()
:
null
,
random
.
NextDataSegment
(
random
.
Next
(
100
)));
random
.
NextBool
()
?
(
ushort
?)
random
.
NextUShort
()
:
null
,
random
.
NextDataSegment
(
random
.
Next
(
100
)));
case
DnsType
.
Px
:
return
new
DnsResourceDataX400Pointer
(
random
.
NextUShort
(),
random
.
NextDnsDomainName
(),
random
.
NextDnsDomainName
());
case
DnsType
.
GPos
:
return
new
DnsResourceDataGeographicalPosition
((
random
.
Next
(-
90
,
90
)
*
random
.
NextDouble
()).
ToString
(
"0.##########"
),
(
random
.
Next
(-
180
,
180
)
*
random
.
NextDouble
()).
ToString
(
"0.##########"
),
(
random
.
Next
(-
500
,
50000
)
*
random
.
NextDouble
()).
ToString
(
"0.##########"
));
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 @
8e1d67cd
This diff is collapsed.
Click to expand it.
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
View file @
8e1d67cd
...
@@ -187,6 +187,7 @@
...
@@ -187,6 +187,7 @@
/// <summary>
/// <summary>
/// RFC 2163.
/// RFC 2163.
/// X.400 mail mapping information.
/// X.400 mail mapping information.
/// Payload type: DnsResourceDataX400Pointer.
/// </summary>
/// </summary>
Px
=
26
,
Px
=
26
,
...
...
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