diff options
author | Piotrek Zadroga <piotrek@isc.org> | 2023-11-21 22:09:26 +0100 |
---|---|---|
committer | Piotrek Zadroga <piotrek@isc.org> | 2024-01-09 11:40:04 +0100 |
commit | 475a349a1656e43961a10bdac4cd448d61f24e51 (patch) | |
tree | de5d96212a2917b03e7f65e7b0f55249347a6e22 /src/lib/dhcp/option_definition.h | |
parent | [#3074] add missing std ns (diff) | |
download | kea-475a349a1656e43961a10bdac4cd448d61f24e51.tar.xz kea-475a349a1656e43961a10bdac4cd448d61f24e51.zip |
[#3074] introduce new OPT_CUSTOM_TYPE
Diffstat (limited to 'src/lib/dhcp/option_definition.h')
-rw-r--r-- | src/lib/dhcp/option_definition.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/dhcp/option_definition.h b/src/lib/dhcp/option_definition.h index c76dcfe69a..041c44bf61 100644 --- a/src/lib/dhcp/option_definition.h +++ b/src/lib/dhcp/option_definition.h @@ -433,12 +433,15 @@ public: /// @param type option type. /// @param begin beginning of the option buffer. /// @param end end of the option buffer. + /// @param custom_data /// /// @return instance of the DHCP option. /// @throw InvalidOptionValue if data for the option is invalid. - OptionPtr optionFactory(Option::Universe u, uint16_t type, + OptionPtr optionFactory(Option::Universe u, + uint16_t type, OptionBufferConstIter begin, - OptionBufferConstIter end) const; + OptionBufferConstIter end, + bool custom_data = false) const; /// @brief Option factory. /// @@ -670,13 +673,15 @@ private: /// @param u A universe (V4 or V6). /// @param begin beginning of the option buffer. /// @param end end of the option buffer. + /// @param custom_data /// /// @return An instance of the option having special format or NULL if /// such an option can't be created because an option with the given /// option code hasn't got the special format. OptionPtr factorySpecialFormatOption(Option::Universe u, OptionBufferConstIter begin, - OptionBufferConstIter end) const; + OptionBufferConstIter end, + bool custom_data = false) const; /// @brief Check if specified type matches option definition type. /// |