1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 13:04:28 +01:00

added Utils::to_string(PDU::PDUType). closes #12.

This commit is contained in:
Kyle McDonald
2014-07-27 00:24:16 -04:00
parent 2dff95700f
commit 416edc34f7
2 changed files with 67 additions and 1 deletions

View File

@@ -197,10 +197,17 @@ namespace Tins {
/**
* \brief Converts mhz units to the appropriate channel number.
* \param channel The mhz units to be converted.
* \param mhz The mhz units to be converted.
* \return The channel number.
*/
uint16_t mhz_to_channel(uint16_t mhz);
/**
* \brief Converts a PDUType to a string.
* \param pduType The PDUType to be converted.
* \return A string representation, for example "DOT11_QOS_DATA".
*/
std::string to_string(PDU::PDUType pduType);
/** \brief Does the 16 bits sum of all 2 bytes elements between start and end.
*