A Discrete-Event Network Simulator
API
qos-utils.h File Reference
#include "ns3/ptr.h"
#include <map>
+ Include dependency graph for qos-utils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns3::WifiAc
 This class stores the pair of TIDs of an Access Category. More...
 
struct  ns3::WifiAddressHash
 Function object to compute the hash of a MAC address. More...
 
struct  ns3::WifiAddressTidHash
 Function object to compute the hash of a (MAC address, TID) pair. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Typedefs

typedef std::pair< Mac48Address, uint8_t > ns3::WifiAddressTidPair
 (MAC address, TID) pair More...
 

Enumerations

enum  ns3::AcIndex : uint8_t {
  ns3::AC_BE = 0 , ns3::AC_BK = 1 , ns3::AC_VI = 2 , ns3::AC_VO = 3 ,
  ns3::AC_BE_NQOS = 4 , ns3::AC_BEACON = 5 , ns3::AC_UNDEF
}
 This enumeration defines the Access Categories as an enumeration with values corresponding to the AC index (ACI) values specified (Table 8-104 "ACI-to-AC coding"; IEEE 802.11-2012). More...
 

Functions

uint8_t ns3::GetTid (Ptr< const Packet > packet, const WifiMacHeader hdr)
 This function is useful to get traffic id of different packet types. More...
 
bool ns3::operator< (enum AcIndex left, enum AcIndex right)
 Operator< overload returning true if the AC on the left has lower priority than the AC on the right. More...
 
bool ns3::operator<= (enum AcIndex left, enum AcIndex right)
 Operator<= overload returning true if the AC on the left has lower or the same priority than the AC on the right. More...
 
bool ns3::operator> (enum AcIndex left, enum AcIndex right)
 Operator> overload returning true if the AC on the left has higher priority than the AC on the right. More...
 
bool ns3::operator>= (enum AcIndex left, enum AcIndex right)
 Operator>= overload returning true if the AC on the left has higher or the same priority than the AC on the right. More...
 
uint8_t ns3::QosUtilsGetTidForPacket (Ptr< const Packet > packet)
 If a QoS tag is attached to the packet, returns a value < 8. More...
 
bool ns3::QosUtilsIsOldPacket (uint16_t startingSeq, uint16_t seqNumber)
 This function checks if packet with sequence number seqNumber is an "old" packet. More...
 
uint32_t ns3::QosUtilsMapSeqControlToUniqueInteger (uint16_t seqControl, uint16_t endSequence)
 Next function is useful to correctly sort buffered packets under block ack. More...
 
AcIndex ns3::QosUtilsMapTidToAc (uint8_t tid)
 Maps TID (Traffic ID) to Access classes. More...
 
uint8_t ns3::SelectQueueByDSField (Ptr< QueueItem > item)
 Determine the TX queue for a given packet. More...