From: Marcin Siodelski Date: Tue, 23 Jun 2015 05:50:41 +0000 (+0200) Subject: [3887] DHCPv4 option 5 (name-servers) is a list of IPv4 addresses. X-Git-Tag: trac3771_base~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20081a5c5c17c22dbb0e0fa1c761822e429e7511;p=thirdparty%2Fkea.git [3887] DHCPv4 option 5 (name-servers) is a list of IPv4 addresses. Previously, the option format comprised a single IPv4 address. --- diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index d38bebe38d..38ec0dd400 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -869,7 +869,7 @@ temporarily override a list of interface names and listen on all interfaces. time-offset2int32false routers3ipv4-addresstrue time-servers4ipv4-addresstrue -name-servers5ipv4-addressfalse +name-servers5ipv4-addresstrue domain-name-servers6ipv4-addresstrue log-servers7ipv4-addresstrue cookie-servers8ipv4-addresstrue diff --git a/src/lib/dhcp/std_option_defs.h b/src/lib/dhcp/std_option_defs.h index 69fabbb065..b03326c03f 100644 --- a/src/lib/dhcp/std_option_defs.h +++ b/src/lib/dhcp/std_option_defs.h @@ -80,7 +80,7 @@ const OptionDefParams OPTION_DEF_PARAMS4[] = { { "routers", DHO_ROUTERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, { "time-servers", DHO_TIME_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, { "name-servers", DHO_NAME_SERVERS, OPT_IPV4_ADDRESS_TYPE, - false, NO_RECORD_DEF, "" }, + true, NO_RECORD_DEF, "" }, { "domain-name-servers", DHO_DOMAIN_NAME_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, { "log-servers", DHO_LOG_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, diff --git a/src/lib/dhcp/tests/libdhcp++_unittest.cc b/src/lib/dhcp/tests/libdhcp++_unittest.cc index c9fde6e76d..fd501acff6 100644 --- a/src/lib/dhcp/tests/libdhcp++_unittest.cc +++ b/src/lib/dhcp/tests/libdhcp++_unittest.cc @@ -725,7 +725,7 @@ TEST_F(LibDhcpTest, stdOptionDefs4) { typeid(Option4AddrLst)); LibDhcpTest::testStdOptionDefs4(DHO_NAME_SERVERS, begin, end, - typeid(OptionCustom)); + typeid(Option4AddrLst)); LibDhcpTest::testStdOptionDefs4(DHO_DOMAIN_NAME_SERVERS, begin, end, typeid(Option4AddrLst));