Public Types | Public Member Functions | Static Public Member Functions

ns3::WifiMacHeader Class Reference

Inheritance diagram for ns3::WifiMacHeader:
Inheritance graph
[legend]
Collaboration diagram for ns3::WifiMacHeader:
Collaboration graph
[legend]

List of all members.

Public Types

enum  QosAckPolicy { NORMAL_ACK = 0, NO_ACK = 1, NO_EXPLICIT_ACK = 2, BLOCK_ACK = 3 }
enum  AddressType { ADDR1, ADDR2, ADDR3, ADDR4 }

Public Member Functions

virtual TypeId GetInstanceTypeId (void) const
virtual void Print (std::ostream &os) const
virtual uint32_t GetSerializedSize (void) const
virtual void Serialize (Buffer::Iterator start) const
virtual uint32_t Deserialize (Buffer::Iterator start)
void SetAssocReq (void)
void SetAssocResp (void)
void SetProbeReq (void)
void SetProbeResp (void)
void SetBeacon (void)
void SetTypeData (void)
void SetAction ()
void SetBlockAckReq (void)
void SetBlockAck (void)
void SetMultihopAction ()
void SetDsFrom (void)
void SetDsNotFrom (void)
void SetDsTo (void)
void SetDsNotTo (void)
void SetAddr1 (Mac48Address address)
void SetAddr2 (Mac48Address address)
void SetAddr3 (Mac48Address address)
void SetAddr4 (Mac48Address address)
void SetType (enum WifiMacType type)
void SetRawDuration (uint16_t duration)
void SetDuration (Time duration)
void SetId (uint16_t id)
void SetSequenceNumber (uint16_t seq)
void SetFragmentNumber (uint8_t frag)
void SetNoMoreFragments (void)
void SetMoreFragments (void)
void SetRetry (void)
void SetNoRetry (void)
void SetQosTid (uint8_t tid)
void SetQosEosp ()
void SetQosNoEosp ()
void SetQosAckPolicy (enum QosAckPolicy)
void SetQosNormalAck (void)
void SetQosBlockAck (void)
void SetQosNoAck (void)
void SetQosAmsdu (void)
void SetQosNoAmsdu (void)
void SetQosTxopLimit (uint8_t txop)
Mac48Address GetAddr1 (void) const
Mac48Address GetAddr2 (void) const
Mac48Address GetAddr3 (void) const
Mac48Address GetAddr4 (void) const
enum WifiMacType GetType (void) const
bool IsFromDs (void) const
bool IsToDs (void) const
bool IsData (void) const
bool IsQosData (void) const
bool IsCtl (void) const
bool IsMgt (void) const
bool IsCfpoll (void) const
bool IsRts (void) const
bool IsCts (void) const
bool IsAck (void) const
bool IsBlockAckReq (void) const
bool IsBlockAck (void) const
bool IsAssocReq (void) const
bool IsAssocResp (void) const
bool IsReassocReq (void) const
bool IsReassocResp (void) const
bool IsProbeReq (void) const
bool IsProbeResp (void) const
bool IsBeacon (void) const
bool IsDisassociation (void) const
bool IsAuthentication (void) const
bool IsDeauthentication (void) const
bool IsAction () const
bool IsMultihopAction () const
uint16_t GetRawDuration (void) const
Time GetDuration (void) const
uint16_t GetSequenceControl (void) const
uint16_t GetSequenceNumber (void) const
uint16_t GetFragmentNumber (void) const
bool IsRetry (void) const
bool IsMoreFragments (void) const
bool IsQosBlockAck (void) const
bool IsQosNoAck (void) const
bool IsQosAck (void) const
bool IsQosEosp (void) const
bool IsQosAmsdu (void) const
uint8_t GetQosTid (void) const
enum QosAckPolicy GetQosAckPolicy (void) const
uint8_t GetQosTxopLimit (void) const
uint32_t GetSize (void) const
const char * GetTypeString (void) const

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::WifiMacHeader.

Member Function Documentation

virtual uint32_t ns3::WifiMacHeader::Deserialize ( Buffer::Iterator  start  )  [virtual]
Parameters:
start an iterator which points to where the header should written.
Returns:
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Implements ns3::Header.

virtual TypeId ns3::WifiMacHeader::GetInstanceTypeId ( void   )  const [virtual]
Returns:
the TypeId associated to the most-derived type of this instance.

This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Implements ns3::ObjectBase.

virtual uint32_t ns3::WifiMacHeader::GetSerializedSize ( void   )  const [virtual]
Returns:
the expected size of the header.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.

Implements ns3::Header.

static TypeId ns3::WifiMacHeader::GetTypeId ( void   )  [static]

This method returns the TypeId associated to ns3::WifiMacHeader.

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Header.

virtual void ns3::WifiMacHeader::Print ( std::ostream &  os  )  const [virtual]
Parameters:
os output stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Implements ns3::Header.

virtual void ns3::WifiMacHeader::Serialize ( Buffer::Iterator  start  )  const [virtual]
Parameters:
start an iterator which points to where the header should be written.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.

Implements ns3::Header.


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