A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::anonymous_namespace{radiotap-header.cc} Namespace Reference

Functions

uint8_t GetPadding (uint32_t offset, uint32_t alignment)
 Calculate the padding needed to align a field.
bool IsPresent (const std::vector< std::bitset< RADIOTAP_BITS_PER_PRESENT_FIELD > > &presentBits, uint32_t field)
 Check if a specific field is present in the radiotap header.

Variables

constexpr uint16_t RADIOTAP_AMPDU_STATUS_ALIGNMENT_B = 4
 Alignment in bytes of the A-MPDU status field in the radiotap header.
constexpr uint16_t RADIOTAP_AMPDU_STATUS_SIZE_B = 8
 Size in bytes of the A-MPDU status field in the radiotap header.
constexpr uint16_t RADIOTAP_ANTENNA_NOISE_SIZE_B = 1
 Size in bytes of the Antenna Noise field in the radiotap header.
constexpr uint16_t RADIOTAP_ANTENNA_SIGNAL_SIZE_B = 1
 Size in bytes of the Antenna Signal field in the radiotap header.
constexpr std::size_t RADIOTAP_BITS_PER_PRESENT_FIELD {32}
 Number of bits per "present" field in the radiotap header.
constexpr uint16_t RADIOTAP_CHANNEL_ALIGNMENT_B = 2
 Alignment in bytes of the Channel field in the radiotap header.
constexpr uint16_t RADIOTAP_CHANNEL_SIZE_B = 4
 Size in bytes of the Channel field in the radiotap header.
constexpr uint16_t RADIOTAP_EHT_ALIGNMENT_B = 4
 Alignment in bytes of the EHT field in the radiotap header.
constexpr uint16_t RADIOTAP_EHT_DATA_SIZE_B = 4
 Size in bytes of a data subfield of the EHT field in the radiotap header.
constexpr uint16_t RADIOTAP_EHT_KNOWN_SIZE_B = 4
 Size in bytes of the known subfield of the EHT field in the radiotap header.
constexpr uint16_t RADIOTAP_EHT_USER_INFO_SIZE_B = 4
 Size in bytes of a user info subfield of the EHT field in the radiotap header.
constexpr uint16_t RADIOTAP_FLAGS_SIZE_B = 1
 Size in bytes of the Flags field in the radiotap header.
constexpr uint16_t RADIOTAP_HE_ALIGNMENT_B = 2
 Alignment in bytes of the HE field in the radiotap header.
constexpr uint16_t RADIOTAP_HE_MU_ALIGNMENT_B = 2
 Alignment in bytes of the HE MU field in the radiotap header.
constexpr uint16_t RADIOTAP_HE_MU_OTHER_USER_ALIGNMENT_B = 2
 Alignment in bytes of the HE MU Other User field in the radiotap header.
constexpr uint16_t RADIOTAP_HE_MU_OTHER_USER_SIZE_B = 6
 Size in bytes of the HE MU Other User field in the radiotap header.
constexpr uint16_t RADIOTAP_HE_MU_SIZE_B = 12
 Size in bytes of the HE MU field in the radiotap header.
constexpr uint16_t RADIOTAP_HE_SIZE_B = 12
 Size in bytes of the HE field in the radiotap header.
constexpr uint16_t RADIOTAP_MCS_ALIGNMENT_B = 1
 Alignment in bytes of the MCS field in the radiotap header.
constexpr uint16_t RADIOTAP_MCS_SIZE_B = 3
 Size in bytes of the MCS field in the radiotap header.
constexpr uint16_t RADIOTAP_RATE_SIZE_B = 1
 Size in bytes of the Rate field in the radiotap header.
constexpr uint16_t RADIOTAP_TLV_ALIGNMENT_B = 4
 Alignment in bytes of the TLV fields in the radiotap header.
constexpr uint16_t RADIOTAP_TLV_HEADER_SIZE_B = 4
 Size in bytes of the TLV fields (without data) in the radiotap header.
constexpr uint16_t RADIOTAP_TSFT_ALIGNMENT_B = 8
 Alignment in bytes of the TSFT field in the radiotap header.
