mirror of
https://github.com/mfontanini/libtins
synced 2026-01-29 13:04:28 +01:00
Add missing radiotap parsing fields
This commit is contained in:
@@ -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_;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#include "utils/routing_utils.h"
|
||||
#include "utils/resolve_utils.h"
|
||||
#include "utils/pdu_utils.h"
|
||||
#include "utils/radiotap_parser.h"
|
||||
#include "utils/radiotap_writer.h"
|
||||
|
||||
namespace Tins {
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <stdint.h>
|
||||
#include "radiotap.h"
|
||||
#include "../radiotap.h"
|
||||
|
||||
namespace Tins {
|
||||
namespace Utils {
|
||||
|
||||
Reference in New Issue
Block a user