Concrete IPv4 specific PbbMessage. More...
#include "packetbb.h"
Public Member Functions | |
PbbMessageIpv4 () | |
virtual | ~PbbMessageIpv4 () |
Public Member Functions inherited from ns3::SimpleRefCount< PbbMessage > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment operator. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Protected Member Functions | |
virtual Ptr< PbbAddressBlock > | AddressBlockDeserialize (Buffer::Iterator &start) const |
Deserialize an address block. More... | |
virtual Address | DeserializeOriginatorAddress (Buffer::Iterator &start) const |
Deserialize the originator address. More... | |
virtual PbbAddressLength | GetAddressLength (void) const |
Returns address length (IPV4 3 or IPV6 15) More... | |
virtual void | PrintOriginatorAddress (std::ostream &os) const |
Print the originator address. More... | |
virtual void | SerializeOriginatorAddress (Buffer::Iterator &start) const |
Serialize the originator address. More... | |
Additional Inherited Members |
Concrete IPv4 specific PbbMessage.
This message will only contain IPv4 addresses.
Definition at line 1127 of file packetbb.h.
ns3::PbbMessageIpv4::PbbMessageIpv4 | ( | ) |
Definition at line 1726 of file packetbb.cc.
References NS_LOG_FUNCTION.
|
virtual |
Definition at line 1731 of file packetbb.cc.
References NS_LOG_FUNCTION.
|
protectedvirtual |
Deserialize an address block.
start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1772 of file packetbb.cc.
References NS_LOG_FUNCTION, and visualizer.core::start().
|
protectedvirtual |
Deserialize the originator address.
start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1754 of file packetbb.cc.
References ns3::Ipv4Address::Deserialize(), GetAddressLength(), NS_LOG_FUNCTION, and visualizer.core::start().
|
protectedvirtual |
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 1737 of file packetbb.cc.
References ns3::IPV4, and NS_LOG_FUNCTION.
Referenced by DeserializeOriginatorAddress(), and SerializeOriginatorAddress().
|
protectedvirtual |
Print the originator address.
os | the output stream |
Implements ns3::PbbMessage.
Definition at line 1765 of file packetbb.cc.
References ns3::Ipv4Address::ConvertFrom(), ns3::PbbMessage::GetOriginatorAddress(), NS_LOG_FUNCTION, and ns3::Ipv4Address::Print().
|
protectedvirtual |
Serialize the originator address.
start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1744 of file packetbb.cc.
References ns3::Ipv4Address::ConvertFrom(), GetAddressLength(), ns3::PbbMessage::GetOriginatorAddress(), NS_LOG_FUNCTION, ns3::Ipv4Address::Serialize(), and visualizer.core::start().