コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 private bool EqualPayload(IcmpTimestampLayer other)
 {
     if (other != null && this.OriginateTimestamp == other.OriginateTimestamp && this.ReceiveTimestamp == other.ReceiveTimestamp)
     {
         return(this.TransmitTimestamp == other.TransmitTimestamp);
     }
     return(false);
 }
コード例 #4
0
        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);
        }