Concrete IPv6 specific PbbMessage class. More...
#include "packetbb.h"
Public Member Functions | |
PbbMessageIpv6 () | |
Public Member Functions inherited from ns3::SimpleRefCount< PbbMessage > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Protected Member Functions | |
Ptr< PbbAddressBlock > | AddressBlockDeserialize (Buffer::Iterator &start) const override |
Deserialize an address block. More... | |
Address | DeserializeOriginatorAddress (Buffer::Iterator &start) const override |
Deserialize the originator address. More... | |
PbbAddressLength | GetAddressLength () const override |
Returns address length (IPV4 3 or IPV6 15) More... | |
void | PrintOriginatorAddress (std::ostream &os) const override |
Print the originator address. More... | |
void | SerializeOriginatorAddress (Buffer::Iterator &start) const override |
Serialize the originator address. More... | |
Additional Inherited Members |
Concrete IPv6 specific PbbMessage class.
This message will only contain IPv6 addresses.
Definition at line 1154 of file packetbb.h.
ns3::PbbMessageIpv6::PbbMessageIpv6 | ( | ) |
Definition at line 1760 of file packetbb.cc.
References NS_LOG_FUNCTION.
|
overrideprotectedvirtual |
Deserialize an address block.
start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1801 of file packetbb.cc.
References NS_LOG_FUNCTION, and two-ray-to-three-gpp-ch-calibration::start.
|
overrideprotectedvirtual |
Deserialize the originator address.
start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1783 of file packetbb.cc.
References ns3::Ipv6Address::Deserialize(), GetAddressLength(), NS_LOG_FUNCTION, two-ray-to-three-gpp-ch-calibration::res, and two-ray-to-three-gpp-ch-calibration::start.
|
overrideprotectedvirtual |
Returns address length (IPV4 3 or IPV6 15)
Returns message size in bytes - 1 IPv4 = 4 - 1 = 3, IPv6 = 16 - 1 = 15
Implements ns3::PbbMessage.
Definition at line 1766 of file packetbb.cc.
References ns3::IPV6, and NS_LOG_FUNCTION.
Referenced by DeserializeOriginatorAddress(), and SerializeOriginatorAddress().
|
overrideprotectedvirtual |
Print the originator address.
os | the output stream |
Implements ns3::PbbMessage.
Definition at line 1794 of file packetbb.cc.
References ns3::Ipv6Address::ConvertFrom(), ns3::PbbMessage::GetOriginatorAddress(), NS_LOG_FUNCTION, and ns3::Ipv6Address::Print().
|
overrideprotectedvirtual |
Serialize the originator address.
start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1773 of file packetbb.cc.
References ns3::Ipv6Address::ConvertFrom(), GetAddressLength(), ns3::PbbMessage::GetOriginatorAddress(), NS_LOG_FUNCTION, ns3::Ipv6Address::Serialize(), and two-ray-to-three-gpp-ch-calibration::start.