Parcourir la source

[3899] Fixed option 1000 (v4 -> v6)

Francis Dupont il y a 10 ans
Parent
commit
8e4e4a8535
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dhcp/tests/option_custom_unittest.cc

+ 1 - 1
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
     // Check that option is not created if the provided buffer is
     // too short (use 15 bytes instead of 16).
     // too short (use 15 bytes instead of 16).
     EXPECT_THROW(
     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)),
                                       buf.begin() + 15)),
         isc::OutOfRange
         isc::OutOfRange
     );
     );