Commit 74149b5a authored by Brickner_cp's avatar Brickner_cp

Wireshark 1.12.1.

parent 10552b97
...@@ -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:
......
...@@ -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())
{ {
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment