12#include "ns3/fatal-error.h"
14#include "ns3/wifi-export.h"
94 return (os <<
"AC BE");
96 return (os <<
"AC BK");
98 return (os <<
"AC VI");
100 return (os <<
"AC VO");
102 return (os <<
"AC BE NQOS");
104 return (os <<
"AC BEACON");
106 return (os <<
"AC Undefined");
109 return (os <<
"Unknown");
126 WifiAc(uint8_t lowTid, uint8_t highTid);
200WIFI_EXPORT
extern const std::map<AcIndex, WifiAc>
wifiAcList;
275uint8_t
GetTid(Ptr<const Packet> packet,
const WifiMacHeader hdr);
Base class to represent items of packet Queues.
WifiAc(uint8_t lowTid, uint8_t highTid)
Constructor.
uint8_t GetOtherTid(uint8_t tid) const
Given a TID belonging to this Access Category, get the other TID of this AC.
uint8_t m_highTid
the TID with higher priority
uint8_t GetHighTid() const
Get the TID with higher priority.
uint8_t GetLowTid() const
Get the TID with lower priority.
uint8_t m_lowTid
the TID with lower priority
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
bool operator>=(const int64x64_t &lhs, const int64x64_t &rhs)
Greater or equal operator.
bool operator<=(const int64x64_t &lhs, const int64x64_t &rhs)
Less or equal operator.
bool operator>(const Length &left, const Length &right)
Check if left has a value greater than right.
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
bool QosUtilsIsOldPacket(uint16_t startingSeq, uint16_t seqNumber)
This function checks if packet with sequence number seqNumber is an "old" packet.
uint32_t QosUtilsMapSeqControlToUniqueInteger(uint16_t seqControl, uint16_t endSequence)
Next function is useful to correctly sort buffered packets under block ack.
uint8_t GetTid(Ptr< const Packet > packet, const WifiMacHeader hdr)
This function is useful to get traffic id of different packet types.
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
uint8_t SelectQueueByDSField(Ptr< QueueItem > item)
Determine the TX queue for a given packet.
@ AC_UNDEF
Total number of ACs.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
const std::list< AcIndex > edcaAcIndices
List of the Access Categories corresponding to the four EDCA functions.
bool operator<(const EventId &a, const EventId &b)
std::pair< Mac48Address, uint8_t > WifiAddressTidPair
(MAC address, TID) pair
const std::map< AcIndex, WifiAc > wifiAcList
Map containing the four ACs in increasing order of priority (according to Table 10-1 "UP-to-AC Mappin...
Function object to compute the hash of a MAC address.
std::size_t operator()(const Mac48Address &address) const
Functional operator for MAC address hash computation.
Function object to compute the hash of a (MAC address, TID) pair.
std::size_t operator()(const WifiAddressTidPair &addressTidPair) const
Functional operator for (MAC address, TID) hash computation.