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
b2a71f17
Commit
b2a71f17
authored
Oct 30, 2011
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DNS
parent
bffe9119
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
RandomDnsExtensions.cs
...t/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
+4
-0
DnsResourceData.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
+1
-0
DnsType.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
+1
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets.TestUtils/RandomDnsExtensions.cs
View file @
b2a71f17
...
@@ -82,6 +82,7 @@ namespace PcapDotNet.Packets.TestUtils
...
@@ -82,6 +82,7 @@ namespace PcapDotNet.Packets.TestUtils
{
{
case
DnsType
.
A
:
case
DnsType
.
A
:
return
new
DnsResourceDataIpV4
(
random
.
NextIpV4Address
());
return
new
DnsResourceDataIpV4
(
random
.
NextIpV4Address
());
case
DnsType
.
Ns
:
case
DnsType
.
Ns
:
case
DnsType
.
Md
:
case
DnsType
.
Md
:
case
DnsType
.
Mf
:
case
DnsType
.
Mf
:
...
@@ -91,10 +92,13 @@ namespace PcapDotNet.Packets.TestUtils
...
@@ -91,10 +92,13 @@ namespace PcapDotNet.Packets.TestUtils
case
DnsType
.
Mr
:
case
DnsType
.
Mr
:
case
DnsType
.
Ptr
:
case
DnsType
.
Ptr
:
case
DnsType
.
NsapPtr
:
case
DnsType
.
NsapPtr
:
case
DnsType
.
DName
:
return
new
DnsResourceDataDomainName
(
random
.
NextDnsDomainName
());
return
new
DnsResourceDataDomainName
(
random
.
NextDnsDomainName
());
case
DnsType
.
Soa
:
case
DnsType
.
Soa
:
return
new
DnsResourceDataStartOfAuthority
(
random
.
NextDnsDomainName
(),
random
.
NextDnsDomainName
(),
return
new
DnsResourceDataStartOfAuthority
(
random
.
NextDnsDomainName
(),
random
.
NextDnsDomainName
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
());
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
(),
random
.
NextUInt
());
case
DnsType
.
Null
:
case
DnsType
.
Null
:
return
new
DnsResourceDataAnything
(
random
.
NextDataSegment
(
random
.
Next
(
65536
)));
return
new
DnsResourceDataAnything
(
random
.
NextDataSegment
(
random
.
Next
(
65536
)));
...
...
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsResourceData.cs
View file @
b2a71f17
...
@@ -200,6 +200,7 @@ namespace PcapDotNet.Packets.Dns
...
@@ -200,6 +200,7 @@ namespace PcapDotNet.Packets.Dns
[
DnsTypeRegistration
(
Type
=
DnsType
.
Mr
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
Mr
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
Ptr
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
Ptr
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
NsapPtr
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
NsapPtr
)]
[
DnsTypeRegistration
(
Type
=
DnsType
.
DName
)]
public
sealed
class
DnsResourceDataDomainName
:
DnsResourceData
,
IEquatable
<
DnsResourceDataDomainName
>
public
sealed
class
DnsResourceDataDomainName
:
DnsResourceData
,
IEquatable
<
DnsResourceDataDomainName
>
{
{
public
DnsResourceDataDomainName
()
public
DnsResourceDataDomainName
()
...
...
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsType.cs
View file @
b2a71f17
...
@@ -278,6 +278,7 @@
...
@@ -278,6 +278,7 @@
/// <summary>
/// <summary>
/// RFC 2672.
/// RFC 2672.
/// DNAME.
/// DNAME.
/// Payload type: DnsResourceDataDomainName.
/// </summary>
/// </summary>
DName
=
39
,
DName
=
39
,
...
...
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