constexpr uint16_t RADIOTAP_TSFT_SIZE_B = 8
 Size in bytes of the TSFT field in the radiotap header.
constexpr uint16_t RADIOTAP_USIG_ALIGNMENT_B = 4
 Alignment in bytes of the U-SIG field in the radiotap header.
constexpr uint16_t RADIOTAP_USIG_SIZE_B = 12
 Size in bytes of the U-SIG field in the radiotap header.
constexpr uint16_t RADIOTAP_VHT_ALIGNMENT_B = 2
 Alignment in bytes of the VHT field in the radiotap header.
constexpr uint16_t RADIOTAP_VHT_SIZE_B = 12
 Size in bytes of the VHT field in the radiotap header.

Function Documentation

◆ GetPadding()

uint8_t ns3::anonymous_namespace{radiotap-header.cc}::GetPadding ( uint32_t offset,
uint32_t alignment )

Calculate the padding needed to align a field.

Parameters
offsetCurrent offset in bytes
alignmentAlignment requirement in bytes
Returns
Number of padding bytes needed

Definition at line 90 of file radiotap-header.cc.

References GetPadding().

Referenced by GetPadding().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsPresent()

bool ns3::anonymous_namespace{radiotap-header.cc}::IsPresent ( const std::vector< std::bitset< RADIOTAP_BITS_PER_PRESENT_FIELD > > & presentBits,
uint32_t field )

Check if a specific field is present in the radiotap header.

Parameters
presentBitsVector of bitsets representing the present fields
fieldField to check
Returns
true if the field is present, false otherwise

Definition at line 103 of file radiotap-header.cc.

References IsPresent(), and RADIOTAP_BITS_PER_PRESENT_FIELD.

Referenced by IsPresent().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ RADIOTAP_AMPDU_STATUS_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_AMPDU_STATUS_ALIGNMENT_B = 4
constexpr

Alignment in bytes of the A-MPDU status field in the radiotap header.

Definition at line 49 of file radiotap-header.cc.

◆ RADIOTAP_AMPDU_STATUS_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_AMPDU_STATUS_SIZE_B = 8
constexpr

Size in bytes of the A-MPDU status field in the radiotap header.

Definition at line 47 of file radiotap-header.cc.

◆ RADIOTAP_ANTENNA_NOISE_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_ANTENNA_NOISE_SIZE_B = 1
constexpr

Size in bytes of the Antenna Noise field in the radiotap header.

Definition at line 41 of file radiotap-header.cc.

◆ RADIOTAP_ANTENNA_SIGNAL_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_ANTENNA_SIGNAL_SIZE_B = 1
constexpr

Size in bytes of the Antenna Signal field in the radiotap header.

Definition at line 39 of file radiotap-header.cc.

◆ RADIOTAP_BITS_PER_PRESENT_FIELD

std::size_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_BITS_PER_PRESENT_FIELD {32}
constexpr

Number of bits per "present" field in the radiotap header.

Definition at line 25 of file radiotap-header.cc.

Referenced by IsPresent().

◆ RADIOTAP_CHANNEL_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_CHANNEL_ALIGNMENT_B = 2
constexpr

Alignment in bytes of the Channel field in the radiotap header.

Definition at line 37 of file radiotap-header.cc.

◆ RADIOTAP_CHANNEL_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_CHANNEL_SIZE_B = 4
constexpr

Size in bytes of the Channel field in the radiotap header.

Definition at line 35 of file radiotap-header.cc.

◆ RADIOTAP_EHT_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_EHT_ALIGNMENT_B = 4
constexpr

Alignment in bytes of the EHT field in the radiotap header.

Definition at line 81 of file radiotap-header.cc.

◆ RADIOTAP_EHT_DATA_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_EHT_DATA_SIZE_B = 4
constexpr

Size in bytes of a data subfield of the EHT field in the radiotap header.

Definition at line 77 of file radiotap-header.cc.

◆ RADIOTAP_EHT_KNOWN_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_EHT_KNOWN_SIZE_B = 4
constexpr

Size in bytes of the known subfield of the EHT field in the radiotap header.

Definition at line 75 of file radiotap-header.cc.

◆ RADIOTAP_EHT_USER_INFO_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_EHT_USER_INFO_SIZE_B = 4
constexpr

