Esempio n. 1
0
 /// <summary>
 /// IGMP layers are equal if they have the same message type, query version, similar max response time and the same specific type fields.
 /// </summary>
 public bool Equals(IgmpLayer other)
 {
     return(other != null &&
            MessageTypeValue == other.MessageTypeValue &&
            QueryVersion == other.QueryVersion &&
            EqualsVersionSpecific(other));
 }
Esempio n. 2
0
 /// <summary>
 /// IGMP layers are equal if they have the same message type, query version, similar max response time and the same specific type fields.
 /// </summary>
 public bool Equals(IgmpLayer other)
 {
     return other != null &&
            MessageTypeValue == other.MessageTypeValue &&
            QueryVersion == other.QueryVersion &&
            EqualsVersionSpecific(other);
 }
Esempio n. 3
0
 /// <summary>
 /// IGMP layers are equal if they have the same message type, query version, similar max response time and the same specific type fields.
 /// </summary>
 public bool Equals(IgmpLayer other)
 {
     return other != null &&
            MessageType == other.MessageType &&
            QueryVersion == other.QueryVersion &&
            EqualMaxResponseTime(MaxResponseTimeValue, other.MaxResponseTimeValue) &&
            EqualFields(other);
 }
Esempio n. 4
0
 /// <summary>
 /// IGMP layers are equal if they have the same message type, query version, similar max response time and the same specific type fields.
 /// </summary>
 public bool Equals(IgmpLayer other)
 {
     return(other != null &&
            MessageType == other.MessageType &&
            QueryVersion == other.QueryVersion &&
            EqualMaxResponseTime(MaxResponseTimeValue, other.MaxResponseTimeValue) &&
            EqualFields(other));
 }
Esempio n. 5
0
 public bool Equals(IgmpLayer other)
 {
     if (other != null && this.MessageType == other.MessageType && (this.QueryVersion == other.QueryVersion && IgmpLayer.EqualMaxResponseTime(this.MaxResponseTimeValue, other.MaxResponseTimeValue)))
     {
         return(this.EqualFields(other));
     }
     return(false);
 }
Esempio n. 6
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected abstract bool EqualFields(IgmpLayer other);
 protected override bool EqualFields(IgmpLayer other)
 {
     return(this.EqualFields(other as IgmpReportVersion3Layer));
 }
Esempio n. 8
0
 /// <summary>
 /// true iff the the group address is equal.
 /// </summary>
 protected override sealed bool EqualFields(IgmpLayer other)
 {
     return EqualFields(other as IgmpSimpleLayer);
 }
 /// <summary>
 /// true iff the GroupAddress, IsSuppressRouterSideProcessing, QueryRobustnessVariable and SourceAddresses fields are equal
 /// and the QueryInterval is similar.
 /// </summary>
 protected override bool EqualFields(IgmpLayer other)
 {
     return(EqualFields(other as IgmpQueryVersion3Layer));
 }
Esempio n. 10
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected abstract bool EqualFields(IgmpLayer other);
Esempio n. 11
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected override sealed bool EqualsVersionSpecific(IgmpLayer other)
 {
     return(EqualsVersionSpecific(other as IgmpVersion0Layer));
 }
Esempio n. 12
0
 /// <summary>
 /// true iff the group records are equal.
 /// </summary>
 protected override bool EqualFields(IgmpLayer other)
 {
     return EqualFields(other as IgmpReportVersion3Layer);
 }
Esempio n. 13
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected override sealed bool EqualsVersionSpecific(IgmpLayer other)
 {
     return EqualsVersionSpecific(other as IgmpVersion1PlusLayer);
 }
Esempio n. 14
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected abstract bool EqualsVersionSpecific(IgmpLayer other);
Esempio n. 15
0
 /// <summary>
 /// true iff the fields that are not mutual to all IGMP layers are equal.
 /// </summary>
 protected abstract bool EqualsVersionSpecific(IgmpLayer other);
Esempio n. 16
0
 /// <summary>
 /// true iff the the group address is equal.
 /// </summary>
 protected sealed override bool EqualFields(IgmpLayer other)
 {
     return(EqualFields(other as IgmpSimpleLayer));
 }