ns-3
ns3::PbbMessageIpv4 Class Reference

Concrete IPv4 specific PbbMessage. More...

#include <packetbb.h>

Inheritance diagram for ns3::PbbMessageIpv4:
Collaboration diagram for ns3::PbbMessageIpv4:

List of all members.

Protected Member Functions

virtual PbbAddressLength GetAddressLength (void) const
virtual void SerializeOriginatorAddress (Buffer::Iterator &start) const
virtual Address DeserializeOriginatorAddress (Buffer::Iterator &start) const
virtual void PrintOriginatorAddress (std::ostream &os) const
virtual Ptr< PbbAddressBlockAddressBlockDeserialize (Buffer::Iterator &start) const

Additional Inherited Members

- Public Types inherited from ns3::PbbMessage
typedef std::list< Ptr< PbbTlv >
>::iterator 
TlvIterator
typedef std::list< Ptr< PbbTlv >
>::const_iterator 
ConstTlvIterator
typedef std::list< Ptr
< PbbAddressBlock >
>::iterator 
AddressBlockIterator
typedef std::list< Ptr
< PbbAddressBlock >
>::const_iterator 
ConstAddressBlockIterator
- Public Member Functions inherited from ns3::PbbMessage
void SetType (uint8_t type)
 Sets the type for this message.
uint8_t GetType (void) const
void SetOriginatorAddress (Address address)
 Sets the address for the node that created this packet.
Address GetOriginatorAddress (void) const
bool HasOriginatorAddress (void) const
 Tests whether or not this message has an originator address.
void SetHopLimit (uint8_t hoplimit)
 Sets the maximum number of hops this message should travel.
uint8_t GetHopLimit (void) const
bool HasHopLimit (void) const
 Tests whether or not this message has a hop limit.
void SetHopCount (uint8_t hopcount)
 Sets the current number of hops this message has traveled.
uint8_t GetHopCount (void) const
bool HasHopCount (void) const
 Tests whether or not this message has a hop count.
void SetSequenceNumber (uint16_t seqnum)
 Sets the sequence number of this message.
uint16_t GetSequenceNumber (void) const
bool HasSequenceNumber (void) const
 Tests whether or not this message has a sequence number.
TlvIterator TlvBegin ()
ConstTlvIterator TlvBegin () const
TlvIterator TlvEnd ()
ConstTlvIterator TlvEnd () const
int TlvSize (void) const
bool TlvEmpty (void) const
Ptr< PbbTlvTlvFront (void)
const Ptr< PbbTlvTlvFront (void) const
Ptr< PbbTlvTlvBack (void)
const Ptr< PbbTlvTlvBack (void) const
void TlvPushFront (Ptr< PbbTlv > tlv)
 Prepends a message TLV to the front of this message.
void TlvPopFront (void)
 Removes a message TLV from the front of this message.
void TlvPushBack (Ptr< PbbTlv > tlv)
 Appends a message TLV to the back of this message.
void TlvPopBack (void)
 Removes a message TLV from the back of this message.
TlvIterator TlvErase (TlvIterator position)
 Removes the message TLV at the specified position.
TlvIterator TlvErase (TlvIterator first, TlvIterator last)
 Removes all message TLVs from [first, last) (includes first, not includes last).
void TlvClear (void)
 Removes all message TLVs from this block.
AddressBlockIterator AddressBlockBegin ()
ConstAddressBlockIterator AddressBlockBegin () const
AddressBlockIterator AddressBlockEnd ()
ConstAddressBlockIterator AddressBlockEnd () const
int AddressBlockSize (void) const
bool AddressBlockEmpty (void) const
Ptr< PbbAddressBlockAddressBlockFront (void)
const Ptr< PbbAddressBlockAddressBlockFront (void) const
Ptr< PbbAddressBlockAddressBlockBack (void)
const Ptr< PbbAddressBlockAddressBlockBack (void) const
void AddressBlockPushFront (Ptr< PbbAddressBlock > block)
 Prepends an address block to the front of this message.
void AddressBlockPopFront (void)
 Removes an address block from the front of this message.
void AddressBlockPushBack (Ptr< PbbAddressBlock > block)
 Appends an address block to the front of this message.
void AddressBlockPopBack (void)
 Removes an address block from the back of this message.
AddressBlockIterator AddressBlockErase (AddressBlockIterator position)
 Removes the address block at the specified position.
AddressBlockIterator AddressBlockErase (AddressBlockIterator first, AddressBlockIterator last)
 Removes all address blocks from [first, last) (includes first, not includes last).
void AddressBlockClear (void)
 Removes all address blocks from this message.
uint32_t GetSerializedSize (void) const
void Serialize (Buffer::Iterator &start) const
 Serializes this message into the specified buffer.
void Deserialize (Buffer::Iterator &start)
 Deserializes a message from the specified buffer.
void Print (std::ostream &os) const
 Pretty-prints the contents of this message.
void Print (std::ostream &os, int level) const
 Pretty-prints the contents of this message, with specified indentation.
bool operator== (const PbbMessage &other) const
bool operator!= (const PbbMessage &other) const
- Public Member Functions inherited from ns3::SimpleRefCount< PbbMessage >
 SimpleRefCount (const SimpleRefCount &o)
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const
- Static Public Member Functions inherited from ns3::PbbMessage
static Ptr< PbbMessageDeserializeMessage (Buffer::Iterator &start)
 Deserializes a message, returning the correct object depending on whether it is an IPv4 message or an IPv6 message.
- Static Public Member Functions inherited from ns3::SimpleRefCount< PbbMessage >
static void Cleanup (void)

Detailed Description

Concrete IPv4 specific PbbMessage.

This message will only contain IPv4 addresses.


The documentation for this class was generated from the following files: