mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 04:11:35 +01:00
Added some helper functions to IEEE802_11_Beacon.
This commit is contained in:
@@ -613,6 +613,24 @@ namespace Tins {
|
||||
*/
|
||||
IEEE802_11_Beacon();
|
||||
|
||||
/**
|
||||
* \brief Helper method to set the essid.
|
||||
* \param new_essid The essid to be set.
|
||||
*/
|
||||
void essid(const std::string &new_essid);
|
||||
|
||||
/**
|
||||
* \brief Helper method to set the supported rates.
|
||||
* \param new_rates A list of rates to be set.
|
||||
*/
|
||||
void rates(const std::list<float> &new_rates);
|
||||
|
||||
/**
|
||||
* \brief Helper method to set the current channel.
|
||||
* \param new_channel The new channel to be set.
|
||||
*/
|
||||
void channel(uint8_t new_channel);
|
||||
|
||||
/**
|
||||
* \brief Returns the frame's header length.
|
||||
*
|
||||
@@ -620,7 +638,6 @@ namespace Tins {
|
||||
* \sa PDU::header_size()
|
||||
*/
|
||||
uint32_t header_size() const;
|
||||
|
||||
private:
|
||||
|
||||
struct BeaconBody {
|
||||
|
||||
Reference in New Issue
Block a user