diff options
author | Marcin Siodelski <marcin@isc.org> | 2016-06-24 10:31:55 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2016-07-08 07:50:19 +0200 |
commit | ee88ec857c21b9de5a2a45d3ca05d37c6696cf78 (patch) | |
tree | 4b624f577226399f74285cdd1f27909ca89f3e10 /src/lib/dhcp/option_string.h | |
parent | [master] Finished merge of trac4523 (vendor options in Renew and Rebind) (diff) | |
download | kea-ee88ec857c21b9de5a2a45d3ca05d37c6696cf78.tar.xz kea-ee88ec857c21b9de5a2a45d3ca05d37c6696cf78.zip |
[4497] Fix constness of methods in Option classes.
Diffstat (limited to 'src/lib/dhcp/option_string.h')
-rw-r--r-- | src/lib/dhcp/option_string.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dhcp/option_string.h b/src/lib/dhcp/option_string.h index 147251d4fa..d3a8f83b0d 100644 --- a/src/lib/dhcp/option_string.h +++ b/src/lib/dhcp/option_string.h @@ -59,7 +59,7 @@ public: /// @brief Returns length of the whole option, including header. /// /// @return length of the whole option. - virtual uint16_t len(); + virtual uint16_t len() const; /// @brief Returns the string value held by the option. /// @@ -80,7 +80,7 @@ public: /// is moved to the end of stored data. /// /// @param [out] buf output buffer where the option will be stored. - virtual void pack(isc::util::OutputBuffer& buf); + virtual void pack(isc::util::OutputBuffer& buf) const; /// @brief Decodes option data from the provided buffer. /// @@ -101,13 +101,13 @@ public: /// the text. /// /// @return Option information in the textual format. - virtual std::string toText(int indent = 0); + virtual std::string toText(int indent = 0) const; /// @brief Returns actual value of the option in string format. /// /// This method is used in client classification. /// @return Content of the option. - virtual std::string toString(); + virtual std::string toString() const; }; /// Pointer to the OptionString object. |