1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add missing radiotap parsing fields

This commit is contained in:
Matias Fontanini
2017-06-03 08:55:08 -07:00
parent d0b4383a0d
commit fe6e575158
6 changed files with 149 additions and 3 deletions

View File

@@ -134,6 +134,11 @@ public:
*/
typedef PDUOption<RadioTap::PresentFlags, RadioTap> option;
/**
* The type used to store the options payload
*/
typedef std::vector<uint8_t> options_payload_type;
/**
* \brief Default constructor.
*/
@@ -407,6 +412,15 @@ public:
*/
void add_option(const option& opt);
/**
* \brief Gets the options payload
*
* Use Utils::RadioTapParser to iterate these options and extract fields manually,
* in case you want to have deeper access into the option types/values stored in
* a RadioTap frame.
*/
const options_payload_type& options_payload() const;
/**
* \sa PDU::clone
*/
@@ -438,7 +452,7 @@ private:
option do_find_option(PresentFlags type) const;
radiotap_header header_;
std::vector<uint8_t> options_payload_;
options_payload_type options_payload_;
};
}