13#include "ns3/buffer.h"
15#include "ns3/nstime.h"
103 void SetDuid(std::vector<uint8_t> identifier);
iterator in a Buffer instance
Class providing a hash for DUIDs.
size_t operator()(const Duid &x) const noexcept
Returns the hash of a DUID.
Implements the unique identifier for DHCPv6.
void SetHardwareType(uint16_t hardwareType)
Set the hardware type.
uint32_t Deserialize(Buffer::Iterator start, uint32_t len)
Deserialize the DUID.
uint8_t GetLength() const
Get the length of the DUID.
Type m_duidType
Type of the DUID.
Time m_time
Time at which the DUID is generated.
void SetDuidType(Type duidType)
Set the DUID type.
void SetDuid(std::vector< uint8_t > identifier)
Set the identifier as the DUID.
void Serialize(Buffer::Iterator start) const
Serialize the DUID.
uint16_t m_hardwareType
Valid hardware type assigned by IANA.
bool IsInvalid() const
Check if the DUID is invalid.
bool operator==(const Duid &duid) const
Comparison operator.
void SetTime(Time time)
Set the time at which DUID is generated.
std::vector< uint8_t > GetIdentifier() const
Return the identifier of the node.
uint32_t GetSerializedSize() const
Get the DUID serialized size.
Type GetDuidType() const
Get the DUID type.
uint16_t GetHardwareType() const
Get the hardware type.
void Initialize(Ptr< Node > node)
Initialize the DUID for a client or server.
Duid()
Default constructor.
std::vector< uint8_t > m_identifier
Identifier of the node in bytes.
Time GetTime() const
Get the time at which the DUID is generated.
friend bool operator<(const Duid &a, const Duid &b)
Less than operator.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
std::istream & operator>>(std::istream &is, Angles &a)