From: Marcin Siodelski Date: Fri, 18 Jan 2013 16:43:27 +0000 (+0100) Subject: [2637] Enable setting FQDN for options. X-Git-Tag: bind10-1.0.0-rc-release~29^2~1^2~17^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea6e8ea2e28a3c7b22ca2390f3509d791522959b;p=thirdparty%2Fkea.git [2637] Enable setting FQDN for options. --- diff --git a/src/lib/dhcp/option_definition.cc b/src/lib/dhcp/option_definition.cc index d2b5aaef46..5648efdb9a 100644 --- a/src/lib/dhcp/option_definition.cc +++ b/src/lib/dhcp/option_definition.cc @@ -411,14 +411,8 @@ OptionDefinition::writeToBuffer(const std::string& value, OptionDataTypeUtil::writeString(value, buf); return; case OPT_FQDN_TYPE: - { - // FQDN implementation is not terribly complicated but will require - // creation of some additional logic (maybe object) that will parse - // the fqdn into labels. - isc_throw(isc::NotImplemented, "write of FQDN record into option buffer" - " is not supported yet"); - return; - } + OptionDataTypeUtil::writeFqdn(value, buf); + return; default: // We hit this point because invalid option data type has been specified // This may be the case because 'empty' or 'record' data type has been