Esempio n. 1
0
        /// <summary>
        ///  DHCPv6 ServerID should be auto-generated hex data
        /// </summary>
        //public void SetDHCPV6ServerId(string duid)
        //{
        //    _dhcpServerConfig.SetV6ServerIdOption(new v6ServerIdOption()
        //    {
        //        opaqueData = new opaqueData
        //        {
        //            hexValue = Util.FromHexString(duid)
        //        }
        //    });
        //}

        /// <summary>
        /// DHCPv4 ServerID must be a local IP address
        /// </summary>
        public void SetDHCPV4ServerId(string localAddress)
        {
            _dhcpServerConfig.SetV4ServerIdOption(new v4ServerIdOption()
            {
                ipAddress = localAddress
            });
        }