]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2417] Initialize standard option definitions and keep them in storage.
authorMarcin Siodelski <marcin@isc.org>
Mon, 5 Nov 2012 14:09:39 +0000 (15:09 +0100)
committerMarcin Siodelski <marcin@isc.org>
Mon, 5 Nov 2012 14:09:39 +0000 (15:09 +0100)
src/bin/dhcp6/tests/config_parser_unittest.cc

index 4e5bfd6262b3a8bf2332e3cea768f5d2cf41b09f..929a6d27337fca93c5fcf35c7825d1eacce2a657 100644 (file)
@@ -25,6 +25,7 @@
 #include <dhcp6/dhcp6_srv.h>
 #include <dhcp6/config_parser.h>
 #include <config/ccsession.h>
+#include <dhcp/libdhcp++.h>
 #include <dhcp/subnet.h>
 #include <dhcp/cfgmgr.h>
 #include <dhcp/option6_ia.h>
@@ -46,6 +47,10 @@ public:
         // deal with sockets here, just check if configuration handling
         // is sane.
         srv_ = new Dhcpv6Srv(0);
+        // Create instances of option definitions and put them into storage.
+        // This is normally initialized by the server when calling run()
+        // run() function.
+        LibDHCP::initStdOptionDefs(Option::V6);
     }
 
     ~Dhcp6ParserTest() {