A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
radiotap-header.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 CTTC
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Include., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Authors: Nicola Baldo <nbaldo@cttc.es>
19
* Sébastien Deronne <sebastien.deronne@gmail.com>
20
*/
21
22
#ifndef RADIOTAP_HEADER_H
23
#define RADIOTAP_HEADER_H
24
25
26
#include <ns3/header.h>
27
28
namespace
ns3
{
29
38
class
RadiotapHeader
:
public
Header
39
{
40
public
:
41
RadiotapHeader
();
46
static
TypeId
GetTypeId
(
void
);
47
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
48
56
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
57
66
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
67
77
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
78
92
virtual
void
Print
(std::ostream &os)
const
;
93
102
void
SetTsft
(uint64_t tsft);
103
112
uint64_t
GetTsft
(
void
)
const
;
113
117
enum
FrameFlag
118
{
119
FRAME_FLAG_NONE
= 0x00,
120
FRAME_FLAG_CFP
= 0x01,
121
FRAME_FLAG_SHORT_PREAMBLE
= 0x02,
122
FRAME_FLAG_WEP
= 0x04,
123
FRAME_FLAG_FRAGMENTED
= 0x08,
124
FRAME_FLAG_FCS_INCLUDED
= 0x10,
125
FRAME_FLAG_DATA_PADDING
= 0x20,
126
FRAME_FLAG_BAD_FCS
= 0x40,
127
FRAME_FLAG_SHORT_GUARD
= 0x80
128
};
129
134
void
SetFrameFlags
(uint8_t flags);
135
141
uint8_t
GetFrameFlags
(
void
)
const
;
142
147
void
SetRate
(uint8_t rate);
148
153
uint8_t
GetRate
(
void
)
const
;
154
158
enum
ChannelFlags
159
{
160
CHANNEL_FLAG_NONE
= 0x0000,
161
CHANNEL_FLAG_TURBO
= 0x0010,
162
CHANNEL_FLAG_CCK
= 0x0020,
163
CHANNEL_FLAG_OFDM
= 0x0040,
164
CHANNEL_FLAG_SPECTRUM_2GHZ
= 0x0080,
165
CHANNEL_FLAG_SPECTRUM_5GHZ
= 0x0100,
166
CHANNEL_FLAG_PASSIVE
= 0x0200,
167
CHANNEL_FLAG_DYNAMIC
= 0x0400,
168
CHANNEL_FLAG_GFSK
= 0x0800
169
};
170
177
void
SetChannelFrequencyAndFlags
(uint16_t frequency, uint16_t flags);
178
183
uint16_t
GetChannelFrequency
(
void
)
const
;
184
190
uint16_t
GetChannelFlags
(
void
)
const
;
191
199
void
SetAntennaSignalPower
(
double
signal);
200
208
uint8_t
GetAntennaSignalPower
(
void
)
const
;
209
217
void
SetAntennaNoisePower
(
double
noise);
218
226
uint8_t
GetAntennaNoisePower
(
void
)
const
;
227
231
enum
McsKnown
232
{
233
MCS_KNOWN_NONE
= 0x00,
234
MCS_KNOWN_BANDWIDTH
= 0x01,
235
MCS_KNOWN_INDEX
= 0x02,
236
MCS_KNOWN_GUARD_INTERVAL
= 0x04,
237
MCS_KNOWN_HT_FORMAT
= 0x08,
238
MCS_KNOWN_FEC_TYPE
= 0x10,
239
MCS_KNOWN_STBC
= 0x20,
240
MCS_KNOWN_NESS
= 0x40,
241
MCS_KNOWN_NESS_BIT_1
= 0x80,
242
};
243
247
enum
McsFlags
248
{
249
MCS_FLAGS_NONE
= 0x00,
250
MCS_FLAGS_BANDWIDTH_40
= 0x01,
251
MCS_FLAGS_BANDWIDTH_20L
= 0x02,
252
MCS_FLAGS_BANDWIDTH_20U
= 0x03,
253
MCS_FLAGS_GUARD_INTERVAL
= 0x04,
254
MCS_FLAGS_HT_GREENFIELD
= 0x08,
255
MCS_FLAGS_FEC_TYPE
= 0x10,
256
MCS_FLAGS_STBC_STREAMS
= 0x60,
257
MCS_FLAGS_NESS_BIT_0
= 0x80,
258
};
259
267
void
SetMcsFields
(uint8_t known, uint8_t flags, uint8_t mcs);
268
274
uint8_t
GetMcsKnown
(
void
)
const
;
280
uint8_t
GetMcsFlags
(
void
)
const
;
286
uint8_t
GetMcsRate
(
void
)
const
;
287
291
enum
AmpduFlags
292
{
293
A_MPDU_STATUS_NONE
= 0x00,
294
A_MPDU_STATUS_REPORT_ZERO_LENGTH
= 0x01,
295
A_MPDU_STATUS_IS_ZERO_LENGTH
= 0x02,
296
A_MPDU_STATUS_LAST_KNOWN
= 0x04,
297
A_MPDU_STATUS_LAST
= 0x08,
298
A_MPDU_STATUS_DELIMITER_CRC_ERROR
= 0x10,
299
A_MPDU_STATUS_DELIMITER_CRC_KNOWN
= 0x20
300
};
301
309
void
SetAmpduStatus
(uint32_t referenceNumber, uint16_t flags, uint8_t crc);
310
316
uint32_t
GetAmpduStatusRef
(
void
)
const
;
322
uint16_t
GetAmpduStatusFlags
(
void
)
const
;
323
327
enum
VhtKnown
328
{
329
VHT_KNOWN_NONE
= 0x0000,
330
VHT_KNOWN_STBC
= 0x0001,
331
VHT_KNOWN_TXOP_PS_NOT_ALLOWED
= 0x0002,
332
VHT_KNOWN_GUARD_INTERVAL
= 0x0004,
333
VHT_KNOWN_SHORT_GI_NSYM_DISAMBIGUATION
= 0x0008,
334
VHT_KNOWN_LDPC_EXTRA_OFDM_SYMBOL
= 0x0010,
335
VHT_KNOWN_BEAMFORMED
= 0x0020,
336
VHT_KNOWN_BANDWIDTH
= 0x0040,
337
VHT_KNOWN_GROUP_ID
= 0x0080,
338
VHT_KNOWN_PARTIAL_AID
= 0x0100,
339
};
340
344
enum
VhtFlags
345
{
346
VHT_FLAGS_NONE
= 0x00,
347
VHT_FLAGS_STBC
= 0x01,
348
VHT_FLAGS_TXOP_PS_NOT_ALLOWED
= 0x02,
349
VHT_FLAGS_GUARD_INTERVAL
= 0x04,
350
VHT_FLAGS_SHORT_GI_NSYM_DISAMBIGUATION
= 0x08,
351
VHT_FLAGS_LDPC_EXTRA_OFDM_SYMBOL
= 0x10,
352
VHT_FLAGS_BEAMFORMED
= 0x20,
353
};
354
366
void
SetVhtFields
(uint16_t known, uint8_t flags,
367
uint8_t bandwidth, uint8_t mcs_nss [4],
368
uint8_t coding, uint8_t group_id,
369
uint16_t partial_aid);
370
376
uint16_t
GetVhtKnown
(
void
)
const
;
382
uint8_t
GetVhtFlags
(
void
)
const
;
388
uint8_t
GetVhtBandwidth
(
void
)
const
;
394
uint8_t
GetVhtMcsNssUser1
()
const
;
400
uint8_t
GetVhtMcsNssUser2
()
const
;
406
uint8_t
GetVhtMcsNssUser3
()
const
;
412
uint8_t
GetVhtMcsNssUser4
()
const
;
418
uint8_t
GetVhtCoding
(
void
)
const
;
424
uint8_t
GetVhtGroupId
(
void
)
const
;
430
uint8_t
GetVhtPartialAid
(
void
)
const
;
431
432
433
private
:
437
enum
RadiotapFlags
438
{
439
RADIOTAP_TSFT
= 0x00000001,
440
RADIOTAP_FLAGS
= 0x00000002,
441
RADIOTAP_RATE
= 0x00000004,
442
RADIOTAP_CHANNEL
= 0x00000008,
443
RADIOTAP_FHSS
= 0x00000010,
444
RADIOTAP_DBM_ANTSIGNAL
= 0x00000020,
445
RADIOTAP_DBM_ANTNOISE
= 0x00000040,
446
RADIOTAP_LOCK_QUALITY
= 0x00000080,
447
RADIOTAP_TX_ATTENUATION
= 0x00000100,
448
RADIOTAP_DB_TX_ATTENUATION
= 0x00000200,
449
RADIOTAP_DBM_TX_POWER
= 0x00000400,
450
RADIOTAP_ANTENNA
= 0x00000800,
451
RADIOTAP_DB_ANTSIGNAL
= 0x00001000,
452
RADIOTAP_DB_ANTNOISE
= 0x00002000,
453
RADIOTAP_RX_FLAGS
= 0x00004000,
454
RADIOTAP_MCS
= 0x00080000,
455
RADIOTAP_AMPDU_STATUS
= 0x00100000,
456
RADIOTAP_VHT
= 0x00200000,
457
RADIOTAP_EXT
= 0x10000000
458
};
459
460
uint16_t
m_length
;
461
uint32_t
m_present
;
462
463
uint64_t
m_tsft
;
464
uint8_t
m_flags
;
465
uint8_t
m_rate
;
466
uint8_t
m_channelPad
;
467
uint16_t
m_channelFreq
;
468
uint16_t
m_channelFlags
;
469
int8_t
m_antennaSignal
;
470
int8_t
m_antennaNoise
;
471
472
uint8_t
m_mcsKnown
;
473
uint8_t
m_mcsFlags
;
474
uint8_t
m_mcsRate
;
475
476
uint8_t
m_ampduStatusPad
;
477
uint32_t
m_ampduStatusRef
;
478
uint16_t
m_ampduStatusFlags
;
479
uint8_t
m_ampduStatusCRC
;
480
481
uint8_t
m_vhtPad
;
482
uint16_t
m_vhtKnown
;
483
uint8_t
m_vhtFlags
;
484
uint8_t
m_vhtBandwidth
;
485
uint8_t
m_vhtMcsNss
[4];
486
uint8_t
m_vhtCoding
;
487
uint8_t
m_vhtGroupId
;
488
uint16_t
m_vhtPartialAid
;
489
};
490
491
}
// namespace ns3
492
493
#endif
/* RADIOTAP_HEADER_H */
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
ns3::RadiotapHeader::VHT_KNOWN_GROUP_ID
Group ID known.
Definition:
radiotap-header.h:337
ns3::RadiotapHeader::FRAME_FLAG_SHORT_GUARD
Frame used short guard interval (HT)
Definition:
radiotap-header.h:127
ns3::RadiotapHeader::FRAME_FLAG_FRAGMENTED
Frame sent/received with fragmentation.
Definition:
radiotap-header.h:123
ns3::RadiotapHeader::m_channelPad
uint8_t m_channelPad
Tx/Rx channel padding.
Definition:
radiotap-header.h:466
ns3::RadiotapHeader::m_mcsKnown
uint8_t m_mcsKnown
MCS Flags, known information field.
Definition:
radiotap-header.h:472
ns3::RadiotapHeader::RADIOTAP_TX_ATTENUATION
Definition:
radiotap-header.h:447
ns3::RadiotapHeader::GetVhtKnown
uint16_t GetVhtKnown(void) const
Get the VHT known bitmap.
Definition:
radiotap-header.cc:762
ns3::RadiotapHeader::McsKnown
McsKnown
MCS known bits.
Definition:
radiotap-header.h:231
ns3::RadiotapHeader::RADIOTAP_MCS
Definition:
radiotap-header.h:454
ns3::RadiotapHeader::m_vhtPad
uint8_t m_vhtPad
VHT padding.
Definition:
radiotap-header.h:481
ns3::RadiotapHeader::RADIOTAP_DB_ANTNOISE
Definition:
radiotap-header.h:452
ns3::RadiotapHeader::VHT_KNOWN_BEAMFORMED
Beamformed known/applicable (this flag should be set to zero for MU PPDUs).
Definition:
radiotap-header.h:335
ns3::RadiotapHeader::MCS_KNOWN_HT_FORMAT
HT format.
Definition:
radiotap-header.h:237
ns3::RadiotapHeader::m_ampduStatusCRC
uint8_t m_ampduStatusCRC
A-MPDU Status Flags, delimiter CRC value.
Definition:
radiotap-header.h:479
ns3::RadiotapHeader
Radiotap header implementation.
Definition:
radiotap-header.h:38
ns3::RadiotapHeader::m_ampduStatusFlags
uint16_t m_ampduStatusFlags
A-MPDU Status Flags, information about the received A-MPDU.
Definition:
radiotap-header.h:478
ns3::RadiotapHeader::GetTsft
uint64_t GetTsft(void) const
Get the Time Synchronization Function Timer (TSFT) value.
Definition:
radiotap-header.cc:522
ns3::RadiotapHeader::Print
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...
Definition:
radiotap-header.cc:480
ns3::RadiotapHeader::A_MPDU_STATUS_DELIMITER_CRC_ERROR
Delimiter CRC error.
Definition:
radiotap-header.h:298
ns3::RadiotapHeader::CHANNEL_FLAG_SPECTRUM_2GHZ
2 GHz spectrum channel
Definition:
radiotap-header.h:164
ns3::RadiotapHeader::VHT_FLAGS_LDPC_EXTRA_OFDM_SYMBOL
Set if one or more users are using LDPC and the encoding process resulted in extra OFDM symbol(s) ...
Definition:
radiotap-header.h:351
ns3::RadiotapHeader::GetRate
uint8_t GetRate(void) const
Get the transmit/receive channel frequency in units of megahertz.
Definition:
radiotap-header.cc:566
visualizer.core.start
def start()
Definition:
core.py:1790
ns3::RadiotapHeader::RADIOTAP_VHT
Definition:
radiotap-header.h:456
ns3::RadiotapHeader::Deserialize
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...
Definition:
radiotap-header.cc:263
ns3::RadiotapHeader::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
This method is used by Packet::AddHeader to store the header into the byte buffer of a packet...
Definition:
radiotap-header.cc:75
ns3::RadiotapHeader::MCS_FLAGS_GUARD_INTERVAL
Short guard interval.
Definition:
radiotap-header.h:253
ns3::RadiotapHeader::CHANNEL_FLAG_TURBO
Turbo Channel.
Definition:
radiotap-header.h:161
ns3::RadiotapHeader::A_MPDU_STATUS_REPORT_ZERO_LENGTH
Driver reports 0-length subframes.
Definition:
radiotap-header.h:294
ns3::RadiotapHeader::MCS_FLAGS_STBC_STREAMS
STBC enabled.
Definition:
radiotap-header.h:256
ns3::RadiotapHeader::GetVhtGroupId
uint8_t GetVhtGroupId(void) const
Get the VHT group_id field value.
Definition:
radiotap-header.cc:818
ns3::RadiotapHeader::m_channelFreq
uint16_t m_channelFreq
Tx/Rx frequency in MHz.
Definition:
radiotap-header.h:467
ns3::RadiotapHeader::m_mcsFlags
uint8_t m_mcsFlags
MCS Flags, flags field.
Definition:
radiotap-header.h:473
ns3::RadiotapHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
radiotap-header.cc:69
ns3::RadiotapHeader::GetAmpduStatusRef
uint32_t GetAmpduStatusRef(void) const
Get the A-MPDU reference number.
Definition:
radiotap-header.cc:724
ns3::RadiotapHeader::RADIOTAP_DBM_ANTSIGNAL
Definition:
radiotap-header.h:444
ns3::RadiotapHeader::MCS_KNOWN_BANDWIDTH
Bandwidth.
Definition:
radiotap-header.h:234
ns3::RadiotapHeader::SetAntennaNoisePower
void SetAntennaNoisePower(double noise)
Set the RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference...
Definition:
radiotap-header.cc:637
ns3::RadiotapHeader::GetAntennaNoisePower
uint8_t GetAntennaNoisePower(void) const
Get the RF noise power at the antenna as a decibel difference from an arbitrary, fixed reference...
Definition:
radiotap-header.cc:663
ns3::RadiotapHeader::FRAME_FLAG_SHORT_PREAMBLE
Frame sent/received with short preamble.
Definition:
radiotap-header.h:121
ns3::RadiotapHeader::SetTsft
void SetTsft(uint64_t tsft)
Set the Time Synchronization Function Timer (TSFT) value.
Definition:
radiotap-header.cc:507
ns3::RadiotapHeader::FrameFlag
FrameFlag
Frame flags.
Definition:
radiotap-header.h:117
ns3::RadiotapHeader::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
radiotap-header.cc:57
ns3::RadiotapHeader::A_MPDU_STATUS_DELIMITER_CRC_KNOWN
Delimiter CRC value known: the delimiter CRC value field is valid.
Definition:
radiotap-header.h:299
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::RadiotapHeader::m_vhtMcsNss
uint8_t m_vhtMcsNss[4]
VHT mcs_nss field.
Definition:
radiotap-header.h:485
ns3::RadiotapHeader::m_vhtCoding
uint8_t m_vhtCoding
VHT coding field.
Definition:
radiotap-header.h:486
ns3::RadiotapHeader::ChannelFlags
ChannelFlags
Channel flags.
Definition:
radiotap-header.h:158
ns3::RadiotapHeader::RADIOTAP_DB_TX_ATTENUATION
Definition:
radiotap-header.h:448
ns3::RadiotapHeader::MCS_KNOWN_INDEX
MCS index known.
Definition:
radiotap-header.h:235
ns3::RadiotapHeader::RADIOTAP_DBM_TX_POWER
Definition:
radiotap-header.h:449
ns3::RadiotapHeader::GetVhtMcsNssUser3
uint8_t GetVhtMcsNssUser3() const
Get the VHT mcs_nss field value for user 3.
Definition:
radiotap-header.cc:797
ns3::RadiotapHeader::RADIOTAP_CHANNEL
Definition:
radiotap-header.h:442
ns3::RadiotapHeader::RADIOTAP_DBM_ANTNOISE
Definition:
radiotap-header.h:445
ns3::RadiotapHeader::A_MPDU_STATUS_LAST
This frame is the last subframe.
Definition:
radiotap-header.h:297
ns3::RadiotapHeader::VHT_FLAGS_SHORT_GI_NSYM_DISAMBIGUATION
Set if NSYM mod 10 = 9 (valid only if short GI is used).
Definition:
radiotap-header.h:350
ns3::RadiotapHeader::CHANNEL_FLAG_PASSIVE
Only passive scan allowed.
Definition:
radiotap-header.h:166
ns3::RadiotapHeader::m_tsft
uint64_t m_tsft
Time Synchronization Function Timer (when the first bit of the MPDU arrived at the MAC) ...
Definition:
radiotap-header.h:463
ns3::RadiotapHeader::SetChannelFrequencyAndFlags
void SetChannelFrequencyAndFlags(uint16_t frequency, uint16_t flags)
Set the transmit/receive channel frequency and flags.
Definition:
radiotap-header.cc:573
ns3::RadiotapHeader::VhtKnown
VhtKnown
VHT known bits.
Definition:
radiotap-header.h:327
ns3::RadiotapHeader::m_vhtFlags
uint8_t m_vhtFlags
VHT flags field.
Definition:
radiotap-header.h:483
ns3::RadiotapHeader::m_mcsRate
uint8_t m_mcsRate
MCS Flags, mcs rate index.
Definition:
radiotap-header.h:474
ns3::RadiotapHeader::MCS_FLAGS_NESS_BIT_0
Ness - bit 0 (LSB) of Number of extension spatial streams.
Definition:
radiotap-header.h:257
ns3::RadiotapHeader::VHT_FLAGS_GUARD_INTERVAL
Short guard interval.
Definition:
radiotap-header.h:349
ns3::RadiotapHeader::m_antennaNoise
int8_t m_antennaNoise
RF noise power at the antenna, dB difference from an arbitrary, fixed reference.
Definition:
radiotap-header.h:470
ns3::RadiotapHeader::VHT_KNOWN_PARTIAL_AID
Partial AID known/applicable.
Definition:
radiotap-header.h:338
ns3::RadiotapHeader::RadiotapFlags
RadiotapFlags
Radiotap flags.
Definition:
radiotap-header.h:437
ns3::RadiotapHeader::m_vhtBandwidth
uint8_t m_vhtBandwidth
VHT bandwidth field.
Definition:
radiotap-header.h:484
ns3::RadiotapHeader::GetVhtFlags
uint8_t GetVhtFlags(void) const
Get the VHT flags.
Definition:
radiotap-header.cc:769
ns3::RadiotapHeader::CHANNEL_FLAG_OFDM
OFDM channel.
Definition:
radiotap-header.h:163
ns3::RadiotapHeader::CHANNEL_FLAG_SPECTRUM_5GHZ
5 GHz spectrum channel
Definition:
radiotap-header.h:165
ns3::RadiotapHeader::MCS_KNOWN_FEC_TYPE
FEC type.
Definition:
radiotap-header.h:238
ns3::RadiotapHeader::GetVhtMcsNssUser4
uint8_t GetVhtMcsNssUser4() const
Get the VHT mcs_nss field value for user 4.
Definition:
radiotap-header.cc:804
ns3::RadiotapHeader::m_channelFlags
uint16_t m_channelFlags
Tx/Rx channel flags.
Definition:
radiotap-header.h:468
ns3::RadiotapHeader::m_ampduStatusPad
uint8_t m_ampduStatusPad
A-MPDU Status Flags, padding before A-MPDU Status Field.
Definition:
radiotap-header.h:476
ns3::RadiotapHeader::RADIOTAP_RX_FLAGS
Definition:
radiotap-header.h:453
ns3::RadiotapHeader::FRAME_FLAG_BAD_FCS
Frame failed FCS check.
Definition:
radiotap-header.h:126
ns3::RadiotapHeader::SetFrameFlags
void SetFrameFlags(uint8_t flags)
Set the frame flags of the transmitted or received frame.
Definition:
radiotap-header.cc:529
ns3::RadiotapHeader::RADIOTAP_FLAGS
Definition:
radiotap-header.h:440
ns3::RadiotapHeader::SetRate
void SetRate(uint8_t rate)
Set the transmit/receive channel frequency in units of megahertz.
Definition:
radiotap-header.cc:551
ns3::RadiotapHeader::RADIOTAP_ANTENNA
Definition:
radiotap-header.h:450
ns3::RadiotapHeader::RADIOTAP_TSFT
Definition:
radiotap-header.h:439
ns3::RadiotapHeader::m_antennaSignal
int8_t m_antennaSignal
RF signal power at the antenna, dB difference from an arbitrary, fixed reference. ...
Definition:
radiotap-header.h:469
ns3::RadiotapHeader::VHT_KNOWN_GUARD_INTERVAL
Guard interval.
Definition:
radiotap-header.h:332
ns3::RadiotapHeader::RADIOTAP_RATE
Definition:
radiotap-header.h:441
ns3::RadiotapHeader::CHANNEL_FLAG_GFSK
GFSK channel (FHSS PHY)
Definition:
radiotap-header.h:168
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::RadiotapHeader::GetMcsKnown
uint8_t GetMcsKnown(void) const
Get the MCS known bitmap.
Definition:
radiotap-header.cc:686
ns3::RadiotapHeader::GetVhtPartialAid
uint8_t GetVhtPartialAid(void) const
Get the VHT partial_aid field value.
Definition:
radiotap-header.cc:825
ns3::RadiotapHeader::m_flags
uint8_t m_flags
Properties of transmitted and received frames.
Definition:
radiotap-header.h:464
ns3::RadiotapHeader::GetFrameFlags
uint8_t GetFrameFlags(void) const
Get the frame flags of the transmitted or received frame.
Definition:
radiotap-header.cc:544
ns3::RadiotapHeader::MCS_KNOWN_NESS_BIT_1
Ness data - bit 1 (MSB) of Number of extension spatial streams.
Definition:
radiotap-header.h:241
ns3::RadiotapHeader::MCS_KNOWN_GUARD_INTERVAL
Guard interval.
Definition:
radiotap-header.h:236
ns3::RadiotapHeader::GetChannelFlags
uint16_t GetChannelFlags(void) const
Get the channel flags of the transmitted or received frame.
Definition:
radiotap-header.cc:597
ns3::RadiotapHeader::RADIOTAP_FHSS
Definition:
radiotap-header.h:443
ns3::RadiotapHeader::SetMcsFields
void SetMcsFields(uint8_t known, uint8_t flags, uint8_t mcs)
Set the MCS fields.
Definition:
radiotap-header.cc:670
ns3::RadiotapHeader::GetVhtBandwidth
uint8_t GetVhtBandwidth(void) const
Get the VHT bandwidth field value.
Definition:
radiotap-header.cc:776
ns3::RadiotapHeader::CHANNEL_FLAG_NONE
No flags set.
Definition:
radiotap-header.h:160
ns3::RadiotapHeader::VHT_FLAGS_NONE
No flags set.
Definition:
radiotap-header.h:346
ns3::RadiotapHeader::VHT_FLAGS_TXOP_PS_NOT_ALLOWED
Set if STAs may not doze during TXOP (valid only for AP transmitters).
Definition:
radiotap-header.h:348
ns3::RadiotapHeader::m_present
uint32_t m_present
bits describing which fields follow header
Definition:
radiotap-header.h:461
ns3::RadiotapHeader::MCS_KNOWN_NESS
Ness known (Number of extension spatial streams)
Definition:
radiotap-header.h:240
ns3::RadiotapHeader::VHT_KNOWN_TXOP_PS_NOT_ALLOWED
TXOP_PS_NOT_ALLOWED known.
Definition:
radiotap-header.h:331
ns3::RadiotapHeader::m_vhtGroupId
uint8_t m_vhtGroupId
VHT group_id field.
Definition:
radiotap-header.h:487
ns3::RadiotapHeader::VHT_KNOWN_SHORT_GI_NSYM_DISAMBIGUATION
Short GI NSYM disambiguation known.
Definition:
radiotap-header.h:333
ns3::RadiotapHeader::MCS_FLAGS_HT_GREENFIELD
Greenfield HT format.
Definition:
radiotap-header.h:254
ns3::RadiotapHeader::A_MPDU_STATUS_NONE
No flags set.
Definition:
radiotap-header.h:293
ns3::RadiotapHeader::MCS_FLAGS_BANDWIDTH_40
40 MHz
Definition:
radiotap-header.h:250
ns3::RadiotapHeader::MCS_KNOWN_STBC
STBC known.
Definition:
radiotap-header.h:239
ns3::RadiotapHeader::VHT_KNOWN_STBC
Space-time block coding (1 if all spatial streams of all users have STBC, 0 otherwise).
Definition:
radiotap-header.h:330
ns3::RadiotapHeader::m_vhtPartialAid
uint16_t m_vhtPartialAid
VHT partial_aid field.
Definition:
radiotap-header.h:488
ns3::RadiotapHeader::GetAntennaSignalPower
uint8_t GetAntennaSignalPower(void) const
Get the RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference...
Definition:
radiotap-header.cc:630
ns3::RadiotapHeader::SetVhtFields
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.
Definition:
radiotap-header.cc:738
ns3::RadiotapHeader::FRAME_FLAG_FCS_INCLUDED
Frame includes FCS.
Definition:
radiotap-header.h:124
ns3::RadiotapHeader::VHT_FLAGS_STBC
Set if all spatial streams of all users have space-time block coding.
Definition:
radiotap-header.h:347
ns3::RadiotapHeader::FRAME_FLAG_DATA_PADDING
Frame has padding between 802.11 header and payload (to 32-bit boundary)
Definition:
radiotap-header.h:125
ns3::RadiotapHeader::A_MPDU_STATUS_IS_ZERO_LENGTH
Frame is 0-length subframe (valid only if 0x0001 is set)
Definition:
radiotap-header.h:295
ns3::RadiotapHeader::GetAmpduStatusFlags
uint16_t GetAmpduStatusFlags(void) const
Get the A-MPDU status flags.
Definition:
radiotap-header.cc:731
ns3::RadiotapHeader::m_vhtKnown
uint16_t m_vhtKnown
VHT known field.
Definition:
radiotap-header.h:482
ns3::RadiotapHeader::MCS_FLAGS_FEC_TYPE
LDPC FEC type.
Definition:
radiotap-header.h:255
ns3::RadiotapHeader::MCS_KNOWN_NONE
No flags set.
Definition:
radiotap-header.h:233
ns3::RadiotapHeader::MCS_FLAGS_BANDWIDTH_20L
20L (20 MHz in lower half of 40 MHz channel)
Definition:
radiotap-header.h:251
ns3::RadiotapHeader::GetMcsRate
uint8_t GetMcsRate(void) const
Get the MCS index value.
Definition:
radiotap-header.cc:700
ns3::RadiotapHeader::FRAME_FLAG_NONE
No flags set.
Definition:
radiotap-header.h:119
ns3::RadiotapHeader::GetMcsFlags
uint8_t GetMcsFlags(void) const
Get the MCS flags.
Definition:
radiotap-header.cc:693
ns3::RadiotapHeader::A_MPDU_STATUS_LAST_KNOWN
Last subframe is known (should be set for all subframes in an A-MPDU)
Definition:
radiotap-header.h:296
ns3::RadiotapHeader::GetVhtCoding
uint8_t GetVhtCoding(void) const
Get the VHT coding field value.
Definition:
radiotap-header.cc:811
ns3::RadiotapHeader::RADIOTAP_AMPDU_STATUS
Definition:
radiotap-header.h:455
ns3::RadiotapHeader::MCS_FLAGS_BANDWIDTH_20U
20U (20 MHz in upper half of 40 MHz channel)
Definition:
radiotap-header.h:252
ns3::RadiotapHeader::CHANNEL_FLAG_DYNAMIC
Dynamic CCK-OFDM channel.
Definition:
radiotap-header.h:167
ns3::RadiotapHeader::m_length
uint16_t m_length
entire length of radiotap data + header
Definition:
radiotap-header.h:460
ns3::RadiotapHeader::GetVhtMcsNssUser2
uint8_t GetVhtMcsNssUser2() const
Get the VHT mcs_nss field value for user 2.
Definition:
radiotap-header.cc:790
ns3::RadiotapHeader::FRAME_FLAG_CFP
Frame sent/received during CFP.
Definition:
radiotap-header.h:120
ns3::RadiotapHeader::RADIOTAP_EXT
Definition:
radiotap-header.h:457
ns3::RadiotapHeader::MCS_FLAGS_NONE
Default: 20 MHz, long guard interval, mixed HT format and BCC FEC type.
Definition:
radiotap-header.h:249
ns3::RadiotapHeader::GetVhtMcsNssUser1
uint8_t GetVhtMcsNssUser1() const
Get the VHT mcs_nss field value for user 1.
Definition:
radiotap-header.cc:783
ns3::RadiotapHeader::m_rate
uint8_t m_rate
TX/RX data rate in units of 500 kbps.
Definition:
radiotap-header.h:465
ns3::RadiotapHeader::VHT_KNOWN_LDPC_EXTRA_OFDM_SYMBOL
LDPC extra OFDM symbol known.
Definition:
radiotap-header.h:334
ns3::RadiotapHeader::McsFlags
McsFlags
MCS flags.
Definition:
radiotap-header.h:247
ns3::RadiotapHeader::RADIOTAP_DB_ANTSIGNAL
Definition:
radiotap-header.h:451
ns3::RadiotapHeader::Serialize
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...
Definition:
radiotap-header.cc:82
ns3::RadiotapHeader::RADIOTAP_LOCK_QUALITY
Definition:
radiotap-header.h:446
ns3::RadiotapHeader::VHT_KNOWN_BANDWIDTH
Bandwidth known.
Definition:
radiotap-header.h:336
ns3::RadiotapHeader::m_ampduStatusRef
uint32_t m_ampduStatusRef
A-MPDU Status Flags, reference number.
Definition:
radiotap-header.h:477
ns3::RadiotapHeader::SetAmpduStatus
void SetAmpduStatus(uint32_t referenceNumber, uint16_t flags, uint8_t crc)
Set the A-MPDU status fields.
Definition:
radiotap-header.cc:707
ns3::RadiotapHeader::GetChannelFrequency
uint16_t GetChannelFrequency(void) const
Get the transmit/receive data rate in units of 500 kbps.
Definition:
radiotap-header.cc:590
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::RadiotapHeader::VHT_FLAGS_BEAMFORMED
Set if beamforming is used (valid for SU PPDUs only).
Definition:
radiotap-header.h:352
ns3::RadiotapHeader::VHT_KNOWN_NONE
No flags set.
Definition:
radiotap-header.h:329
ns3::RadiotapHeader::VhtFlags
VhtFlags
VHT flags.
Definition:
radiotap-header.h:344
ns3::RadiotapHeader::AmpduFlags
AmpduFlags
A-MPDU status flags.
Definition:
radiotap-header.h:291
ns3::RadiotapHeader::FRAME_FLAG_WEP
Frame sent/received with WEP encryption.
Definition:
radiotap-header.h:122
ns3::RadiotapHeader::RadiotapHeader
RadiotapHeader()
Definition:
radiotap-header.cc:33
ns3::RadiotapHeader::CHANNEL_FLAG_CCK
CCK channel.
Definition:
radiotap-header.h:162
ns3::RadiotapHeader::SetAntennaSignalPower
void SetAntennaSignalPower(double signal)
Set the RF signal power at the antenna as a decibel difference from an arbitrary, fixed reference...
Definition:
radiotap-header.cc:604
src
network
utils
radiotap-header.h
Generated on Wed Mar 21 2018 14:24:25 for ns-3 by
1.8.9.1