]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2637] Enable setting FQDN for options.
authorMarcin Siodelski <marcin@isc.org>
Fri, 18 Jan 2013 16:43:27 +0000 (17:43 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 18 Jan 2013 16:43:27 +0000 (17:43 +0100)
src/lib/dhcp/option_definition.cc

index d2b5aaef46b92ebf2c1df8e66fe8d4575fc9e18a..5648efdb9a86f3ba43ffb7336d4563d3eabb9d54 100644 (file)
@@ -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