60 retval = it->second[tid];
62 it->second[tid] %= 4096;
67 std::pair <Mac48Address,uint16_t*> newSeq (hdr->
GetAddr1 (),
new uint16_t[16]);
68 std::pair <std::map<Mac48Address,uint16_t*>::const_iterator,
bool> newIns =
m_qosSequences.insert (newSeq);
70 for (uint8_t i = 0; i < 16; i++)
72 newIns.first->second[i] = 0;
74 newIns.first->second[tid]++;
99 retval = it->second[tid];
119 std::map <Mac48Address,uint16_t*>::const_iterator it =
m_qosSequences.find (addr);
122 return it->second[tid];
uint16_t m_sequence
current sequence number
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
#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.
uint16_t GetNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the given header.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::map< Mac48Address, uint16_t * > m_qosSequences
QOS sequences.
uint16_t PeekNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the Traffic ID and destination, but do not pick it (i...
uint16_t GetNextSeqNumberByTidAndAddress(uint8_t tid, Mac48Address addr) const
Return the next sequence number for the Traffic ID and destination.