Exemplo n.º 1
0
        public override IDHCPOption FromStream(Stream s)
        {
            DHCPOptionClientIdentifier result = new DHCPOptionClientIdentifier();

            m_HardwareType = (DHCPMessage.THardwareType)ParseHelper.ReadUInt8(s);
            result.m_Data  = new byte[s.Length - s.Position];
            s.Read(result.m_Data, 0, result.m_Data.Length);
            return(result);
        }
Exemplo n.º 2
0
 public DHCPOptionClientIdentifier(DHCPMessage.THardwareType hardwareType, byte[] data)
     : base(TDHCPOption.ClientIdentifier)
 {
     m_HardwareType = hardwareType;
     m_Data         = data;
 }
Exemplo n.º 3
0
 public DHCPOptionClientIdentifier()
     : base(TDHCPOption.ClientIdentifier)
 {
     m_HardwareType = DHCPMessage.THardwareType.Unknown;
     m_Data         = new byte[0];
 }