public DHCPv6ScopeAddressProperties( IPv6Address start, IPv6Address end, IEnumerable <IPv6Address> excluded, DHCPv6TimeScale t1 = null, DHCPv6TimeScale t2 = null, TimeSpan?preferredLifeTime = null, TimeSpan?validLifeTime = null, Boolean?reuseAddressIfPossible = null, AddressAllocationStrategies?addressAllocationStrategy = null, Boolean?supportDirectUnicast = null, Boolean?acceptDecline = null, Boolean?informsAreAllowd = null, Boolean?rapitCommitEnabled = null, DHCPv6PrefixDelgationInfo prefixDelgationInfo = null ) : base(start, end, excluded, reuseAddressIfPossible, addressAllocationStrategy, supportDirectUnicast, acceptDecline, informsAreAllowd) { this.PreferredLeaseTime = preferredLifeTime; this.ValidLeaseTime = validLifeTime; RapitCommitEnabled = rapitCommitEnabled; PrefixDelgationInfo = prefixDelgationInfo; T1 = t1; T2 = t2; if (preferredLifeTime.HasValue || validLifeTime.HasValue || t1 != null || t2 != null) { UseDynamicRewnewTime = false; } }
internal override void OverrideProperties(DHCPv6ScopeAddressProperties range) { base.OverrideProperties(range); if (range.RapitCommitEnabled.HasValue == true) { this.RapitCommitEnabled = range.RapitCommitEnabled.Value; } if (range.T1 != null) { this.T1 = new DHCPv6TimeScale(range.T1); } if (range.T2 != null) { this.T2 = new DHCPv6TimeScale(range.T2); } if (range.PreferredLeaseTime.HasValue == true) { this.PreferredLeaseTime = range.PreferredLeaseTime.Value; } if (range.ValidLeaseTime.HasValue == true) { this.ValidLeaseTime = range.ValidLeaseTime.Value; } if (range.PrefixDelgationInfo != null) { this.PrefixDelgationInfo = range.PrefixDelgationInfo.Copy(); } }
public DHCPv6ScopeAddressProperties( IPv6Address start, IPv6Address end, IEnumerable <IPv6Address> excluded, DynamicRenewTime dynamicRenewTime, Boolean?reuseAddressIfPossible = null, AddressAllocationStrategies?addressAllocationStrategy = null, Boolean?supportDirectUnicast = null, Boolean?acceptDecline = null, Boolean?informsAreAllowd = null, Boolean?rapitCommitEnabled = null, DHCPv6PrefixDelgationInfo prefixDelgationInfo = null ) : base(start, end, excluded, reuseAddressIfPossible, addressAllocationStrategy, supportDirectUnicast, acceptDecline, informsAreAllowd, dynamicRenewTime) { RapitCommitEnabled = rapitCommitEnabled; PrefixDelgationInfo = prefixDelgationInfo; }