23 #include "ns3/socket.h"
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.
indicates whether the socket has a priority set.
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t GetPriority(void) const
Get the tag's priority.
#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.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...