INET Framework for OMNeT++/OMNEST
inet::ieee80211::LegacySequenceNumberAssigment Class Reference

#include <LegacySequenceNumberAssigment.h>

Inheritance diagram for inet::ieee80211::LegacySequenceNumberAssigment:
inet::ieee80211::ISequenceNumberAssignment inet::ieee80211::NonQoSSequenceNumberAssignment

Public Member Functions

virtual void assignSequenceNumber (Ieee80211DataOrMgmtFrame *frame) override
 
- Public Member Functions inherited from inet::ieee80211::ISequenceNumberAssignment
virtual ~ISequenceNumberAssignment ()
 

Protected Attributes

SequenceNumber lastSeqNum = 0
 

Member Function Documentation

void inet::ieee80211::LegacySequenceNumberAssigment::assignSequenceNumber ( Ieee80211DataOrMgmtFrame frame)
overridevirtual

Implements inet::ieee80211::ISequenceNumberAssignment.

Reimplemented in inet::ieee80211::NonQoSSequenceNumberAssignment.

29 {
30  ASSERT(frame->getType() != ST_DATA_WITH_QOS);
31  lastSeqNum = (lastSeqNum + 1) % 4096;
32  frame->setSequenceNumber(lastSeqNum);
33 }
Definition: Ieee80211Frame_m.h:117
SequenceNumber lastSeqNum
Definition: LegacySequenceNumberAssigment.h:30

Member Data Documentation

SequenceNumber inet::ieee80211::LegacySequenceNumberAssigment::lastSeqNum = 0
protected

The documentation for this class was generated from the following files: