/// <summary>
 /// True iff the OriginateTimestamp, ReceiveTimestamp and the TransmitTimestamp fields are equal.
 /// </summary>
 private bool EqualPayload(IcmpTimestampLayer other)
 {
     return other != null &&
            OriginateTimestamp == other.OriginateTimestamp &&
            ReceiveTimestamp == other.ReceiveTimestamp &&
            TransmitTimestamp == other.TransmitTimestamp;
 }
 /// <summary>
 /// True iff the OriginateTimestamp, ReceiveTimestamp and the TransmitTimestamp fields are equal.
 /// </summary>
 private bool EqualPayload(IcmpTimestampLayer other)
 {
     return(other != null &&
            OriginateTimestamp == other.OriginateTimestamp &&
            ReceiveTimestamp == other.ReceiveTimestamp &&
            TransmitTimestamp == other.TransmitTimestamp);
 }
 private bool EqualPayload(IcmpTimestampLayer other)
 {
     if (other != null && this.OriginateTimestamp == other.OriginateTimestamp && this.ReceiveTimestamp == other.ReceiveTimestamp)
     {
         return(this.TransmitTimestamp == other.TransmitTimestamp);
     }
     return(false);
 }
        public override ILayer ExtractLayer()
        {
            IcmpTimestampLayer icmpTimestampLayer = new IcmpTimestampLayer();

            icmpTimestampLayer.Checksum           = new ushort?(this.Checksum);
            icmpTimestampLayer.Identifier         = this.Identifier;
            icmpTimestampLayer.SequenceNumber     = this.SequenceNumber;
            icmpTimestampLayer.OriginateTimestamp = this.OriginateTimestamp;
            icmpTimestampLayer.ReceiveTimestamp   = this.ReceiveTimestamp;
            icmpTimestampLayer.TransmitTimestamp  = this.TransmitTimestamp;
            return((ILayer)icmpTimestampLayer);
        }