Size in bytes of a user info subfield of the EHT field in the radiotap header.

Definition at line 79 of file radiotap-header.cc.

◆ RADIOTAP_FLAGS_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_FLAGS_SIZE_B = 1
constexpr

Size in bytes of the Flags field in the radiotap header.

Definition at line 31 of file radiotap-header.cc.

◆ RADIOTAP_HE_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_HE_ALIGNMENT_B = 2
constexpr

Alignment in bytes of the HE field in the radiotap header.

Definition at line 57 of file radiotap-header.cc.

◆ RADIOTAP_HE_MU_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_HE_MU_ALIGNMENT_B = 2
constexpr

Alignment in bytes of the HE MU field in the radiotap header.

Definition at line 61 of file radiotap-header.cc.

◆ RADIOTAP_HE_MU_OTHER_USER_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_HE_MU_OTHER_USER_ALIGNMENT_B = 2
constexpr

Alignment in bytes of the HE MU Other User field in the radiotap header.

Definition at line 65 of file radiotap-header.cc.

◆ RADIOTAP_HE_MU_OTHER_USER_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_HE_MU_OTHER_USER_SIZE_B = 6
constexpr

Size in bytes of the HE MU Other User field in the radiotap header.

Definition at line 63 of file radiotap-header.cc.

◆ RADIOTAP_HE_MU_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_HE_MU_SIZE_B = 12
constexpr

Size in bytes of the HE MU field in the radiotap header.

Definition at line 59 of file radiotap-header.cc.

◆ RADIOTAP_HE_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_HE_SIZE_B = 12
constexpr

Size in bytes of the HE field in the radiotap header.

Definition at line 55 of file radiotap-header.cc.

◆ RADIOTAP_MCS_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_MCS_ALIGNMENT_B = 1
constexpr

Alignment in bytes of the MCS field in the radiotap header.

Definition at line 45 of file radiotap-header.cc.

◆ RADIOTAP_MCS_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_MCS_SIZE_B = 3
constexpr

Size in bytes of the MCS field in the radiotap header.

Definition at line 43 of file radiotap-header.cc.

◆ RADIOTAP_RATE_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_RATE_SIZE_B = 1
constexpr

Size in bytes of the Rate field in the radiotap header.

Definition at line 33 of file radiotap-header.cc.

◆ RADIOTAP_TLV_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_TLV_ALIGNMENT_B = 4
constexpr

Alignment in bytes of the TLV fields in the radiotap header.

Definition at line 69 of file radiotap-header.cc.

◆ RADIOTAP_TLV_HEADER_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_TLV_HEADER_SIZE_B = 4
constexpr

Size in bytes of the TLV fields (without data) in the radiotap header.

Definition at line 67 of file radiotap-header.cc.

◆ RADIOTAP_TSFT_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_TSFT_ALIGNMENT_B = 8
constexpr

Alignment in bytes of the TSFT field in the radiotap header.

Definition at line 29 of file radiotap-header.cc.

◆ RADIOTAP_TSFT_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_TSFT_SIZE_B = 8
constexpr

Size in bytes of the TSFT field in the radiotap header.

Definition at line 27 of file radiotap-header.cc.

◆ RADIOTAP_USIG_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_USIG_ALIGNMENT_B = 4
constexpr

Alignment in bytes of the U-SIG field in the radiotap header.

Definition at line 73 of file radiotap-header.cc.

◆ RADIOTAP_USIG_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_USIG_SIZE_B = 12
constexpr

Size in bytes of the U-SIG field in the radiotap header.

Definition at line 71 of file radiotap-header.cc.

◆ RADIOTAP_VHT_ALIGNMENT_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_VHT_ALIGNMENT_B = 2
constexpr

Alignment in bytes of the VHT field in the radiotap header.

Definition at line 53 of file radiotap-header.cc.

◆ RADIOTAP_VHT_SIZE_B

uint16_t ns3::anonymous_namespace{radiotap-header.cc}::RADIOTAP_VHT_SIZE_B = 12
constexpr

Size in bytes of the VHT field in the radiotap header.

Definition at line 51 of file radiotap-header.cc.