24 #include "ns3/simple-ref-count.h" 25 #include <ns3/address.h> 26 #include "ns3/nstime.h" 70 virtual uint32_t
GetSize (
void)
const;
94 virtual void Print (std::ostream &os)
const;
209 virtual void Print (std::ostream &os)
const;
216 virtual bool Mark (
void) = 0;
227 virtual uint32_t
Hash (uint32_t perturbation = 0)
const;
Simulation virtual time values and global simulation resolution.
Base class to represent items of packet Queues.
virtual void Print(std::ostream &os) const
Print the item contents.
Time m_tstamp
timestamp when the packet was enqueued
QueueItem()
Default constructor.
uint8_t m_txq
Transmission queue index.
Forward calls to a chain of Callback.
void SetTxQueueIndex(uint8_t txq)
Set the transmission queue index to store in this item.
Ptr< Packet > m_packet
The packet contained in the queue item.
uint16_t GetProtocol(void) const
Get the L3 protocol included in this item.
QueueDiscItem is the abstract base class for items that are stored in a queue disc.
QueueDiscItem & operator=(const QueueDiscItem &)
Assignment operator.
Ptr< Packet > GetPacket(void) const
a polymophic address class
Uint8Values
1-byte fields of the packet whose value can be retrieved, if present
virtual uint32_t GetSize(void) const
Use this method (instead of GetPacket ()->GetSize ()) to get the packet size.
uint16_t m_protocol
L3 Protocol number.
QueueDiscItem()
Default constructor.
virtual uint32_t Hash(uint32_t perturbation=0) const
Computes the hash of various fields of the packet header.
void SetTimeStamp(Time t)
Set the timestamp included in this item.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Every class exported by the ns3 library is enclosed in the ns3 namespace.
QueueItem & operator=(const QueueItem &)
Assignment operator.
virtual bool GetUint8Value(Uint8Values field, uint8_t &value) const
Retrieve the value of a given field from the packet, if present.
Time GetTimeStamp(void) const
Get the timestamp included in this item.
uint8_t GetTxQueueIndex(void) const
Get the transmission queue index included in this item.
Address GetAddress(void) const
Get the MAC address included in this item.
virtual bool Mark(void)=0
Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification...
Address m_address
MAC destination address.
A template-based reference counting class.
virtual void Print(std::ostream &os) const
Print the item contents.
virtual void AddHeader(void)=0
Add the header to the packet.