uint8_t GetTxQueueIndex(void) const
Get the transmission queue index included in this item.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
virtual void Print(std::ostream &os) const
Print the item contents.
virtual uint32_t GetSize(void) const
uint32_t GetSize(void) const
Returns the the size in bytes of the packet (including the zero-filled initial payload).
QueueDiscItem is the abstract base class for items that are stored in a queue disc.
Address GetAddress(void) const
Get the MAC address included in this item.
virtual void AddHeader(void)
Add the header to the packet.
a polymophic address class
Ipv6Header m_header
The IPv6 header.
virtual ~Ipv6QueueDiscItem()
virtual bool GetUint8Value(Uint8Values field, uint8_t &value) const
Retrieve the value of a given field from the packet, if present.
const Ipv6Header & GetHeader(void) const
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual bool Mark(void)
Marks the packet by setting ECN_CE bits if the packet has ECN_ECT0 or ECN_ECT1 bits set...
Uint8Values
1-byte fields of the packet whose value can be retrieved, if present
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
bool m_headerAdded
True if the header has already been added to the packet.
uint16_t GetProtocol(void) const
Get the L3 protocol included in this item.
Ipv6QueueDiscItem()
Default constructor.
void AddHeader(const Header &header)
Add header to this packet.
Ptr< Packet > GetPacket(void) const