mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 23:45:27 +00:00
[2312] Added the method to return number of option data field.
This commit is contained in:
@@ -64,6 +64,11 @@ public:
|
||||
OptionCustom(const OptionDefinition& def, Universe u,
|
||||
OptionBufferConstIter first, OptionBufferConstIter last);
|
||||
|
||||
/// @brief Return a number of the data fields.
|
||||
///
|
||||
/// @return number of data fields held by the option.
|
||||
uint32_t getDataFieldsNum() const { return (buffers_.size()); }
|
||||
|
||||
/// @brief Read a buffer as IP address.
|
||||
///
|
||||
/// @param index buffer index.
|
||||
|
Reference in New Issue
Block a user