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
cb8fde40
Commit
cb8fde40
authored
Nov 28, 2015
by
Boaz Brickner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wireshark 1.12.8
parent
6f5691e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
WiresharkDatagramComparerDns.cs
.../src/PcapDotNet.Core.Test/WiresharkDatagramComparerDns.cs
+7
-14
No files found.
PcapDotNet/src/PcapDotNet.Core.Test/WiresharkDatagramComparerDns.cs
View file @
cb8fde40
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
using
System.Diagnostics.CodeAnalysis
;
using
System.Diagnostics.CodeAnalysis
;
using
System.Globalization
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Xml.Linq
;
using
System.Xml.Linq
;
using
Microsoft.VisualStudio.TestTools.UnitTesting
;
using
Microsoft.VisualStudio.TestTools.UnitTesting
;
using
PcapDotNet.Base
;
using
PcapDotNet.Base
;
using
PcapDotNet.Packets
;
using
PcapDotNet.Packets
;
using
PcapDotNet.Packets.Dns
;
using
PcapDotNet.Packets.Dns
;
using
PcapDotNet.Packets.IpV6
;
using
PcapDotNet.Packets.IpV6
;
using
PcapDotNet.TestUtils
;
namespace
PcapDotNet.Core.Test
namespace
PcapDotNet.Core.Test
{
{
...
@@ -269,8 +265,7 @@ namespace PcapDotNet.Core.Test
...
@@ -269,8 +265,7 @@ namespace PcapDotNet.Core.Test
{
{
_hipRendezvousServersIndex
=
0
;
_hipRendezvousServersIndex
=
0
;
_wksBitmapIndex
=
0
;
_wksBitmapIndex
=
0
;
// TODO: Uncomment this when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10615 is fixed.
_nxtTypeIndex
=
0
;
// _nxtTypeIndex = 0;
_spfTypeIndex
=
0
;
_spfTypeIndex
=
0
;
_txtTypeIndex
=
0
;
_txtTypeIndex
=
0
;
_nSecTypeIndex
=
0
;
_nSecTypeIndex
=
0
;
...
@@ -893,12 +888,11 @@ namespace PcapDotNet.Core.Test
...
@@ -893,12 +888,11 @@ namespace PcapDotNet.Core.Test
break
;
break
;
case
""
:
case
""
:
// TODO: Uncomment this when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10615 is fixed.
DnsType
actualType
=
nxtData
.
TypesExist
.
Skip
(
_nxtTypeIndex
++).
First
();
// DnsType actualType = nxtData.TypesExist.Skip(_nxtTypeIndex++).First();
DnsType
expectedType
;
// DnsType expectedType;
if
(!
TryGetDnsType
(
dataFieldShow
,
out
expectedType
))
// if (!TryGetDnsType(dataFieldShow, out expectedType))
throw
new
InvalidOperationException
(
string
.
Format
(
"Can't parse DNS field {0} : {1}"
,
dataFieldShow
,
actualType
));
// throw new InvalidOperationException(string.Format("Can't parse DNS field {0} : {1}", dataFieldShow, actualType));
Assert
.
AreEqual
(
expectedType
,
actualType
);
// Assert.AreEqual(expectedType, actualType);
return
false
;
return
false
;
default
:
default
:
...
@@ -1864,8 +1858,7 @@ namespace PcapDotNet.Core.Test
...
@@ -1864,8 +1858,7 @@ namespace PcapDotNet.Core.Test
private
int
_hipRendezvousServersIndex
;
private
int
_hipRendezvousServersIndex
;
private
int
_wksBitmapIndex
;
private
int
_wksBitmapIndex
;
// TODO: Uncomment this when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10615 is fixed.
private
int
_nxtTypeIndex
;
// private int _nxtTypeIndex;
private
int
_spfTypeIndex
;
private
int
_spfTypeIndex
;
private
int
_txtTypeIndex
;
private
int
_txtTypeIndex
;
private
int
_nSecTypeIndex
;
private
int
_nSecTypeIndex
;
...
...
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