BOOTP header with DHCP messages supports the following options: Subnet Mask (1), Address Request (50), Refresh Lease Time (51), DHCP Message Type (53), DHCP Server ID (54), Renew Time (58), Rebind Time (59) and End (255) of BOOTP. More...
#include "dhcp-header.h"
Public Types | |
enum | Messages { DHCPDISCOVER = 0 , DHCPOFFER = 1 , DHCPREQ = 2 , DHCPACK = 4 , DHCPNACK = 5 } |
DHCP messages. More... | |
enum | Options { OP_MASK = 1 , OP_ROUTE = 3 , OP_ADDREQ = 50 , OP_LEASE = 51 , OP_MSGTYPE = 53 , OP_SERVID = 54 , OP_RENEW = 58 , OP_REBIND = 59 , OP_END = 255 } |
BOOTP options. More... | |
Public Member Functions | |
DhcpHeader () | |
Constructor. More... | |
~DhcpHeader () | |
Destructor. More... | |
Address | GetChaddr (void) |
Get the Address of the client. More... | |
Ipv4Address | GetDhcps (void) const |
Get the information about the DHCP server. More... | |
uint32_t | GetLease (void) const |
Return the lease time of the IPv4Address. More... | |
uint32_t | GetMask (void) const |
Return the mask of the network. More... | |
uint32_t | GetRebind (void) const |
Return the Rebind time of the address. More... | |
uint32_t | GetRenew (void) const |
Return the Renewal time of the address. More... | |
Ipv4Address | GetReq (void) const |
Get the IPv4Address requested by the client. More... | |
Ipv4Address | GetRouter (void) const |
Return the Ipv4Address of gateway to be used. More... | |
uint32_t | GetTran (void) const |
Get the transaction id. More... | |
uint8_t | GetType (void) const |
Return the type of DHCP message. More... | |
Ipv4Address | GetYiaddr (void) const |
Get the IPv4Address of the client. More... | |
void | ResetOpt () |
Reset the BOOTP options. More... | |
void | SetChaddr (Address addr) |
Set the Address of the device. More... | |
void | SetChaddr (uint8_t *addr, uint8_t len) |
Set the Address of the device. More... | |
void | SetDhcps (Ipv4Address addr) |
Set the DHCP server information. More... | |
void | SetHWType (uint8_t htype, uint8_t hlen) |
Set the hardware information. More... | |
void | SetLease (uint32_t time) |
Set the lease time of the IPv4Address. More... | |
void | SetMask (uint32_t addr) |
Set the mask of the IPv4Address. More... | |
void | SetRebind (uint32_t time) |
Set the Rebind time of the IPv4Address. More... | |
void | SetRenew (uint32_t time) |
Set the Renewal time of the IPv4Address. More... | |
void | SetReq (Ipv4Address addr) |
Set the Ipv4Address requested by the client. More... | |
void | SetRouter (Ipv4Address addr) |
Set the Ipv4Address of gateway to be used. More... | |
void | SetTime () |
Set the time when message is sent. More... | |
void | SetTran (uint32_t tran) |
Set the transaction ID. More... | |
void | SetType (uint8_t type) |
Set the type of BOOTP and DHCP messages. More... | |
void | SetYiaddr (Ipv4Address addr) |
Set the IPv4Address of the client. More... | |
Public Member Functions inherited from ns3::Header | |
virtual | ~Header () |
virtual uint32_t | Deserialize (Buffer::Iterator start)=0 |
Deserialize the object from a buffer iterator. More... | |
virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
Deserialize the object from a buffer iterator. More... | |
Public Member Functions inherited from ns3::Chunk | |
virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
Deserialize the object from a buffer iterator. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Header | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Chunk | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Member Functions | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
virtual uint32_t | GetSerializedSize (void) const |
virtual void | Print (std::ostream &os) const |
virtual void | Serialize (Buffer::Iterator start) const |
Private Attributes | |
uint8_t | m_bootp |
The BOOTP Message type. More... | |
uint8_t | m_chaddr [16] |
The address identifier. More... | |
Ipv4Address | m_ciAddr |
The IP address of the client. More... | |
Ipv4Address | m_dhcps |
DHCP server IP address. More... | |
uint8_t | m_file [128] |
File name (Padded for now) More... | |
uint16_t | m_flags |
BOOTP flags. More... | |
Ipv4Address | m_giAddr |
Relay Agent IP address. More... | |
uint8_t | m_hLen |
The hardware length. More... | |
uint8_t | m_hops |
The number of hops covered by the message. More... | |
uint8_t | m_hType |
The hardware type. More... | |
uint32_t | m_lease |
The lease time of the address. More... | |
uint32_t | m_len |
The length of the header. More... | |
uint8_t | m_magic_cookie [4] |
DHCP Magic Cookie. More... | |
uint32_t | m_mask |
The mask of the network. More... | |
uint8_t | m_op |
The DHCP Message type. More... | |
bool | m_opt [255] |
BOOTP option list. More... | |
uint32_t | m_rebind |
The rebinding time for the client. More... | |
uint32_t | m_renew |
The renewal time for the client. More... | |
Ipv4Address | m_req |
Requested Address. More... | |
Ipv4Address | m_route |
Router Option Address. More... | |
uint16_t | m_secs |
Seconds elapsed. More... | |
Ipv4Address | m_siAddr |
Next Server IP address. More... | |
uint8_t | m_sname [64] |
Server name (Padded for now) More... | |
uint32_t | m_xid |
The transaction number. More... | |
Ipv4Address | m_yiAddr |
Your (client) IP address. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
BOOTP header with DHCP messages supports the following options: Subnet Mask (1), Address Request (50), Refresh Lease Time (51), DHCP Message Type (53), DHCP Server ID (54), Renew Time (58), Rebind Time (59) and End (255) of BOOTP.
Introspection did not find any typical Config paths.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | op (1) | htype (1) | hlen (1) | hops (1) | +---------------+---------------+---------------+---------------+ | xid (4) | +-------------------------------+-------------------------------+ | secs (2) | flags (2) | +-------------------------------+-------------------------------+ | ciaddr (4) | +---------------------------------------------------------------+ | yiaddr (4) | +---------------------------------------------------------------+ | siaddr (4) | +---------------------------------------------------------------+ | giaddr (4) | +---------------------------------------------------------------+ | | | chaddr (16) | | | | | +---------------------------------------------------------------+ | | | sname (64) | +---------------------------------------------------------------+ | | | file (128) | +---------------------------------------------------------------+ | | | options (variable) | +---------------------------------------------------------------+
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 568 bytes (on a 64-bit architecture).
Definition at line 81 of file dhcp-header.h.
DHCP messages.
Enumerator | |
---|---|
DHCPDISCOVER | Code for DHCP Discover. |
DHCPOFFER | Code for DHCP Offer. |
DHCPREQ | Code for DHCP Request. |
DHCPACK | Code for DHCP ACK. |
DHCPNACK | Code for DHCP NACK. |
Definition at line 115 of file dhcp-header.h.
BOOTP options.
Enumerator | |
---|---|
OP_MASK | BOOTP Option 1: Address Mask. |
OP_ROUTE | BOOTP Option 3: Router Option. |
OP_ADDREQ | BOOTP Option 50: Requested Address. |
OP_LEASE | |
OP_MSGTYPE | BOOTP Option 53: DHCP Message Type. |
OP_SERVID | BOOTP Option 54: Server Identifier. |
OP_RENEW | |
OP_REBIND | |
OP_END | BOOTP Option 255: END. |
Definition at line 101 of file dhcp-header.h.
ns3::DhcpHeader::DhcpHeader | ( | ) |
ns3::DhcpHeader::~DhcpHeader | ( | ) |
Destructor.
Definition at line 70 of file dhcp-header.cc.
|
privatevirtual |
start | an iterator which points to where the header should read from. |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.
Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.
Implements ns3::Header.
Definition at line 352 of file dhcp-header.cc.
References m_bootp, m_chaddr, m_ciAddr, m_dhcps, m_file, m_flags, m_giAddr, m_hLen, m_hops, m_hType, m_lease, m_len, m_magic_cookie, m_mask, m_op, m_rebind, m_renew, m_req, m_route, m_secs, m_siAddr, m_sname, m_xid, m_yiAddr, NS_LOG_WARN, OP_ADDREQ, OP_END, OP_LEASE, OP_MASK, OP_MSGTYPE, OP_REBIND, OP_RENEW, OP_ROUTE, OP_SERVID, ns3::Buffer::Iterator::Read(), ns3::ReadFrom(), ns3::Buffer::Iterator::ReadNtohU16(), ns3::Buffer::Iterator::ReadNtohU32(), ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU32(), ns3::Buffer::Iterator::ReadU8(), and visualizer.core::start().
Address ns3::DhcpHeader::GetChaddr | ( | void | ) |
Get the Address of the client.
Note: the address is always 16-bytes long.
Definition at line 125 of file dhcp-header.cc.
References ns3::Address::CopyFrom(), and m_chaddr.
Referenced by ns3::DhcpClient::NetHandler(), ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
Ipv4Address ns3::DhcpHeader::GetDhcps | ( | void | ) | const |
Get the information about the DHCP server.
Definition at line 152 of file dhcp-header.cc.
References m_dhcps.
Referenced by ns3::DhcpClient::Select().
|
privatevirtual |
Get the most derived TypeId for this Object.
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implements ns3::ObjectBase.
Definition at line 272 of file dhcp-header.cc.
References GetTypeId().
uint32_t ns3::DhcpHeader::GetLease | ( | void | ) | const |
Return the lease time of the IPv4Address.
Definition at line 212 of file dhcp-header.cc.
References m_lease.
Referenced by ns3::DhcpClient::Select().
uint32_t ns3::DhcpHeader::GetMask | ( | void | ) | const |
Return the mask of the network.
Definition at line 182 of file dhcp-header.cc.
References m_mask.
Referenced by ns3::DhcpClient::Select().
uint32_t ns3::DhcpHeader::GetRebind | ( | void | ) | const |
Return the Rebind time of the address.
Definition at line 242 of file dhcp-header.cc.
References m_rebind.
Referenced by ns3::DhcpClient::Select().
uint32_t ns3::DhcpHeader::GetRenew | ( | void | ) | const |
Return the Renewal time of the address.
Definition at line 227 of file dhcp-header.cc.
References m_renew.
Referenced by ns3::DhcpClient::Select().
Ipv4Address ns3::DhcpHeader::GetReq | ( | void | ) | const |
Get the IPv4Address requested by the client.
Definition at line 167 of file dhcp-header.cc.
References m_req.
Referenced by ns3::DhcpServer::NetHandler(), and ns3::DhcpServer::SendAck().
Ipv4Address ns3::DhcpHeader::GetRouter | ( | void | ) | const |
Return the Ipv4Address of gateway to be used.
Definition at line 197 of file dhcp-header.cc.
References m_route.
Referenced by ns3::DhcpClient::Select().
|
privatevirtual |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.
Implements ns3::Header.
Definition at line 257 of file dhcp-header.cc.
References m_len.
uint32_t ns3::DhcpHeader::GetTran | ( | void | ) | const |
Get the transaction id.
Definition at line 101 of file dhcp-header.cc.
References m_xid.
Referenced by ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
uint8_t ns3::DhcpHeader::GetType | ( | void | ) | const |
Return the type of DHCP message.
Definition at line 85 of file dhcp-header.cc.
References m_op.
Referenced by ns3::DhcpClient::NetHandler(), and ns3::DhcpServer::NetHandler().
|
static |
Get the type ID.
Definition at line 262 of file dhcp-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
Ipv4Address ns3::DhcpHeader::GetYiaddr | ( | void | ) | const |
Get the IPv4Address of the client.
Definition at line 137 of file dhcp-header.cc.
References m_yiAddr.
Referenced by ns3::DhcpClient::Select().
|
privatevirtual |
os | output stream This method is used by Packet::Print to print the content of a header as ascii data to a c++ output stream. Although the header is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5 |
Implements ns3::Header.
Definition at line 277 of file dhcp-header.cc.
References m_op.
void ns3::DhcpHeader::ResetOpt | ( | ) |
Reset the BOOTP options.
Definition at line 247 of file dhcp-header.cc.
References m_len, m_opt, and OP_END.
Referenced by ns3::DhcpClient::Boot(), ns3::DhcpClient::Request(), ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
|
privatevirtual |
start | an iterator which points to where the header should be written. |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.
Implements ns3::Header.
Definition at line 283 of file dhcp-header.cc.
References m_bootp, m_chaddr, m_ciAddr, m_dhcps, m_file, m_flags, m_giAddr, m_hLen, m_hops, m_hType, m_lease, m_magic_cookie, m_mask, m_op, m_opt, m_rebind, m_renew, m_req, m_route, m_secs, m_siAddr, m_sname, m_xid, m_yiAddr, OP_ADDREQ, OP_END, OP_LEASE, OP_MASK, OP_MSGTYPE, OP_REBIND, OP_RENEW, OP_ROUTE, OP_SERVID, visualizer.core::start(), ns3::Buffer::Iterator::Write(), ns3::Buffer::Iterator::WriteHtonU16(), ns3::Buffer::Iterator::WriteHtonU32(), ns3::WriteTo(), ns3::Buffer::Iterator::WriteU16(), ns3::Buffer::Iterator::WriteU32(), and ns3::Buffer::Iterator::WriteU8().
void ns3::DhcpHeader::SetChaddr | ( | Address | addr | ) |
Set the Address of the device.
Only the relevant bits are considered (i.e., not the type and length)
addr | Address of the device |
Definition at line 111 of file dhcp-header.cc.
References ns3::Address::CopyTo(), ns3::Address::GetLength(), m_chaddr, and NS_ASSERT_MSG.
Referenced by ns3::DhcpClient::Boot(), ns3::DhcpClient::Request(), ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetChaddr | ( | uint8_t * | addr, |
uint8_t | len | ||
) |
Set the Address of the device.
Definition at line 118 of file dhcp-header.cc.
References m_chaddr, and NS_ASSERT_MSG.
void ns3::DhcpHeader::SetDhcps | ( | Ipv4Address | addr | ) |
Set the DHCP server information.
addr | IPv4Address of the server |
Definition at line 142 of file dhcp-header.cc.
References m_dhcps, m_len, m_opt, and OP_SERVID.
Referenced by ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetHWType | ( | uint8_t | htype, |
uint8_t | hlen | ||
) |
Set the hardware information.
htype | Hardware type |
hlen | Hardware length |
Definition at line 90 of file dhcp-header.cc.
void ns3::DhcpHeader::SetLease | ( | uint32_t | time | ) |
Set the lease time of the IPv4Address.
time | 32 bit time |
Definition at line 202 of file dhcp-header.cc.
References m_lease, m_len, m_opt, and OP_LEASE.
Referenced by ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetMask | ( | uint32_t | addr | ) |
Set the mask of the IPv4Address.
addr | 32 bit mask |
Definition at line 172 of file dhcp-header.cc.
References m_len, m_mask, m_opt, and OP_MASK.
Referenced by ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetRebind | ( | uint32_t | time | ) |
Set the Rebind time of the IPv4Address.
time | 32 bit time |
Definition at line 232 of file dhcp-header.cc.
References m_len, m_opt, m_rebind, and OP_REBIND.
Referenced by ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetRenew | ( | uint32_t | time | ) |
Set the Renewal time of the IPv4Address.
time | 32 bit time |
Definition at line 217 of file dhcp-header.cc.
References m_len, m_opt, m_renew, and OP_RENEW.
Referenced by ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetReq | ( | Ipv4Address | addr | ) |
Set the Ipv4Address requested by the client.
addr | Ipv4Address requested by the client |
Definition at line 157 of file dhcp-header.cc.
References m_len, m_opt, m_req, and OP_ADDREQ.
Referenced by ns3::DhcpClient::Request().
void ns3::DhcpHeader::SetRouter | ( | Ipv4Address | addr | ) |
Set the Ipv4Address of gateway to be used.
addr | The Ipv4Address of the gateway |
Definition at line 187 of file dhcp-header.cc.
References m_len, m_opt, m_route, and OP_ROUTE.
Referenced by ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetTime | ( | ) |
Set the time when message is sent.
Definition at line 106 of file dhcp-header.cc.
References ns3::Time::GetSeconds(), m_secs, and ns3::Simulator::Now().
Referenced by ns3::DhcpClient::Boot(), ns3::DhcpClient::Request(), ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetTran | ( | uint32_t | tran | ) |
Set the transaction ID.
tran | The transaction number |
Definition at line 96 of file dhcp-header.cc.
References m_xid.
Referenced by ns3::DhcpClient::Boot(), ns3::DhcpClient::Request(), ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetType | ( | uint8_t | type | ) |
Set the type of BOOTP and DHCP messages.
type | The type of message |
Definition at line 74 of file dhcp-header.cc.
References m_bootp, m_len, m_op, m_opt, and OP_MSGTYPE.
Referenced by ns3::DhcpClient::Boot(), ns3::DhcpClient::Request(), ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
void ns3::DhcpHeader::SetYiaddr | ( | Ipv4Address | addr | ) |
Set the IPv4Address of the client.
addr | The client Ipv4Address |
Definition at line 132 of file dhcp-header.cc.
References m_yiAddr.
Referenced by ns3::DhcpServer::SendAck(), and ns3::DhcpServer::SendOffer().
|
private |
The BOOTP Message type.
Definition at line 294 of file dhcp-header.h.
Referenced by Deserialize(), Serialize(), and SetType().
|
private |
The address identifier.
Definition at line 303 of file dhcp-header.h.
Referenced by Deserialize(), GetChaddr(), Serialize(), and SetChaddr().
|
private |
The IP address of the client.
Definition at line 305 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
DHCP server IP address.
Definition at line 308 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), GetDhcps(), Serialize(), and SetDhcps().
|
private |
File name (Padded for now)
Definition at line 312 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
BOOTP flags.
Definition at line 302 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
Relay Agent IP address.
Definition at line 307 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
The hardware length.
Definition at line 296 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), Serialize(), and SetHWType().
|
private |
The number of hops covered by the message.
Definition at line 297 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
The hardware type.
Definition at line 295 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), Serialize(), and SetHWType().
|
private |
The lease time of the address.
Definition at line 314 of file dhcp-header.h.
Referenced by Deserialize(), GetLease(), Serialize(), and SetLease().
|
private |
The length of the header.
Definition at line 300 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), GetSerializedSize(), ResetOpt(), SetDhcps(), SetLease(), SetMask(), SetRebind(), SetRenew(), SetReq(), SetRouter(), and SetType().
|
private |
DHCP Magic Cookie.
Definition at line 313 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
The mask of the network.
Definition at line 299 of file dhcp-header.h.
Referenced by Deserialize(), GetMask(), Serialize(), and SetMask().
|
private |
The DHCP Message type.
Definition at line 293 of file dhcp-header.h.
Referenced by Deserialize(), GetType(), Print(), Serialize(), and SetType().
|
private |
BOOTP option list.
Definition at line 317 of file dhcp-header.h.
Referenced by ResetOpt(), Serialize(), SetDhcps(), SetLease(), SetMask(), SetRebind(), SetRenew(), SetReq(), SetRouter(), and SetType().
|
private |
The rebinding time for the client.
Definition at line 316 of file dhcp-header.h.
Referenced by Deserialize(), GetRebind(), Serialize(), and SetRebind().
|
private |
The renewal time for the client.
Definition at line 315 of file dhcp-header.h.
Referenced by Deserialize(), GetRenew(), Serialize(), and SetRenew().
|
private |
Requested Address.
Definition at line 309 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), GetReq(), Serialize(), and SetReq().
|
private |
Router Option Address.
Definition at line 310 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), GetRouter(), Serialize(), and SetRouter().
|
private |
Seconds elapsed.
Definition at line 301 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), Serialize(), and SetTime().
|
private |
Next Server IP address.
Definition at line 306 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
Server name (Padded for now)
Definition at line 311 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), and Serialize().
|
private |
The transaction number.
Definition at line 298 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), GetTran(), Serialize(), and SetTran().
|
private |
Your (client) IP address.
Definition at line 304 of file dhcp-header.h.
Referenced by DhcpHeader(), Deserialize(), GetYiaddr(), Serialize(), and SetYiaddr().