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

8.2.4.4.1 Sequence Control field structure The Sequence Control field is 16 bits in length and consists of two subfields, the Sequence Number and the Fragment Number. More...

#include <SequenceControlField.h>

Public Member Functions

 SequenceControlField (SequenceNumber sequenceNumber, FragmentNumber fragmentNumber)
 
 SequenceControlField (Ieee80211DataOrMgmtFrame *frame)
 
SequenceNumber getSequenceNumber () const
 
FragmentNumber getFragmentNumber () const
 
bool operator< (const SequenceControlField &other) const
 

Private Attributes

SequenceNumber sequenceNumber
 
FragmentNumber fragmentNumber
 

Detailed Description

8.2.4.4.1 Sequence Control field structure The Sequence Control field is 16 bits in length and consists of two subfields, the Sequence Number and the Fragment Number.

Constructor & Destructor Documentation

inet::ieee80211::SequenceControlField::SequenceControlField ( SequenceNumber  sequenceNumber,
FragmentNumber  fragmentNumber 
)
23  :
26 {
27  ASSERT(sequenceNumber < 4096);
28  ASSERT(fragmentNumber < 16);
29 }
FragmentNumber fragmentNumber
Definition: SequenceControlField.h:35
SequenceNumber sequenceNumber
Definition: SequenceControlField.h:34
inet::ieee80211::SequenceControlField::SequenceControlField ( Ieee80211DataOrMgmtFrame frame)
31  :
32  sequenceNumber(frame->getSequenceNumber()),
33  fragmentNumber(frame->getFragmentNumber())
34 {
35 }
FragmentNumber fragmentNumber
Definition: SequenceControlField.h:35
SequenceNumber sequenceNumber
Definition: SequenceControlField.h:34

Member Function Documentation

FragmentNumber inet::ieee80211::SequenceControlField::getFragmentNumber ( ) const
inline
SequenceNumber inet::ieee80211::SequenceControlField::getSequenceNumber ( ) const
inline
bool inet::ieee80211::SequenceControlField::operator< ( const SequenceControlField other) const
38 {
39  return sequenceNumber < other.sequenceNumber ||
40  (sequenceNumber == other.sequenceNumber && fragmentNumber < other.fragmentNumber);
41 }
FragmentNumber fragmentNumber
Definition: SequenceControlField.h:35
SequenceNumber sequenceNumber
Definition: SequenceControlField.h:34

Member Data Documentation

FragmentNumber inet::ieee80211::SequenceControlField::fragmentNumber
private

Referenced by operator<().

SequenceNumber inet::ieee80211::SequenceControlField::sequenceNumber
private

Referenced by operator<().


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