From: Francis Dupont Date: Sun, 14 Jun 2015 14:43:32 +0000 (+0200) Subject: [3899] Fixed option 1000 (v4 -> v6) X-Git-Tag: trac3919_base~6^2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e4e4a853596b6e9d548afd72d00d18fc08d8cbe;p=thirdparty%2Fkea.git [3899] Fixed option 1000 (v4 -> v6) --- diff --git a/src/lib/dhcp/tests/option_custom_unittest.cc b/src/lib/dhcp/tests/option_custom_unittest.cc index 0330dcb883..38471245b3 100644 --- a/src/lib/dhcp/tests/option_custom_unittest.cc +++ b/src/lib/dhcp/tests/option_custom_unittest.cc @@ -477,7 +477,7 @@ TEST_F(OptionCustomTest, ipv6AddressData) { // Check that option is not created if the provided buffer is // too short (use 15 bytes instead of 16). EXPECT_THROW( - option.reset(new OptionCustom(opt_def, Option::V4, buf.begin(), + option.reset(new OptionCustom(opt_def, Option::V6, buf.begin(), buf.begin() + 15)), isc::OutOfRange );