#include <senf/Packets/80211Bundle/RadiotapPacket.hh>
Public Types | |
typedef RadiotapPacket_FlagsParser | flags_t |
typedef UInt32Parser | fcs_t |
Public Types inherited from senf::RadiotapPacket_HeaderParser | |
enum | PresentIndex { TSFT_INDEX = 0, FLAGS_INDEX = 1, RATE_INDEX = 2, CHANNEL_INDEX = 3, FHSS_INDEX = 4, DBM_ANTSIGNAL_INDEX = 5, DBM_ANTNOISE_INDEX = 6, LOCK_QUALITY_INDEX = 7, TX_ATTENUATION_INDEX = 8, DB_TX_ATTENUATION_INDEX = 9, DBM_TX_POWER_INDEX = 10, ANTENNA_INDEX = 11, DB_ANTSIGNAL_INDEX = 12, DB_ANTNOISE_INDEX = 13, RX_FLAGS_INDEX = 14, TX_FLAGS_INDEX = 15, RTS_RETRIES_INDEX = 16, DATA_RETRIES_INDEX = 17, MCS_INDEX = 19, A_MPDU_STATUS_INDEX = 20, VHT_INDEX = 21, MAX_INDEX = 21, RADIOTOP_NS_INDEX = 29, VENDOR_NS_INDEX = 30, EXTENDED_BITMASK_INDEX = 31 } |
enum | PresentFlag { TSFT_FLAG = (1<<TSFT_INDEX), FLAGS_FLAG = (1<<FLAGS_INDEX), RATE_FLAG = (1<<RATE_INDEX), CHANNEL_FLAG = (1<<CHANNEL_INDEX), FHSS_FLAG = (1<<FHSS_INDEX), DBM_ANTSIGNAL_FLAG = (1<<DBM_ANTSIGNAL_INDEX), DBM_ANTNOISE_FLAG = (1<<DBM_ANTNOISE_INDEX), LOCK_QUALITY_FLAG = (1<<LOCK_QUALITY_INDEX), TX_ATTENUATION_FLAG = (1<<TX_ATTENUATION_INDEX), DB_TX_ATTENUATION_FLAG = (1<<DB_TX_ATTENUATION_INDEX), DBM_TX_POWER_FLAG = (1<<DBM_TX_POWER_INDEX), ANTENNA_FLAG = (1<<ANTENNA_INDEX), DB_ANTSIGNAL_FLAG = (1<<DB_ANTSIGNAL_INDEX), DB_ANTNOISE_FLAG = (1<<DB_ANTNOISE_INDEX), RX_FLAGS_FLAG = (1<<RX_FLAGS_INDEX), TX_FLAGS_FLAG = (1<<TX_FLAGS_INDEX), RTS_RETRIES_FLAG = (1<<RTS_RETRIES_INDEX), DATA_RETRIES_FLAG = (1<<DATA_RETRIES_INDEX), MCS_FLAG = (1<<MCS_INDEX), A_MPDU_STATUS_FLAG = (1<<A_MPDU_STATUS_INDEX), VHT_FLAG = (1<<VHT_INDEX), RADIOTOP_NS_FLAG = (1<<RADIOTOP_NS_INDEX), VENDOR_NS_FLAG = (1<<VENDOR_NS_INDEX), EXTENDED_BITMASK_FLAG = (1<<EXTENDED_BITMASK_INDEX) } |
typedef UInt8Parser | version_t |
typedef UInt16LSBParser | length_t |
Public Types inherited from senf::PacketParserBase | |
typedef detail::packet::iterator | data_iterator |
Raw data iterator type. More... | |
typedef detail::packet::size_type | size_type |
Unsigned integral type. More... | |
typedef detail::packet::difference_type | difference_type |
Signed integral type. More... | |
typedef detail::packet::byte | byte |
Unsigned 8bit value, the raw value type. More... | |
typedef PacketData * | state_type |
Type of the 'state' parameter. More... | |
typedef PacketParserBase | parser_base_type |
Base type of the next parser. More... | |
Static Public Attributes | |
static const size_type | init_bytes = RadiotapPacket_HeaderParser::fixed_bytes |
Static Public Attributes inherited from senf::RadiotapPacket_HeaderParser | |
static unsigned const | FIELD_SIZE [MAX_INDEX+2] |
Additional Inherited Members | |
Protected Types inherited from senf::RadiotapPacket_HeaderParser | |
typedef UInt32LSBParser | presentFlags_t |
typedef UInt32LSBParser | presentFlags_ext1_t |
typedef UInt32LSBParser | presentFlags_ext2_t |
Protected Member Functions inherited from senf::RadiotapPacket_HeaderParser | |
UInt32LSBParser | presentFlags () const |
UInt32LSBParser | presentFlags_ext1 () const |
UInt32LSBParser | presentFlags_ext2 () const |
Protected Member Functions inherited from senf::PacketParserBase | |
ParserProtector | protect () const |
PacketParserBase (data_iterator i, state_type s) | |
Standard constructor. More... | |
PacketParserBase (data_iterator i, state_type s, size_type size) | |
Size checking constructor. More... | |
bool | check (size_type size) const |
Check size of data container. More... | |
void | validate (size_type size) const |
Validate size of data container. More... | |
template<class Parser > | |
Parser | parse (data_iterator i) const |
Create sub-parser. More... | |
template<class Parser , class Arg > | |
Parser | parse (Arg const &arg, data_iterator i) const |
Create sub-parser. More... | |
template<class Parser > | |
Parser | parse (size_type n) const |
Create sub-parser. More... | |
template<class Parser , class Arg > | |
Parser | parse (Arg const &arg, size_type n) const |
Create sub-parser. More... | |
void | defaultInit () const |
Default implementation. More... | |
Packet | packet () const |
Get packet this parser is parsing from. More... | |
void | resize (size_type oldSize, size_type newSize) |
Resize data container. More... | |
Definition at line 292 of file RadiotapPacket.hh.
Definition at line 342 of file RadiotapPacket.hh.
Definition at line 313 of file RadiotapPacket.hh.
senf::RadiotapPacketParser::RadiotapPacketParser | ( | data_iterator | i, |
state_type | s | ||
) |
unsigned senf::RadiotapPacketParser::bandwidth | ( | ) |
Definition at line 205 of file RadiotapPacket.cc.
size_type senf::RadiotapPacketParser::bytes | ( | ) | const |
void senf::RadiotapPacketParser::disable_fcs | ( | ) |
Definition at line 111 of file RadiotapPacket.cc.
|
inline |
Definition at line 318 of file RadiotapPacket.hh.
UInt32Parser senf::RadiotapPacketParser::fcs | ( | ) |
senf::RadiotapPacketParser::FIELD | ( | tsft | , |
UInt64LSBParser | , | ||
TSFT_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | rate | , |
UInt8Parser | , | ||
RATE_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | channelOptions | , |
RadiotapPacket_ChannelOptionsParser | , | ||
CHANNEL_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | fhss | , |
UInt16LSBParser | , | ||
FHSS_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dbmAntennaSignal | , |
Int8Parser | , | ||
DBM_ANTSIGNAL_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dbmAntennaNoise | , |
Int8Parser | , | ||
DBM_ANTNOISE_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | lockQuality | , |
UInt16LSBParser | , | ||
LOCK_QUALITY_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | txAttenuation | , |
UInt16LSBParser | , | ||
TX_ATTENUATION_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dbTxAttenuation | , |
UInt16LSBParser | , | ||
DB_TX_ATTENUATION_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dbmTxAttenuation | , |
Int8Parser | , | ||
DBM_TX_POWER_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | antenna | , |
UInt8Parser | , | ||
ANTENNA_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dbAntennaSignal | , |
UInt8Parser | , | ||
DB_ANTSIGNAL_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dbAntennaNoise | , |
UInt8Parser | , | ||
DB_ANTNOISE_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | rxFlags | , |
RadiotapPacket_RxFlagsParser | , | ||
RX_FLAGS_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | txFlags | , |
RadiotapPacket_TxFlagsParser | , | ||
TX_FLAGS_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | rtsRetries | , |
UInt8Parser | , | ||
RTS_RETRIES_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | dataRetries | , |
UInt8Parser | , | ||
DATA_RETRIES_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | mcs | , |
RadiotapPacket_MCSParser | , | ||
MCS_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | vht | , |
RadiotapPacket_VHTParser | , | ||
VHT_INDEX | |||
) |
senf::RadiotapPacketParser::FIELD | ( | ampduStatus | , |
RadiotapPacket_AMPDUStatusParser | , | ||
A_MPDU_STATUS_INDEX | |||
) |
|
inline |
Definition at line 314 of file RadiotapPacket.hh.
|
inline |
Definition at line 316 of file RadiotapPacket.hh.
unsigned senf::RadiotapPacketParser::frameType | ( | ) |
bool senf::RadiotapPacketParser::has_fcs | ( | ) |
|
inline |
Definition at line 315 of file RadiotapPacket.hh.
senf::UInt32Parser senf::RadiotapPacketParser::init_fcs | ( | ) |
Definition at line 102 of file RadiotapPacket.cc.
|
inline |
Definition at line 317 of file RadiotapPacket.hh.
unsigned senf::RadiotapPacketParser::rateInKbps | ( | ) |
Definition at line 193 of file RadiotapPacket.cc.
|
static |
Definition at line 296 of file RadiotapPacket.hh.