23 #include "ns3/socket.h"
72 uint16_t numberSeq = (seqControl >> 4) & 0x0fff;
73 integer = (4096 - (endSequence + 1) + numberSeq) % 4096;
75 integer += (seqControl & 0x000f);
84 uint16_t distance = ((seqNumber - startingSeq) + 4096) % 4096;
85 return (distance >= 2048);
144 NS_FATAL_ERROR (
"Cannot extract Traffic ID from this BA action frame");
150 NS_FATAL_ERROR (
"Cannot extract Traffic ID from this action frame");
uint32_t RemoveHeader(Header &header)
Deserialize and remove the header from the internal buffer.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
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.
NS_ASSERT_MSG(false,"Ipv4AddressGenerator::MaskToIndex(): Impossible")
indicates whether the socket has a priority set.
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
uint32_t PeekHeader(Header &header) const
Deserialize but does not remove the header from the internal buffer.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t GetTid(Ptr< const Packet > packet, const WifiMacHeader hdr)
Extraction operator for TypeId.
uint8_t GetPriority(void) const
Get the tag's priority.
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 ...