30 #include <tins/config.h> 32 #if !defined(TINS_RADIOTAP_PARSER_H) && defined(TINS_HAVE_DOT11) 33 #define TINS_RADIOTAP_PARSER_H 36 #include <tins/macros.h> 37 #include <tins/radiotap.h> 38 #include <tins/pdu_option.h> 166 const uint8_t* find_options_start()
const;
167 bool advance_to_first_field();
168 bool advance_to_next_field();
169 bool skip_current_field();
170 bool advance_to_next_namespace();
172 void load_current_flags();
173 bool is_field_set(uint32_t bit,
const RadioTapFlags* flags)
const;
175 const uint8_t* start_;
177 const uint8_t* current_ptr_;
178 uint64_t current_bit_;
179 uint32_t current_flags_;
180 uint32_t namespace_index_;
187 #endif // TINS_RADIOTAP_PARSER_H bool has_field(RadioTap::PresentFlags flag) const
Indicates whether the provided field is set.
Definition: radiotap_parser.cpp:239
NamespaceType
Definition: radiotap_parser.h:57
bool skip_to_field(RadioTap::PresentFlags flag)
Skips all fields until the provided one is found.
Definition: radiotap_parser.cpp:228
PresentFlags
Flags used in the present field.
Definition: radiotap.h:85
const uint8_t * current_option_ptr() const
Definition: radiotap_parser.cpp:188
RadioTap::PresentFlags current_field() const
Definition: radiotap_parser.cpp:176
Represents a PDU option field.
Definition: pdu_option.h:201
static const uint32_t MAX_RADIOTAP_FIELD
Definition: radiotap_parser.h:79
bool advance_namespace()
Advances to the next namespace.
Definition: radiotap_parser.cpp:215
static const FieldMetadata RADIOTAP_METADATA[]
Definition: radiotap_parser.h:74
bool advance_field()
Advances to the next option.
Definition: radiotap_parser.cpp:192
RadioTap::PresentFlags namespace_flags() const
Definition: radiotap_parser.cpp:222
RadioTapParser(const std::vector< uint8_t > &buffer)
Constructs a RadioTap parser around a payload.
Definition: radiotap_parser.cpp:145
The Tins namespace.
Definition: address_range.h:38
RadioTap::option current_option()
Definition: radiotap_parser.cpp:180
bool has_fields() const
Definition: radiotap_parser.cpp:235
NamespaceType current_namespace() const
Definition: radiotap_parser.cpp:168
uint32_t current_namespace_index() const
Gets a 0 index based namespace index.
Definition: radiotap_parser.cpp:172
Allows parsing RadioTap options.
Definition: radiotap_parser.h:52
Definition: radiotap_parser.cpp:103