internal override IpV6MobilityOption CreateInstance(DataSegment data) { if (data.Length != OptionDataLength) { return(null); } IpV6MobileNodeGroupIdentifierSubtype subtype = (IpV6MobileNodeGroupIdentifierSubtype)data[Offset.SubType]; uint mobileNodeGroupIdentifier = data.ReadUInt(Offset.MobileNodeGroupIdentifier, Endianity.Big); return(new IpV6MobilityOptionMobileNodeGroupIdentifier(subtype, mobileNodeGroupIdentifier)); }
/// <summary> /// Creates an instance from sub type and mobile node group identifier. /// </summary> /// <param name="subtype"> /// Identifies the specific mobile node's group type. /// </param> /// <param name="mobileNodeGroupIdentifier"> /// Contains the mobile node's group identifier. /// The value of (0) is reserved and should not be used. /// The value of (1) ALL-SESSIONS is the default group of all mobility sessions established between a given local mobility anchor and a mobile access /// gateway. /// </param> public IpV6MobilityOptionMobileNodeGroupIdentifier(IpV6MobileNodeGroupIdentifierSubtype subtype, uint mobileNodeGroupIdentifier) : base(IpV6MobilityOptionType.MobileNodeGroupIdentifier) { Subtype = subtype; MobileNodeGroupIdentifier = mobileNodeGroupIdentifier; }