Commit 14e2149e authored by Brickner_cp's avatar Brickner_cp

IPv6

parent 6e912488
......@@ -94,7 +94,25 @@ namespace PcapDotNet.Packets.IpV6
public class IpV6MobilityOptions : Options<IpV6MobilityOption>
{
public IpV6MobilityOptions(DataSegment data)
/// <summary>
/// Creates options from a list of options.
/// </summary>
/// <param name="options">The list of options.</param>
public IpV6MobilityOptions(IList<IpV6MobilityOption> options)
: base(options, true, null)
{
}
/// <summary>
/// Creates options from a list of options.
/// </summary>
/// <param name="options">The list of options.</param>
public IpV6MobilityOptions(params IpV6MobilityOption[] options)
: this((IList<IpV6MobilityOption>)options)
{
}
internal IpV6MobilityOptions(DataSegment data)
: this(Read(data))
{
}
......@@ -104,6 +122,14 @@ namespace PcapDotNet.Packets.IpV6
{
}
/// <summary>
/// No options instance.
/// </summary>
public static IpV6MobilityOptions None
{
get { return _none; }
}
public static Tuple<IList<IpV6MobilityOption>, bool> Read(DataSegment data)
{
int offset = 0;
......@@ -177,5 +203,7 @@ namespace PcapDotNet.Packets.IpV6
return registraionAttributes.First();
}
private static readonly IpV6MobilityOptions _none = new IpV6MobilityOptions();
}
}
\ No newline at end of file
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