Concrete IPv4 specific PbbMessage. More...
#include "packetbb.h"
Inheritance diagram for ns3::PbbMessageIpv4:
Collaboration diagram for ns3::PbbMessageIpv4:Public Member Functions | |
| PbbMessageIpv4 () | |
Public Member Functions inherited from ns3::SimpleRefCount< PbbMessage > | |
| SimpleRefCount () | |
| Default constructor. | |
| SimpleRefCount (const SimpleRefCount &o) | |
| Copy constructor. | |
| uint32_t | GetReferenceCount () const |
| Get the reference count of the object. | |
| SimpleRefCount & | operator= (const SimpleRefCount &o) |
| Assignment operator. | |
| void | Ref () const |
| Increment the reference count. | |
| void | Unref () const |
| Decrement the reference count. | |
Protected Member Functions | |
| Ptr< PbbAddressBlock > | AddressBlockDeserialize (Buffer::Iterator &start) const override |
| Deserialize an address block. | |
| Address | DeserializeOriginatorAddress (Buffer::Iterator &start) const override |
| Deserialize the originator address. | |
| PbbAddressLength | GetAddressLength () const override |
| Returns address length (IPV4 3 or IPV6 15) | |
| void | PrintOriginatorAddress (std::ostream &os) const override |
| Print the originator address. | |
| void | SerializeOriginatorAddress (Buffer::Iterator &start) const override |
| Serialize the originator address. | |
Additional Inherited Members |
Concrete IPv4 specific PbbMessage.
This message will only contain IPv4 addresses.
Definition at line 1126 of file packetbb.h.
| ns3::PbbMessageIpv4::PbbMessageIpv4 | ( | ) |
Definition at line 1705 of file packetbb.cc.
References NS_LOG_FUNCTION.
|
overrideprotectedvirtual |
Deserialize an address block.
| start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1746 of file packetbb.cc.
References ns3::Create(), and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
overrideprotectedvirtual |
Deserialize the originator address.
| start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1728 of file packetbb.cc.
References ns3::Ipv4Address::Deserialize(), GetAddressLength(), and NS_LOG_FUNCTION.
Here is the call graph for this function:
|
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 1711 of file packetbb.cc.
References ns3::IPV4, and NS_LOG_FUNCTION.
Referenced by DeserializeOriginatorAddress(), and SerializeOriginatorAddress().
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Print the originator address.
| os | the output stream |
Implements ns3::PbbMessage.
Definition at line 1739 of file packetbb.cc.
References ns3::Ipv4Address::ConvertFrom(), ns3::PbbMessage::GetOriginatorAddress(), NS_LOG_FUNCTION, and ns3::Ipv4Address::Print().
Here is the call graph for this function:
|
overrideprotectedvirtual |
Serialize the originator address.
| start | the buffer iterator start |
Implements ns3::PbbMessage.
Definition at line 1718 of file packetbb.cc.
References ns3::Ipv4Address::ConvertFrom(), GetAddressLength(), ns3::PbbMessage::GetOriginatorAddress(), NS_LOG_FUNCTION, and ns3::Ipv4Address::Serialize().
Here is the call graph for this function: