public override IDHCPOption FromStream(Stream s)
        {
            DHCPOptionParameterRequestList result = new DHCPOptionParameterRequestList();

            while (true)
            {
                int c = s.ReadByte();
                if (c < 0)
                {
                    break;
                }
                result.m_RequestList.Add((TDHCPOption)c);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public bool IsRequestedParameter(TDHCPOption optionType)
        {
            DHCPOptionParameterRequestList dhcpOptionParameterRequestList = (DHCPOptionParameterRequestList)GetOption(TDHCPOption.ParameterRequestList);

            return(dhcpOptionParameterRequestList != null && dhcpOptionParameterRequestList.RequestList.Contains(optionType));
        }