Commit 25040777 authored by Brickner_cp's avatar Brickner_cp

IPv6

parent 82d94913
...@@ -81,6 +81,8 @@ namespace PcapDotNet.Packets.Test ...@@ -81,6 +81,8 @@ namespace PcapDotNet.Packets.Test
// IpV6 // IpV6
Assert.AreEqual(ipV6Layer, packet.Ethernet.IpV6.ExtractLayer(), "IP Layer"); Assert.AreEqual(ipV6Layer, packet.Ethernet.IpV6.ExtractLayer(), "IP Layer");
Assert.IsNotNull(ipV6Layer.GetHashCode());
Assert.AreEqual(ipV6Layer.Source + " -> " + ipV6Layer.CurrentDestination, ipV6Layer.ToString());
/* /*
if (packet.Ethernet.IpV6.NextHeader == IpV4Protocol.Tcp) if (packet.Ethernet.IpV6.NextHeader == IpV4Protocol.Tcp)
Assert.IsInstanceOfType(packet.Ethernet.IpV6.Transport, typeof(TcpDatagram)); Assert.IsInstanceOfType(packet.Ethernet.IpV6.Transport, typeof(TcpDatagram));
......
...@@ -93,9 +93,9 @@ namespace PcapDotNet.Packets.IpV6 ...@@ -93,9 +93,9 @@ namespace PcapDotNet.Packets.IpV6
IpV4Protocol nextHeader; IpV4Protocol nextHeader;
if (NextHeader == null) if (NextHeader == null)
{ {
if (!ExtensionHeaders.IsNullOrEmpty()) if (ExtensionHeaders.FirstHeader != null)
{ {
nextHeader = ExtensionHeaders[0].Protocol; nextHeader = ExtensionHeaders.FirstHeader.Value;
} }
else else
{ {
......
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