30 NS_ASSERT_MSG (tid < 8,
"Tid " << (uint16_t) tid <<
" out of range");
80 uint16_t numberSeq = (seqControl >> 4) & 0x0fff;
81 integer = (4096 - (endSequence + 1) + numberSeq) % 4096;
83 integer += (seqControl & 0x000f);
92 uint16_t distance = ((seqNumber - startingSeq) + 4096) % 4096;
93 return (distance >= 2048);
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
bool QosUtilsIsOldPacket(uint16_t startingSeq, uint16_t seqNumber)
This function checks if packet with sequence number seqNumber is an "old" packet. ...
uint8_t QosUtilsGetTidForPacket(Ptr< const Packet > packet)
If a qos tag is attached to the packet, returns a value < 8.
bool PeekPacketTag(Tag &tag) const
Search a matching tag and call Tag::Deserialize if it is found.
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
The aim of the QosTag is to provide means for an Application to specify the TID which will be used by...
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
uint32_t QosUtilsMapSeqControlToUniqueInteger(uint16_t seqControl, uint16_t endSequence)
Next function is useful to correctly sort buffered packets under block ack.
uint8_t GetTid(void) const
Return the Type ID.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...