1
0
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:
Matias Fontanini
2011-08-22 22:59:38 -03:00
parent 3aaa895321
commit e4413d3aef
2 changed files with 40 additions and 6 deletions

View File

@@ -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 {