{ LW_V6_OPTION_DEFINITIONS, LW_V6_OPTION_DEFINITIONS_SIZE, LW_V6_OPTION_SPACE },
{ V4V6_RULE_OPTION_DEFINITIONS, V4V6_RULE_OPTION_DEFINITIONS_SIZE, V4V6_RULE_OPTION_SPACE },
{ V4V6_BIND_OPTION_DEFINITIONS, V4V6_BIND_OPTION_DEFINITIONS_SIZE, V4V6_BIND_OPTION_SPACE },
+ { LQ_QUERY_OPTION_DEFINITIONS, LQ_QUERY_OPTION_DEFINITIONS_SIZE, LQ_QUERY_OPTION_SPACE },
{ LAST_RESORT_V4_OPTION_DEFINITIONS, LAST_RESORT_V4_OPTION_DEFINITIONS_SIZE, LAST_RESORT_V4_OPTION_SPACE },
{ NULL, 0, "" }
};
#define DHCP_AGENT_OPTION_SPACE "dhcp-agent-options-space"
#define VENDOR_OPTION_SPACE "vendor-opts-space"
#define VENDOR_ENCAPSULATED_OPTION_SPACE "vendor-encapsulated-options-space"
+#define LQ_QUERY_OPTION_SPACE "lq-query-option-space"
// NOTE:
// When adding a new space, make sure you also update
sizeof(V4V6_BIND_OPTION_DEFINITIONS) /
sizeof(V4V6_BIND_OPTION_DEFINITIONS[0]);
+/// @brief LQ_QUERY suboption definitions (v6)
+const OptionDefParams LQ_QUERY_OPTION_DEFINITIONS[] = {
+ { "clientid", D6O_CLIENTID, OPT_BINARY_TYPE, false, NO_RECORD_DEF, ""},
+ { "iaaddr", D6O_IAADDR, OPT_RECORD_TYPE, false, RECORD_DEF(IAADDR_RECORDS), ""},
+ { "oro", D6O_ORO, OPT_UINT16_TYPE, true, NO_RECORD_DEF, "" }
+};
+
+const int LQ_QUERY_OPTION_DEFINITIONS_SIZE =
+ sizeof(LQ_QUERY_OPTION_DEFINITIONS) /
+ sizeof(LQ_QUERY_OPTION_DEFINITIONS[0]);
+
+
} // namespace
} // namespace dhcp
// Verify that the DUID file has been created.
EXPECT_TRUE(fileExists(absolutePath(DUID_FILE_NAME)));
+<<<<<<< HEAD
// Verify getCurrentDuid() returns the value created.
+=======
+ // Verifiy getCurrentDuid() returns the value created.
+>>>>>>> [#1235] Updated v6 option defintions, made current server_id accessible
DuidPtr current_duid = cfg.getCurrentDuid();
ASSERT_TRUE(current_duid);
EXPECT_EQ(*current_duid, *duid);
// Verify that the DUID file has been created.
EXPECT_TRUE(fileExists(absolutePath(DUID_FILE_NAME)));
+<<<<<<< HEAD
// Verify getCurrentDuid() returns the value created.
+=======
+ // Verifiy getCurrentDuid() returns the value created.
+>>>>>>> [#1235] Updated v6 option defintions, made current server_id accessible
DuidPtr current_duid = cfg.getCurrentDuid();
ASSERT_TRUE(current_duid);
EXPECT_EQ(*current_duid, *duid);
// DUID persistence is disabled so there should be no DUID file.
EXPECT_FALSE(fileExists(absolutePath(DUID_FILE_NAME)));
+<<<<<<< HEAD
// Verify getCurrentDuid() returns the value created.
+=======
+ // Verifiy getCurrentDuid() returns the value created.
+>>>>>>> [#1235] Updated v6 option defintions, made current server_id accessible
DuidPtr current_duid = cfg.getCurrentDuid();
ASSERT_TRUE(current_duid);
EXPECT_EQ(*current_duid, *duid);