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
74149b5a
Commit
74149b5a
authored
Nov 15, 2014
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wireshark 1.12.1.
parent
10552b97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
WiresharkDatagramComparerIpV4.cs
...src/PcapDotNet.Core.Test/WiresharkDatagramComparerIpV4.cs
+8
-2
WiresharkDatagramComparerIpV6.cs
...src/PcapDotNet.Core.Test/WiresharkDatagramComparerIpV6.cs
+3
-0
WiresharkDatagramComparerIpV6MobilityHeader.cs
....Core.Test/WiresharkDatagramComparerIpV6MobilityHeader.cs
+15
-0
No files found.
PcapDotNet/src/PcapDotNet.Core.Test/WiresharkDatagramComparerIpV4.cs
View file @
74149b5a
...
@@ -616,7 +616,10 @@ namespace PcapDotNet.Core.Test
...
@@ -616,7 +616,10 @@ namespace PcapDotNet.Core.Test
case
(
IpV4OptionType
)
133
:
case
(
IpV4OptionType
)
133
:
// TODO: Support 133.
// TODO: Support 133.
field
.
AssertShow
(
"Extended Security ("
+
option
.
Length
+
" bytes)"
);
if
(
option
.
Length
>=
3
)
field
.
AssertShow
(
"Extended Security ("
+
option
.
Length
+
" bytes)"
);
else
field
.
AssertShow
(
"Extended Security (with option length = "
+
option
.
Length
+
" bytes; should be >= 3)"
);
break
;
break
;
case
(
IpV4OptionType
)
134
:
case
(
IpV4OptionType
)
134
:
...
@@ -627,7 +630,10 @@ namespace PcapDotNet.Core.Test
...
@@ -627,7 +630,10 @@ namespace PcapDotNet.Core.Test
case
(
IpV4OptionType
)
149
:
case
(
IpV4OptionType
)
149
:
// TODO: Support 149.
// TODO: Support 149.
field
.
AssertShow
(
"Selective Directed Broadcast (11 bytes)"
);
if
(
option
.
Length
>=
6
)
field
.
AssertShow
(
"Selective Directed Broadcast ("
+
option
.
Length
+
" bytes)"
);
else
field
.
AssertShow
(
"Selective Directed Broadcast (with option length = "
+
option
.
Length
+
" bytes; should be >= 6)"
);
break
;
break
;
default
:
default
:
...
...
PcapDotNet/src/PcapDotNet.Core.Test/WiresharkDatagramComparerIpV6.cs
View file @
74149b5a
...
@@ -30,6 +30,9 @@ namespace PcapDotNet.Core.Test
...
@@ -30,6 +30,9 @@ namespace PcapDotNet.Core.Test
switch
(
field
.
Name
())
switch
(
field
.
Name
())
{
{
case
"ipv6.version"
:
case
"ipv6.version"
:
// TODO: Remove this when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10706 is fixed.
if
(
field
.
Show
()
!=
ipV6Datagram
.
Version
.
ToString
())
return
false
;
field
.
AssertShowDecimal
(
ipV6Datagram
.
Version
);
field
.
AssertShowDecimal
(
ipV6Datagram
.
Version
);
foreach
(
XElement
subfield
in
field
.
Fields
())
foreach
(
XElement
subfield
in
field
.
Fields
())
{
{
...
...
PcapDotNet/src/PcapDotNet.Core.Test/WiresharkDatagramComparerIpV6MobilityHeader.cs
View file @
74149b5a
...
@@ -1699,6 +1699,21 @@ namespace PcapDotNet.Core.Test
...
@@ -1699,6 +1699,21 @@ namespace PcapDotNet.Core.Test
++
requestIndex
;
++
requestIndex
;
break
;
break
;
case
"mip6.vsm.vendorId"
:
// TODO: Remove this condition when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10676 is fixed.
if
(
requestIndex
==
contextRequest
.
Requests
.
Count
)
continue
;
optionSubfield
.
AssertValue
(
contextRequest
.
Requests
[
requestIndex
].
Option
.
Subsegment
(
0
,
4
));
break
;
case
"mip6.vsm.subtype"
:
// TODO: Remove this condition when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10676 is fixed.
if
(
requestIndex
==
contextRequest
.
Requests
.
Count
)
continue
;
optionSubfield
.
AssertValue
(
contextRequest
.
Requests
[
requestIndex
].
Option
.
Subsegment
(
4
,
1
));
++
requestIndex
;
break
;
case
""
:
case
""
:
// TODO: Remove this condition when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10676 is fixed.
// TODO: Remove this condition when https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=10676 is fixed.
if
(
requestIndex
==
contextRequest
.
Requests
.
Count
)
if
(
requestIndex
==
contextRequest
.
Requests
.
Count
)
...
...
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