Implements the client and server identifier options. More...
#include "dhcp6-options.h"
Inheritance diagram for ns3::IdentifierOption:
Collaboration diagram for ns3::IdentifierOption:Public Member Functions | |
| IdentifierOption () | |
| Default constructor. | |
| IdentifierOption (uint16_t hardwareType, Address linkLayerAddress, Time time=Time()) | |
| Constructor. | |
| Duid | GetDuid () const |
| Get the DUID object. | |
| void | SetDuid (Duid duid) |
| Set the DUID. | |
Public Member Functions inherited from ns3::Options | |
| Options () | |
| Default constructor. | |
| Options (OptionType code, uint16_t length) | |
| Constructor. | |
| OptionType | GetOptionCode () const |
| Get the option code. | |
| uint16_t | GetOptionLength () const |
| Get the option length. | |
| void | SetOptionCode (OptionType code) |
| Set the option code. | |
| void | SetOptionLength (uint16_t length) |
| Set the option length. | |
Private Attributes | |
| Duid | m_duid |
| Unique identifier of the node. | |
Additional Inherited Members | |
Public Types inherited from ns3::Options | |
| enum class | OptionType { OPTION_INIT = 0 , OPTION_CLIENTID = 1 , OPTION_SERVERID = 2 , OPTION_IA_NA = 3 , OPTION_IA_TA = 4 , OPTION_IAADDR = 5 , OPTION_ORO = 6 , OPTION_PREFERENCE = 7 , OPTION_ELAPSED_TIME = 8 , OPTION_RELAY_MSG = 9 , OPTION_AUTH = 11 , OPTION_UNICAST = 12 , OPTION_STATUS_CODE = 13 , OPTION_RAPID_COMMIT = 14 , OPTION_USER_CLASS = 15 , OPTION_VENDOR_CLASS = 16 , OPTION_VENDOR_OPTS = 17 , OPTION_INTERFACE_ID = 18 , OPTION_RECONF_MSG = 19 , OPTION_RECONF_ACCEPT = 20 , OPTION_IA_PD = 25 , OPTION_IAPREFIX = 26 , OPTION_INFORMATION_REFRESH_TIME = 32 , OPTION_SOL_MAX_RT = 82 , OPTION_INF_MAX_RT = 83 } |
| Enum to identify the option type. More... | |
| enum class | StatusCodeValues { Success = 0 , UnspecFail = 1 , NoAddrsAvail = 2 , NoBinding = 3 , NotOnLink = 4 , UseMulticast = 5 , NoPrefixAvail = 6 } |
| Enum to identify the status code of the operation. More... | |
Implements the client and server identifier options.
Definition at line 133 of file dhcp6-options.h.
| ns3::IdentifierOption::IdentifierOption | ( | ) |
Default constructor.
Definition at line 65 of file dhcp6-options.cc.
| ns3::IdentifierOption::IdentifierOption | ( | uint16_t | hardwareType, |
| Address | linkLayerAddress, | ||
| Time | time = Time() ) |
Constructor.
| hardwareType | The hardware type. |
| linkLayerAddress | The link-layer address. |
| time | The time at which the DUID is generated. |
Definition at line 69 of file dhcp6-options.cc.
References ns3::Address::CopyTo(), ns3::Address::GetLength(), ns3::Time::IsZero(), ns3::Duid::LL, ns3::Duid::LLT, m_duid, and NS_LOG_FUNCTION.
Here is the call graph for this function:| Duid ns3::IdentifierOption::GetDuid | ( | ) | const |
Get the DUID object.
Definition at line 99 of file dhcp6-options.cc.
References m_duid.
Referenced by ns3::Dhcp6Server::ProcessSolicit(), ns3::Dhcp6Server::RenewRebindLeases(), ns3::Dhcp6Server::SendAdvertise(), ns3::Dhcp6Server::SendReply(), ns3::Dhcp6Client::SendRequest(), ns3::Dhcp6Server::UpdateBindings(), and ns3::Dhcp6Client::ValidateAdvertise().
Here is the caller graph for this function:| void ns3::IdentifierOption::SetDuid | ( | Duid | duid | ) |
Set the DUID.
| duid | The DUID. |
Definition at line 92 of file dhcp6-options.cc.
References m_duid, and NS_LOG_FUNCTION.
Referenced by ns3::Dhcp6Header::AddIdentifierOption().
Here is the caller graph for this function:
|
private |
Unique identifier of the node.
Definition at line 162 of file dhcp6-options.h.
Referenced by IdentifierOption(), GetDuid(), and SetDuid().