summaryrefslogtreecommitdiffstats
path: root/dhcp_configuration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp_configuration.hpp')
-rw-r--r--dhcp_configuration.hpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/dhcp_configuration.hpp b/dhcp_configuration.hpp
index e952073..a550077 100644
--- a/dhcp_configuration.hpp
+++ b/dhcp_configuration.hpp
@@ -56,6 +56,7 @@ class Configuration : public Iface
ConfigIntf::dNSEnabled(true);
ConfigIntf::nTPEnabled(true);
ConfigIntf::hostNameEnabled(true);
+ ConfigIntf::sendHostNameEnabled(true);
emit_object_added();
}
@@ -82,13 +83,22 @@ class Configuration : public Iface
*/
bool hostNameEnabled(bool value) override;
+ /** @brief if true then it will cause an Option 12 field, i.e machine's
+ * hostname, will be included in the DHCP packet.
+ * @param[in] value - true if machine's host name needs to be included
+ * in the DHCP packet.
+ */
+ bool sendHostNameEnabled(bool value) override;
+
/* @brief Network Manager needed the below function to know the
- * value of the properties (ntpEnabled,dnsEnabled,hostnameEnabled).
+ * value of the properties (ntpEnabled,dnsEnabled,hostnameEnabled
+ sendHostNameEnabled).
*
*/
using ConfigIntf::dNSEnabled;
using ConfigIntf::nTPEnabled;
using ConfigIntf::hostNameEnabled;
+ using ConfigIntf::sendHostNameEnabled;
private:
OpenPOWER on IntegriCloud