A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
DHCPv4 Client and Server
Collaboration diagram for DHCPv4 Client and Server:

Topics

 DHCP module tests

Classes

class  ns3::DhcpClient
 Implements the functionality of a DHCP client. More...
class  ns3::DhcpHeader
 BOOTP header with DHCP messages. More...
class  ns3::DhcpHelper
 The helper class used to configure and install DHCP applications on nodes. More...
class  ns3::DhcpServer
 Implements the functionality of a DHCP server. More...

Typedefs

using ns3::DhcpChaddr = std::array<uint8_t, 16>
 This is the Chaddr field, which is 16 bytes long.

Functions

std::string ns3::DhcpChaddrToString (const DhcpChaddr &chaddr)
 Function to pretty-print a Chaddr.

Detailed Description

Typedef Documentation

◆ DhcpChaddr

using ns3::DhcpChaddr = std::array<uint8_t, 16>

This is the Chaddr field, which is 16 bytes long.

Originally it was meant to hold the Client Hardware Address (hence the name), but later RFCs refers to it just as the Client Identifier.

Definition at line 44 of file dhcp-header.h.

Function Documentation

◆ DhcpChaddrToString()

std::string ns3::DhcpChaddrToString ( const DhcpChaddr & chaddr)

Function to pretty-print a Chaddr.

Parameters
chaddrthe Chaddr
Returns
A formatted string

Definition at line 36 of file dhcp-header.cc.

Referenced by ns3::DhcpServer::AddStaticDhcpEntry(), ns3::DhcpServer::SendOffer(), ns3::DhcpClient::StartApplication(), and ns3::DhcpServer::TimerHandler().

Here is the caller graph for this function: