Commit 5b11136c authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3199] Added option definition for Boot-File-Name.

parent 33026699
......@@ -126,6 +126,7 @@ enum DHCPOptionType {
DHO_NWIP_DOMAIN_NAME = 62,
DHO_NWIP_SUBOPTIONS = 63,
DHO_TFTP_SERVER_NAME = 66,
DHO_BOOT_FILE_NAME = 67,
DHO_USER_CLASS = 77,
DHO_FQDN = 81,
DHO_DHCP_AGENT_OPTIONS = 82,
......
......@@ -163,7 +163,10 @@ const OptionDefParams OPTION_DEF_PARAMS4[] = {
OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" },
{ "nwip-domain-name", DHO_NWIP_DOMAIN_NAME, OPT_STRING_TYPE, false, NO_RECORD_DEF, "" },
{ "nwip-suboptions", DHO_NWIP_SUBOPTIONS, OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" },
{ "tftp-server-name", DHO_TFTP_SERVER_NAME, OPT_STRING_TYPE, false, NO_RECORD_DEF, "" },
{ "tftp-server-name", DHO_TFTP_SERVER_NAME, OPT_STRING_TYPE, false,
NO_RECORD_DEF, "" },
{ "boot-file-name", DHO_BOOT_FILE_NAME, OPT_STRING_TYPE, false,
NO_RECORD_DEF, "" },
{ "user-class", DHO_USER_CLASS, OPT_BINARY_TYPE, false, NO_RECORD_DEF, "" },
{ "fqdn", DHO_FQDN, OPT_RECORD_TYPE, false, RECORD_DEF(FQDN_RECORDS), "" },
{ "dhcp-agent-options", DHO_DHCP_AGENT_OPTIONS,
......
......@@ -735,6 +735,9 @@ TEST_F(LibDhcpTest, stdOptionDefs4) {
LibDhcpTest::testStdOptionDefs4(DHO_TFTP_SERVER_NAME, begin, end,
typeid(OptionString));
LibDhcpTest::testStdOptionDefs4(DHO_BOOT_FILE_NAME, begin, end,
typeid(OptionString));
LibDhcpTest::testStdOptionDefs4(DHO_USER_CLASS, begin, end,
typeid(Option));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment