From: Marcin Siodelski Date: Mon, 5 Nov 2012 14:09:39 +0000 (+0100) Subject: [2417] Initialize standard option definitions and keep them in storage. X-Git-Tag: trac2487_base~18^2^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c70372efd0b0ddb8059d5bbe9eb195f024d4df8;p=thirdparty%2Fkea.git [2417] Initialize standard option definitions and keep them in storage. --- diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc index 4e5bfd6262..929a6d2733 100644 --- a/src/bin/dhcp6/tests/config_parser_unittest.cc +++ b/src/bin/dhcp6/tests/config_parser_unittest.cc @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -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() {