TDhcpRawOptionDataPckg Class Reference

class TDhcpRawOptionDataPckg : public TPckgDes< TUint8 >

TDhcpRawOptionDataPckg - provide simple interface for sending the dhcp raw option.

The data contained in the package is the opcode and the value of the raw option. The length of the buffer is set with the length of the descriptor containing 'the opcode + the raw option data' by the DHCP component.

e.g. The DNS option in DHCP message is represented by opcode 6. On requesting for DNS option using RConnection::Ioctl(), if the data received in the buffer is 6 192 168 0 1 192 168 0 2 then 6 is the DNS option code and 192 168 0 1 and 192 168 0 2 are the IP addresses of DNS servers.

Inherits from

Constructor & Destructor Documentation

TDhcpRawOptionDataPckg(TDes8 &)

TDhcpRawOptionDataPckg(TDes8 &aDes)[inline]

Parameters

TDes8 & aDesUser buffer to hold data fetched.

Member Functions Documentation

OpCode()

TUint8 OpCode()[inline]

SetOpCode(TUint8)

voidSetOpCode(TUint8aOpCode)[inline]

SetOpCode. Make sure the buffer is at least 4 bytes long.

Parameters

TUint8 aOpCodeDesired DHCP Raw option.