private bool EqualsData(DnsOptionClientSubnet other) { return(other != null && Family.Equals(other.Family) && SourceNetmask.Equals(other.SourceNetmask) && ScopeNetmask.Equals(other.ScopeNetmask) && Address.Equals(other.Address)); }
internal static DnsOption CreateInstance(DnsOptionCode code, DataSegment data) { switch (code) { case DnsOptionCode.LongLivedQuery: return(DnsOptionLongLivedQuery.Read(data)); case DnsOptionCode.UpdateLease: return(DnsOptionUpdateLease.Read(data)); case DnsOptionCode.ClientSubnet: return(DnsOptionClientSubnet.Read(data)); case DnsOptionCode.NameServerIdentifier: default: return(new DnsOptionAnything(code, data)); } }
private bool EqualsData(DnsOptionClientSubnet other) { return other != null && Family.Equals(other.Family) && SourceNetmask.Equals(other.SourceNetmask) && ScopeNetmask.Equals(other.ScopeNetmask) && Address.Equals(other.Address); }