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
16498b62
Commit
16498b62
authored
Jan 27, 2012
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DNS
Code coverage 93.95%
parent
a31b8194
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
255 additions
and
2 deletions
+255
-2
DnsTests.cs
PcapDotNet/src/PcapDotNet.Packets.Test/DnsTests.cs
+243
-0
DnsDataResourceRecord.cs
...otNet/src/PcapDotNet.Packets/Dns/DnsDataResourceRecord.cs
+1
-1
DnsDatagram.cs
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsDatagram.cs
+10
-0
DnsResourceDataHostIdentityProtocol.cs
...s/Dns/ResourceData/DnsResourceDataHostIdentityProtocol.cs
+1
-1
No files found.
PcapDotNet/src/PcapDotNet.Packets.Test/DnsTests.cs
View file @
16498b62
This diff is collapsed.
Click to expand it.
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsDataResourceRecord.cs
View file @
16498b62
PcapDotNet/src/PcapDotNet.Packets/Dns/DnsDatagram.cs
View file @
16498b62
...
...
@@ -291,6 +291,16 @@ namespace PcapDotNet.Packets.Dns
}
}
public
IEnumerable
<
DnsResourceRecord
>
ResourceRecords
{
get
{
return
Queries
.
Cast
<
DnsResourceRecord
>().
Concat
(
DataResourceRecords
);
}
}
public
IEnumerable
<
DnsDataResourceRecord
>
DataResourceRecords
{
get
{
return
Answers
.
Concat
(
Authorities
).
Concat
(
Additionals
);
}
}
public
DnsOptResourceRecord
OptionsRecord
{
get
...
...
PcapDotNet/src/PcapDotNet.Packets/Dns/ResourceData/DnsResourceDataHostIdentityProtocol.cs
View file @
16498b62
...
...
@@ -43,7 +43,7 @@ namespace PcapDotNet.Packets.Dns
{
if
(
hostIdentityTag
.
Length
>
byte
.
MaxValue
)
throw
new
ArgumentOutOfRangeException
(
"hostIdentityTag"
,
hostIdentityTag
.
Length
,
string
.
Format
(
"Cannot be bigger than {0}."
,
byte
.
MaxValue
));
if
(
hostIdentityTag
.
Length
>
ushort
.
MaxValue
)
if
(
publicKey
.
Length
>
ushort
.
MaxValue
)
throw
new
ArgumentOutOfRangeException
(
"publicKey"
,
publicKey
.
Length
,
string
.
Format
(
"Cannot be bigger than {0}."
,
ushort
.
MaxValue
));
HostIdentityTag
=
hostIdentityTag
;
PublicKeyAlgorithm
=
publicKeyAlgorithm
;
...
...
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