public V6StaticAddressBinding(v6AddressBinding addressBinding, byte iaType) { this.addressBinding = addressBinding; this.iaType = iaType; dhcpConfigOptions = new DhcpV6ConfigOptions(addressBinding.addrConfigOptions); }
/** * Build a static address binding from the given address binding. * * @param binding the address binding * @param link the link * @return the static address binding * @throws DhcpServerConfigException if the static binding is invalid */ protected V6StaticAddressBinding BuildV6StaticBinding(v6AddressBinding binding, link link) { try { IPAddress inetAddr = IPAddress.Parse(binding.ipAddress); V6StaticAddressBinding sb = new V6StaticAddressBinding(binding, GetIaType()); SetIpAsUsed(link, inetAddr); return(sb); } catch (Exception ex) { log.Error("Invalid static binding address"); throw new Exception("Invalid static binding address", ex); } }
public void SetV6AddressBinding(v6AddressBinding addressBinding) { this.addressBinding = addressBinding; }