Commit caa898ce authored by Brickner_cp's avatar Brickner_cp

IPv6

Code Coverage 95.68%
parent 19c96296
...@@ -111,6 +111,7 @@ namespace PcapDotNet.Core.Test ...@@ -111,6 +111,7 @@ namespace PcapDotNet.Core.Test
protocol == IpV4Protocol.ActiveNetworks || protocol == IpV4Protocol.ActiveNetworks ||
protocol == IpV4Protocol.SpectraLinkRadioProtocol || protocol == IpV4Protocol.SpectraLinkRadioProtocol ||
protocol == IpV4Protocol.MobileAdHocNetwork || protocol == IpV4Protocol.MobileAdHocNetwork ||
protocol == IpV4Protocol.Shim6 || // TODO: Implement Shim6.
protocol == IpV4Protocol.RemoteVirtualDiskProtocol)) protocol == IpV4Protocol.RemoteVirtualDiskProtocol))
return false; return false;
......
using System;
namespace PcapDotNet.Packets.IpV6 namespace PcapDotNet.Packets.IpV6
{ {
/// <summary> /// <summary>
...@@ -21,6 +23,8 @@ namespace PcapDotNet.Packets.IpV6 ...@@ -21,6 +23,8 @@ namespace PcapDotNet.Packets.IpV6
public IpV6MobilityOptionCgaParameters(DataSegment cgaParameters) public IpV6MobilityOptionCgaParameters(DataSegment cgaParameters)
: base(IpV6MobilityOptionType.CgaParameters, cgaParameters) : base(IpV6MobilityOptionType.CgaParameters, cgaParameters)
{ {
if (cgaParameters.Length > OptionDataMaxLength)
throw new ArgumentOutOfRangeException("cgaParameters", cgaParameters, string.Format("Must not exceed {0} bytes.", OptionDataMaxLength));
} }
/// <summary> /// <summary>
......
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