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

Added RadioTap constructor from buffer. It's working, although some flags are not implemented yet.

This commit is contained in:
Matias Fontanini
2011-08-23 23:58:05 -03:00
parent 22b84e5df0
commit 2fa66c814d
2 changed files with 78 additions and 2 deletions

View File

@@ -33,17 +33,25 @@ namespace Tins {
class RadioTap : public PDU {
public:
/**
* Creates an instance of RadioTap.
* \brief Creates an instance of RadioTap.
* \param iface The name of the interface in which to send this PDU.
*/
RadioTap(const std::string &iface) throw (std::runtime_error);
/**
* Creates an instance of RadioTap.
* \brief Creates an instance of RadioTap.
* \param iface_index The index of the interface in which to send this PDU.
*/
RadioTap(uint32_t iface_index);
/**
* \brief Constructor which creates a RadioTap object from a buffer and adds all
* identifiable PDUs found in the buffer as children of this one.
* \param buffer The buffer from which this PDU will be constructed.
* \param total_sz The total size of the buffer.
*/
RadioTap(const uint8_t *buffer, uint32_t total_sz);
/* Setters */
/**