private bool EqualsData(IpV6FlowIdentificationSubOptionUnknown other)
 {
     return other != null &&
            Data.Equals(other.Data);
 }
示例#2
0
 public void IpV6FlowIdentificationSubOptionUnknown()
 {
     IpV6FlowIdentificationSubOptionUnknown subOption =
         new IpV6FlowIdentificationSubOptionUnknown((IpV6FlowIdentificationSubOptionType)100, DataSegment.Empty);
     Packet packet = PacketBuilder.Build(
         DateTime.Now,
         new EthernetLayer(),
         new IpV6Layer
         {
             ExtensionHeaders = new IpV6ExtensionHeaders(
                 new IpV6ExtensionHeaderMobilityBindingError(
                     IpV4Protocol.Skip, 0, IpV6BindingErrorStatus.UnrecognizedMobilityHeaderTypeValue, IpV6Address.Zero,
                     new IpV6MobilityOptions(
                         new IpV6MobilityOptionFlowIdentification(0, 0, IpV6FlowIdentificationStatus.FlowIdentifierNotFound,
                                                                  new IpV6FlowIdentificationSubOptions(subOption)))))
         });
     Assert.IsTrue(packet.IsValid);
     IpV6FlowIdentificationSubOption actualSubOption =
         ((IpV6MobilityOptionFlowIdentification)((IpV6ExtensionHeaderMobility)packet.Ethernet.IpV6.ExtensionHeaders[0]).MobilityOptions[0]).SubOptions[0];
     Assert.AreEqual(subOption, actualSubOption);
     Assert.AreEqual(subOption.GetHashCode(), actualSubOption.GetHashCode());
 }
示例#3
0
 private bool EqualsData(IpV6FlowIdentificationSubOptionUnknown other)
 {
     return(other != null &&
            Data.Equals(other.Data));
 }