1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add getter/setter for more data field in Dot11Base (#252)

This commit is contained in:
juno0812
2017-10-04 10:03:17 -04:00
committed by Matias Fontanini
parent 2aab4cf126
commit b43d2f74e4
6 changed files with 33 additions and 0 deletions

View File

@@ -279,6 +279,15 @@ public:
return header_.control.power_mgmt;
}
/**
* \brief Getter for the More Data field.
*
* \return The stored More Data field.
*/
small_uint<1> more_data() const {
return header_.control.more_data;
}
/**
* \brief Getter for the WEP field.
*
@@ -373,6 +382,13 @@ public:
*/
void power_mgmt(small_uint<1> new_value);
/**
* \brief Setter for the More Data field.
*
* \param new_value The new More Data field value.
*/
void more_data(small_uint<1> new_value);
/**
* \brief Setter for the WEP field.
*