43 for (std::map<Mac48Address, uint16_t*>::const_iterator i =
m_qosSequences.begin();
63 retval = it->second[tid];
65 it->second[tid] %= 4096;
70 std::pair<Mac48Address, uint16_t*> newSeq(hdr->
GetAddr1(),
new uint16_t[16]);
71 std::pair<std::map<Mac48Address, uint16_t*>::const_iterator,
bool> newIns =
74 for (uint8_t i = 0; i < 16; i++)
76 newIns.first->second[i] = 0;
78 newIns.first->second[tid]++;
102 retval = it->second[tid];
122 std::map<Mac48Address, uint16_t*>::const_iterator it =
m_qosSequences.find(addr);
125 return it->second[tid];
void SetSequenceNumberFor(const WifiMacHeader *hdr)
Set the sequence number of the given MAC header as the next sequence number for the Traffic ID and de...
std::map< Mac48Address, uint16_t * > m_qosSequences
QOS sequences.
uint16_t m_sequence
current sequence number
uint16_t GetNextSeqNumberByTidAndAddress(uint8_t tid, Mac48Address addr) const
Return the next sequence number for the Traffic ID and destination.
uint16_t GetNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the given header.
uint16_t PeekNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the Traffic ID and destination, but do not pick it (i....
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.