Radiotap header implementation. More...
#include "radiotap-header.h"
Public Member Functions | |
RadiotapHeader () | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. More... | |
uint16_t | GetAmpduStatusFlags (void) const |
Get the A-MPDU status flags. More... | |
uint32_t | GetAmpduStatusRef (void) const |
Get the A-MPDU reference number. More... | |
uint8_t | GetAntennaNoisePower (void) const |
Get the RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference. More... | |
uint8_t | GetAntennaSignalPower (void) const |
Get the RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference. More... | |
uint16_t | GetChannelFlags (void) const |
Get the channel flags of the transmitted or received frame. More... | |
uint16_t | GetChannelFrequency (void) const |
Get the transmit/receive data rate in units of 500 kbps. More... | |
uint8_t | GetFrameFlags (void) const |
Get the frame flags of the transmitted or received frame. More... | |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
uint8_t | GetMcsFlags (void) const |
Get the MCS flags. More... | |
uint8_t | GetMcsKnown (void) const |
Get the MCS known bitmap. More... | |
uint8_t | GetMcsRate (void) const |
Get the MCS index value. More... | |
uint8_t | GetRate (void) const |
Get the transmit/receive channel frequency in units of megahertz. More... | |
virtual uint32_t | GetSerializedSize (void) const |
This method is used by Packet::AddHeader to store the header into the byte buffer of a packet. More... | |
uint64_t | GetTsft (void) const |
Get the Time Synchronization Function Timer (TSFT) value. More... | |
uint8_t | GetVhtBandwidth (void) const |
Get the VHT bandwidth field value. More... | |
uint8_t | GetVhtCoding (void) const |
Get the VHT coding field value. More... | |
uint8_t | GetVhtFlags (void) const |
Get the VHT flags. More... | |
uint8_t | GetVhtGroupId (void) const |
Get the VHT group_id field value. More... | |
uint16_t | GetVhtKnown (void) const |
Get the VHT known bitmap. More... | |
uint8_t | GetVhtMcsNssUser1 () const |
Get the VHT mcs_nss field value for user 1. More... | |
uint8_t | GetVhtMcsNssUser2 () const |
Get the VHT mcs_nss field value for user 2. More... | |
uint8_t | GetVhtMcsNssUser3 () const |
Get the VHT mcs_nss field value for user 3. More... | |
uint8_t | GetVhtMcsNssUser4 () const |
Get the VHT mcs_nss field value for user 4. More... | |
uint8_t | GetVhtPartialAid (void) const |
Get the VHT partial_aid field value. More... | |
virtual void | Print (std::ostream &os) const |
This method is used by Packet::Print to print the content of the header as ascii data to a C++ output stream. More... | |
virtual void | Serialize (Buffer::Iterator start) const |
This method is used by Packet::AddHeader to store the header into the byte buffer of a packet. More... | |
void | SetAmpduStatus (uint32_t referenceNumber, uint16_t flags, uint8_t crc) |
Set the A-MPDU status fields. More... | |
void | SetAntennaNoisePower (double noise) |
Set the RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference. More... | |
void | SetAntennaSignalPower (double signal) |
Set the RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference. More... | |
void | SetChannelFrequencyAndFlags (uint16_t frequency, uint16_t flags) |
Set the transmit/receive channel frequency and flags. More... | |
void | SetFrameFlags (uint8_t flags) |
Set the frame flags of the transmitted or received frame. More... | |
void | SetMcsFields (uint8_t known, uint8_t flags, uint8_t mcs) |
Set the MCS fields. More... | |
void | SetRate (uint8_t rate) |
Set the transmit/receive channel frequency in units of megahertz. More... | |
void | SetTsft (uint64_t tsft) |
Set the Time Synchronization Function Timer (TSFT) value. More... | |
void | SetVhtFields (uint16_t known, uint8_t flags, uint8_t bandwidth, uint8_t mcs_nss[4], uint8_t coding, uint8_t group_id, uint16_t partial_aid) |
Set the VHT fields. More... | |
![]() | |
virtual | ~Header () |
![]() | |
virtual uint32_t | Deserialize (Buffer::Iterator start, Buffer::Iterator end) |
Deserialize the object from a buffer iterator. More... | |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Types | |
enum | RadiotapFlags { RADIOTAP_TSFT = 0x00000001, RADIOTAP_FLAGS = 0x00000002, RADIOTAP_RATE = 0x00000004, RADIOTAP_CHANNEL = 0x00000008, RADIOTAP_FHSS = 0x00000010, RADIOTAP_DBM_ANTSIGNAL = 0x00000020, RADIOTAP_DBM_ANTNOISE = 0x00000040, RADIOTAP_LOCK_QUALITY = 0x00000080, RADIOTAP_TX_ATTENUATION = 0x00000100, RADIOTAP_DB_TX_ATTENUATION = 0x00000200, RADIOTAP_DBM_TX_POWER = 0x00000400, RADIOTAP_ANTENNA = 0x00000800, RADIOTAP_DB_ANTSIGNAL = 0x00001000, RADIOTAP_DB_ANTNOISE = 0x00002000, RADIOTAP_RX_FLAGS = 0x00004000, RADIOTAP_MCS = 0x00080000, RADIOTAP_AMPDU_STATUS = 0x00100000, RADIOTAP_VHT = 0x00200000, RADIOTAP_EXT = 0x10000000 } |
Radiotap flags. More... | |
Private Attributes | |
uint8_t | m_ampduStatusCRC |
A-MPDU Status Flags, delimiter CRC value. More... | |
uint16_t | m_ampduStatusFlags |
A-MPDU Status Flags, information about the received A-MPDU. More... | |
uint8_t | m_ampduStatusPad |
A-MPDU Status Flags, padding before A-MPDU Status Field. More... | |
uint32_t | m_ampduStatusRef |
A-MPDU Status Flags, reference number. More... | |
int8_t | m_antennaNoise |
RF noise power at the antenna, dB difference from an arbitrary, fixed reference. More... | |
int8_t | m_antennaSignal |
RF signal power at the antenna, dB difference from an arbitrary, fixed reference. More... | |
uint16_t | m_channelFlags |
Tx/Rx channel flags. More... | |
uint16_t | m_channelFreq |
Tx/Rx frequency in MHz. More... | |
uint8_t | m_channelPad |
Tx/Rx channel padding. More... | |
uint8_t | m_flags |
Properties of transmitted and received frames. More... | |
uint16_t | m_length |
entire length of radiotap data + header More... | |
uint8_t | m_mcsFlags |
MCS Flags, flags field. More... | |
uint8_t | m_mcsKnown |
MCS Flags, known information field. More... | |
uint8_t | m_mcsRate |
MCS Flags, mcs rate index. More... | |
uint32_t | m_present |
bits describing which fields follow header More... | |
uint8_t | m_rate |
TX/RX data rate in units of 500 kbps. More... | |
uint64_t | m_tsft |
Time Synchronization Function Timer (when the first bit of the MPDU arrived at the MAC) More... | |
uint8_t | m_vhtBandwidth |
VHT bandwidth field. More... | |
uint8_t | m_vhtCoding |
VHT coding field. More... | |
uint8_t | m_vhtFlags |
VHT flags field. More... | |
uint8_t | m_vhtGroupId |
VHT group_id field. More... | |
uint16_t | m_vhtKnown |
VHT known field. More... | |
uint8_t | m_vhtMcsNss [4] |
VHT mcs_nss field. More... | |
uint8_t | m_vhtPad |
VHT padding. More... | |
uint16_t | m_vhtPartialAid |
VHT partial_aid field. More... | |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Radiotap header implementation.
Introspection did not find any typical Config paths.
Radiotap is a de facto standard for 802.11 frame injection and reception. The radiotap header format is a mechanism to supply additional information about frames, from the driver to userspace applications such as libpcap, and from a userspace application to the driver for transmission.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 64 bytes (on a 64-bit architecture).
Definition at line 38 of file radiotap-header.h.
A-MPDU status flags.
Definition at line 291 of file radiotap-header.h.
Channel flags.
Enumerator | |
---|---|
CHANNEL_FLAG_NONE |
No flags set. |
CHANNEL_FLAG_TURBO |
Turbo Channel. |
CHANNEL_FLAG_CCK |
CCK channel. |
CHANNEL_FLAG_OFDM |
OFDM channel. |
CHANNEL_FLAG_SPECTRUM_2GHZ |
2 GHz spectrum channel |
CHANNEL_FLAG_SPECTRUM_5GHZ |
5 GHz spectrum channel |
CHANNEL_FLAG_PASSIVE |
Only passive scan allowed. |
CHANNEL_FLAG_DYNAMIC |
Dynamic CCK-OFDM channel. |
CHANNEL_FLAG_GFSK |
GFSK channel (FHSS PHY) |
Definition at line 158 of file radiotap-header.h.
Frame flags.
Definition at line 117 of file radiotap-header.h.
MCS flags.
Definition at line 247 of file radiotap-header.h.
MCS known bits.
Definition at line 231 of file radiotap-header.h.
|
private |
Radiotap flags.
Definition at line 437 of file radiotap-header.h.
VHT flags.
Definition at line 344 of file radiotap-header.h.
VHT known bits.
Definition at line 327 of file radiotap-header.h.
ns3::RadiotapHeader::RadiotapHeader | ( | ) |
Definition at line 33 of file radiotap-header.cc.
References NS_LOG_FUNCTION.
|
virtual |
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.
start | An iterator which points to where the header should written. |
Implements ns3::Header.
Definition at line 263 of file radiotap-header.cc.
References m_ampduStatusCRC, m_ampduStatusFlags, m_ampduStatusPad, m_ampduStatusRef, m_antennaNoise, m_antennaSignal, m_channelFlags, m_channelFreq, m_channelPad, m_flags, m_length, m_mcsFlags, m_mcsKnown, m_mcsRate, m_present, m_rate, m_tsft, m_vhtBandwidth, m_vhtCoding, m_vhtFlags, m_vhtGroupId, m_vhtKnown, m_vhtMcsNss, m_vhtPad, m_vhtPartialAid, ns3::Buffer::Iterator::Next(), NS_ASSERT_MSG(), NS_LOG_FUNCTION, RADIOTAP_AMPDU_STATUS, RADIOTAP_ANTENNA, RADIOTAP_CHANNEL, RADIOTAP_DB_ANTNOISE, RADIOTAP_DB_ANTSIGNAL, RADIOTAP_DB_TX_ATTENUATION, RADIOTAP_DBM_ANTNOISE, RADIOTAP_DBM_ANTSIGNAL, RADIOTAP_DBM_TX_POWER, RADIOTAP_FHSS, RADIOTAP_FLAGS, RADIOTAP_LOCK_QUALITY, RADIOTAP_MCS, RADIOTAP_RATE, RADIOTAP_RX_FLAGS, RADIOTAP_TSFT, RADIOTAP_TX_ATTENUATION, RADIOTAP_VHT, ns3::Buffer::Iterator::ReadU16(), ns3::Buffer::Iterator::ReadU32(), ns3::Buffer::Iterator::ReadU64(), and ns3::Buffer::Iterator::ReadU8().
uint16_t ns3::RadiotapHeader::GetAmpduStatusFlags | ( | void | ) | const |
Get the A-MPDU status flags.
Definition at line 731 of file radiotap-header.cc.
References m_ampduStatusFlags, and NS_LOG_FUNCTION.
uint32_t ns3::RadiotapHeader::GetAmpduStatusRef | ( | void | ) | const |
Get the A-MPDU reference number.
Definition at line 724 of file radiotap-header.cc.
References m_ampduStatusRef, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetAntennaNoisePower | ( | void | ) | const |
Get the RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference.
Definition at line 663 of file radiotap-header.cc.
References m_antennaNoise, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetAntennaSignalPower | ( | void | ) | const |
Get the RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference.
Definition at line 630 of file radiotap-header.cc.
References m_antennaSignal, and NS_LOG_FUNCTION.
uint16_t ns3::RadiotapHeader::GetChannelFlags | ( | void | ) | const |
Get the channel flags of the transmitted or received frame.
Definition at line 597 of file radiotap-header.cc.
References m_channelFlags, and NS_LOG_FUNCTION.
uint16_t ns3::RadiotapHeader::GetChannelFrequency | ( | void | ) | const |
Get the transmit/receive data rate in units of 500 kbps.
Definition at line 590 of file radiotap-header.cc.
References m_channelFreq, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetFrameFlags | ( | void | ) | const |
Get the frame flags of the transmitted or received frame.
Definition at line 544 of file radiotap-header.cc.
References m_flags, and NS_LOG_FUNCTION.
|
virtual |
Get the most derived TypeId for this Object.
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.
Definition at line 69 of file radiotap-header.cc.
References GetTypeId().
uint8_t ns3::RadiotapHeader::GetMcsFlags | ( | void | ) | const |
Get the MCS flags.
Definition at line 693 of file radiotap-header.cc.
References m_mcsFlags, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetMcsKnown | ( | void | ) | const |
Get the MCS known bitmap.
Definition at line 686 of file radiotap-header.cc.
References m_mcsKnown, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetMcsRate | ( | void | ) | const |
Get the MCS index value.
Definition at line 700 of file radiotap-header.cc.
References m_mcsRate, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetRate | ( | void | ) | const |
Get the transmit/receive channel frequency in units of megahertz.
Definition at line 566 of file radiotap-header.cc.
References m_rate, and NS_LOG_FUNCTION.
|
virtual |
This method is used by Packet::AddHeader to store the header into the byte buffer of a packet.
This method returns the number of bytes which are needed to store the header data during a Serialize.
Implements ns3::Header.
Definition at line 75 of file radiotap-header.cc.
References m_length, and NS_LOG_FUNCTION.
uint64_t ns3::RadiotapHeader::GetTsft | ( | void | ) | const |
Get the Time Synchronization Function Timer (TSFT) value.
Valid for received frames only.
Definition at line 522 of file radiotap-header.cc.
References m_tsft, and NS_LOG_FUNCTION.
|
static |
Get the type ID.
Definition at line 57 of file radiotap-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
uint8_t ns3::RadiotapHeader::GetVhtBandwidth | ( | void | ) | const |
Get the VHT bandwidth field value.
Definition at line 776 of file radiotap-header.cc.
References m_vhtBandwidth, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtCoding | ( | void | ) | const |
Get the VHT coding field value.
Definition at line 811 of file radiotap-header.cc.
References m_vhtCoding, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtFlags | ( | void | ) | const |
Get the VHT flags.
Definition at line 769 of file radiotap-header.cc.
References m_vhtFlags, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtGroupId | ( | void | ) | const |
Get the VHT group_id field value.
Definition at line 818 of file radiotap-header.cc.
References m_vhtGroupId, and NS_LOG_FUNCTION.
uint16_t ns3::RadiotapHeader::GetVhtKnown | ( | void | ) | const |
Get the VHT known bitmap.
Definition at line 762 of file radiotap-header.cc.
References m_vhtKnown, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtMcsNssUser1 | ( | ) | const |
Get the VHT mcs_nss field value for user 1.
Definition at line 783 of file radiotap-header.cc.
References m_vhtMcsNss, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtMcsNssUser2 | ( | ) | const |
Get the VHT mcs_nss field value for user 2.
Definition at line 790 of file radiotap-header.cc.
References m_vhtMcsNss, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtMcsNssUser3 | ( | ) | const |
Get the VHT mcs_nss field value for user 3.
Definition at line 797 of file radiotap-header.cc.
References m_vhtMcsNss, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtMcsNssUser4 | ( | ) | const |
Get the VHT mcs_nss field value for user 4.
Definition at line 804 of file radiotap-header.cc.
References m_vhtMcsNss, and NS_LOG_FUNCTION.
uint8_t ns3::RadiotapHeader::GetVhtPartialAid | ( | void | ) | const |
Get the VHT partial_aid field value.
Definition at line 825 of file radiotap-header.cc.
References m_vhtPartialAid, and NS_LOG_FUNCTION.
|
virtual |
This method is used by Packet::Print to print the content of the header as ascii data to a C++ output stream.
Although the header 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.
eg: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5
os | The output stream |
Implements ns3::Header.
Definition at line 480 of file radiotap-header.cc.
References m_ampduStatusFlags, m_antennaNoise, m_antennaSignal, m_channelFlags, m_channelFreq, m_flags, m_mcsFlags, m_mcsKnown, m_mcsRate, m_rate, m_tsft, m_vhtBandwidth, m_vhtCoding, m_vhtFlags, m_vhtGroupId, m_vhtKnown, m_vhtMcsNss, m_vhtPartialAid, and NS_LOG_FUNCTION.
|
virtual |
This method is used by Packet::AddHeader to store the 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.
start | An iterator which points to where the header should be written. |
Implements ns3::Header.
Definition at line 82 of file radiotap-header.cc.
References m_ampduStatusCRC, m_ampduStatusFlags, m_ampduStatusPad, m_ampduStatusRef, m_antennaNoise, m_antennaSignal, m_channelFlags, m_channelFreq, m_channelPad, m_flags, m_length, m_mcsFlags, m_mcsKnown, m_mcsRate, m_present, m_rate, m_tsft, m_vhtBandwidth, m_vhtCoding, m_vhtFlags, m_vhtGroupId, m_vhtKnown, m_vhtMcsNss, m_vhtPad, m_vhtPartialAid, NS_LOG_FUNCTION, RADIOTAP_AMPDU_STATUS, RADIOTAP_ANTENNA, RADIOTAP_CHANNEL, RADIOTAP_DB_ANTNOISE, RADIOTAP_DB_ANTSIGNAL, RADIOTAP_DB_TX_ATTENUATION, RADIOTAP_DBM_ANTNOISE, RADIOTAP_DBM_ANTSIGNAL, RADIOTAP_DBM_TX_POWER, RADIOTAP_FHSS, RADIOTAP_FLAGS, RADIOTAP_LOCK_QUALITY, RADIOTAP_MCS, RADIOTAP_RATE, RADIOTAP_RX_FLAGS, RADIOTAP_TSFT, RADIOTAP_TX_ATTENUATION, RADIOTAP_VHT, ns3::Buffer::Iterator::WriteU16(), ns3::Buffer::Iterator::WriteU32(), ns3::Buffer::Iterator::WriteU64(), and ns3::Buffer::Iterator::WriteU8().
void ns3::RadiotapHeader::SetAmpduStatus | ( | uint32_t | referenceNumber, |
uint16_t | flags, | ||
uint8_t | crc | ||
) |
Set the A-MPDU status fields.
referenceNumber | The A-MPDU reference number to identify all subframes belonging to the same A-MPDU. |
flags | The flags to set. |
crc | The CRC value value. |
Definition at line 707 of file radiotap-header.cc.
References m_ampduStatusCRC, m_ampduStatusFlags, m_ampduStatusPad, m_ampduStatusRef, m_length, m_present, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_AMPDU_STATUS.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
void ns3::RadiotapHeader::SetAntennaNoisePower | ( | double | noise | ) |
Set the RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference.
noise | The RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference. |
Definition at line 637 of file radiotap-header.cc.
References m_antennaNoise, m_length, m_present, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_DBM_ANTNOISE.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent().
void ns3::RadiotapHeader::SetAntennaSignalPower | ( | double | signal | ) |
Set the RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference.
signal | The RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference; |
Definition at line 604 of file radiotap-header.cc.
References m_antennaSignal, m_length, m_present, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_DBM_ANTSIGNAL.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent().
void ns3::RadiotapHeader::SetChannelFrequencyAndFlags | ( | uint16_t | frequency, |
uint16_t | flags | ||
) |
Set the transmit/receive channel frequency and flags.
frequency | The transmit/receive data rate in units of 500 kbps. |
flags | The flags to set. |
Definition at line 573 of file radiotap-header.cc.
References m_channelFlags, m_channelFreq, m_channelPad, m_length, m_present, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_CHANNEL.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
void ns3::RadiotapHeader::SetFrameFlags | ( | uint8_t | flags | ) |
Set the frame flags of the transmitted or received frame.
flags | flags to set. |
Definition at line 529 of file radiotap-header.cc.
References m_flags, m_length, m_present, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_FLAGS.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
void ns3::RadiotapHeader::SetMcsFields | ( | uint8_t | known, |
uint8_t | flags, | ||
uint8_t | mcs | ||
) |
Set the MCS fields.
known | The kwown flags. |
flags | The flags to set. |
mcs | The MCS index value. |
Definition at line 670 of file radiotap-header.cc.
References m_length, m_mcsFlags, m_mcsKnown, m_mcsRate, m_present, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_MCS.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
void ns3::RadiotapHeader::SetRate | ( | uint8_t | rate | ) |
Set the transmit/receive channel frequency in units of megahertz.
rate | the transmit/receive channel frequency in units of megahertz. |
Definition at line 551 of file radiotap-header.cc.
References m_length, m_present, m_rate, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_RATE.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
void ns3::RadiotapHeader::SetTsft | ( | uint64_t | tsft | ) |
Set the Time Synchronization Function Timer (TSFT) value.
Valid for received frames only.
tsft | Value in microseconds of the MAC's 64-bit 802.11 Time Synchronization Function timer when the first bit of the MPDU arrived at the MAC. |
Definition at line 507 of file radiotap-header.cc.
References m_length, m_present, m_tsft, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_TSFT.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
void ns3::RadiotapHeader::SetVhtFields | ( | uint16_t | known, |
uint8_t | flags, | ||
uint8_t | bandwidth, | ||
uint8_t | mcs_nss[4], | ||
uint8_t | coding, | ||
uint8_t | group_id, | ||
uint16_t | partial_aid | ||
) |
Set the VHT fields.
known | The kwown flags. |
flags | The flags to set. |
bandwidth | The bandwidth value. |
mcs_nss | The mcs_nss value. |
coding | The coding value. |
group_id | The group_id value. |
partial_aid | The partial_aid value. |
Definition at line 738 of file radiotap-header.cc.
References m_length, m_present, m_vhtBandwidth, m_vhtCoding, m_vhtFlags, m_vhtGroupId, m_vhtKnown, m_vhtMcsNss, m_vhtPad, m_vhtPartialAid, NS_LOG_FUNCTION, NS_LOG_LOGIC(), and RADIOTAP_VHT.
Referenced by ns3::WifiPhyHelper::PcapSniffRxEvent(), and ns3::WifiPhyHelper::PcapSniffTxEvent().
|
private |
A-MPDU Status Flags, delimiter CRC value.
Definition at line 479 of file radiotap-header.h.
Referenced by Deserialize(), Serialize(), and SetAmpduStatus().
|
private |
A-MPDU Status Flags, information about the received A-MPDU.
Definition at line 478 of file radiotap-header.h.
Referenced by Deserialize(), GetAmpduStatusFlags(), Print(), Serialize(), and SetAmpduStatus().
|
private |
A-MPDU Status Flags, padding before A-MPDU Status Field.
Definition at line 476 of file radiotap-header.h.
Referenced by Deserialize(), Serialize(), and SetAmpduStatus().
|
private |
A-MPDU Status Flags, reference number.
Definition at line 477 of file radiotap-header.h.
Referenced by Deserialize(), GetAmpduStatusRef(), Serialize(), and SetAmpduStatus().
|
private |
RF noise power at the antenna, dB difference from an arbitrary, fixed reference.
Definition at line 470 of file radiotap-header.h.
Referenced by Deserialize(), GetAntennaNoisePower(), Print(), Serialize(), and SetAntennaNoisePower().
|
private |
RF signal power at the antenna, dB difference from an arbitrary, fixed reference.
Definition at line 469 of file radiotap-header.h.
Referenced by Deserialize(), GetAntennaSignalPower(), Print(), Serialize(), and SetAntennaSignalPower().
|
private |
Tx/Rx channel flags.
Definition at line 468 of file radiotap-header.h.
Referenced by Deserialize(), GetChannelFlags(), Print(), Serialize(), and SetChannelFrequencyAndFlags().
|
private |
Tx/Rx frequency in MHz.
Definition at line 467 of file radiotap-header.h.
Referenced by Deserialize(), GetChannelFrequency(), Print(), Serialize(), and SetChannelFrequencyAndFlags().
|
private |
Tx/Rx channel padding.
Definition at line 466 of file radiotap-header.h.
Referenced by Deserialize(), Serialize(), and SetChannelFrequencyAndFlags().
|
private |
Properties of transmitted and received frames.
Definition at line 464 of file radiotap-header.h.
Referenced by Deserialize(), GetFrameFlags(), Print(), Serialize(), and SetFrameFlags().
|
private |
entire length of radiotap data + header
Definition at line 460 of file radiotap-header.h.
Referenced by Deserialize(), GetSerializedSize(), Serialize(), SetAmpduStatus(), SetAntennaNoisePower(), SetAntennaSignalPower(), SetChannelFrequencyAndFlags(), SetFrameFlags(), SetMcsFields(), SetRate(), SetTsft(), and SetVhtFields().
|
private |
MCS Flags, flags field.
Definition at line 473 of file radiotap-header.h.
Referenced by Deserialize(), GetMcsFlags(), Print(), Serialize(), and SetMcsFields().
|
private |
MCS Flags, known information field.
Definition at line 472 of file radiotap-header.h.
Referenced by Deserialize(), GetMcsKnown(), Print(), Serialize(), and SetMcsFields().
|
private |
MCS Flags, mcs rate index.
Definition at line 474 of file radiotap-header.h.
Referenced by Deserialize(), GetMcsRate(), Print(), Serialize(), and SetMcsFields().
|
private |
bits describing which fields follow header
Definition at line 461 of file radiotap-header.h.
Referenced by Deserialize(), Serialize(), SetAmpduStatus(), SetAntennaNoisePower(), SetAntennaSignalPower(), SetChannelFrequencyAndFlags(), SetFrameFlags(), SetMcsFields(), SetRate(), SetTsft(), and SetVhtFields().
|
private |
TX/RX data rate in units of 500 kbps.
Definition at line 465 of file radiotap-header.h.
Referenced by Deserialize(), GetRate(), Print(), Serialize(), and SetRate().
|
private |
Time Synchronization Function Timer (when the first bit of the MPDU arrived at the MAC)
Definition at line 463 of file radiotap-header.h.
Referenced by Deserialize(), GetTsft(), Print(), Serialize(), and SetTsft().
|
private |
VHT bandwidth field.
Definition at line 484 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtBandwidth(), Print(), Serialize(), and SetVhtFields().
|
private |
VHT coding field.
Definition at line 486 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtCoding(), Print(), Serialize(), and SetVhtFields().
|
private |
VHT flags field.
Definition at line 483 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtFlags(), Print(), Serialize(), and SetVhtFields().
|
private |
VHT group_id field.
Definition at line 487 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtGroupId(), Print(), Serialize(), and SetVhtFields().
|
private |
VHT known field.
Definition at line 482 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtKnown(), Print(), Serialize(), and SetVhtFields().
|
private |
VHT mcs_nss field.
Definition at line 485 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtMcsNssUser1(), GetVhtMcsNssUser2(), GetVhtMcsNssUser3(), GetVhtMcsNssUser4(), Print(), Serialize(), and SetVhtFields().
|
private |
VHT padding.
Definition at line 481 of file radiotap-header.h.
Referenced by Deserialize(), Serialize(), and SetVhtFields().
|
private |
VHT partial_aid field.
Definition at line 488 of file radiotap-header.h.
Referenced by Deserialize(), GetVhtPartialAid(), Print(), Serialize(), and SetVhtFields().