Queue Disc Test Item. More...
Public Member Functions | |
QueueDiscTestItem ()=delete | |
QueueDiscTestItem (const QueueDiscTestItem &)=delete | |
QueueDiscTestItem (Ptr< Packet > p) | |
Constructor. | |
~QueueDiscTestItem () override | |
void | AddHeader () override |
Add the header to the packet. | |
bool | Mark () override |
Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification. | |
QueueDiscTestItem & | operator= (const QueueDiscTestItem &)=delete |
Public Member Functions inherited from ns3::QueueDiscItem | |
QueueDiscItem ()=delete | |
QueueDiscItem (const QueueDiscItem &)=delete | |
QueueDiscItem (Ptr< Packet > p, const Address &addr, uint16_t protocol) | |
Create a queue disc item. | |
~QueueDiscItem () override | |
Address | GetAddress () const |
Get the MAC address included in this item. | |
uint16_t | GetProtocol () const |
Get the L3 protocol included in this item. | |
Time | GetTimeStamp () const |
Get the timestamp included in this item. | |
uint8_t | GetTxQueueIndex () const |
Get the transmission queue index included in this item. | |
virtual uint32_t | Hash (uint32_t perturbation=0) const |
Computes the hash of various fields of the packet header. | |
QueueDiscItem & | operator= (const QueueDiscItem &)=delete |
void | Print (std::ostream &os) const override |
Print the item contents. | |
void | SetTimeStamp (Time t) |
Set the timestamp included in this item. | |
void | SetTxQueueIndex (uint8_t txq) |
Set the transmission queue index to store in this item. | |
Public Member Functions inherited from ns3::QueueItem | |
QueueItem ()=delete | |
QueueItem (const QueueItem &)=delete | |
QueueItem (Ptr< Packet > p) | |
Create a queue item containing a packet. | |
virtual | ~QueueItem () |
Ptr< Packet > | GetPacket () const |
virtual uint32_t | GetSize () const |
Use this method (instead of GetPacket ()->GetSize ()) to get the packet size. | |
virtual bool | GetUint8Value (Uint8Values field, uint8_t &value) const |
Retrieve the value of a given field from the packet, if present. | |
QueueItem & | operator= (const QueueItem &)=delete |
Public Member Functions inherited from ns3::SimpleRefCount< QueueItem > | |
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. | |
Additional Inherited Members | |
Public Types inherited from ns3::QueueItem | |
typedef void(* | TracedCallback) (Ptr< const QueueItem > item) |
TracedCallback signature for Ptr<QueueItem> | |
enum | Uint8Values { IP_DSFIELD } |
1-byte fields of the packet whose value can be retrieved, if present More... | |
Queue Disc Test Item.
Definition at line 36 of file tc-flow-control-test-suite.cc.
Constructor.
p | the packet stored in this item |
Definition at line 56 of file tc-flow-control-test-suite.cc.
|
override |
Definition at line 61 of file tc-flow-control-test-suite.cc.
|
delete |
|
delete |
|
overridevirtual |
Add the header to the packet.
Subclasses may keep header and payload separate to allow manipulating the header, so this method allows to add the header to the packet before sending the packet to the device.
Implements ns3::QueueDiscItem.
Definition at line 66 of file tc-flow-control-test-suite.cc.
|
overridevirtual |
Marks the packet as a substitute for dropping it, such as for Explicit Congestion Notification.
Implements ns3::QueueDiscItem.
Definition at line 71 of file tc-flow-control-test-suite.cc.
|
delete |