]> git.ipfire.org Git - thirdparty/kea.git/commit
[#484] Expands supported hex literal formats in option data
authorThomas Markwalder <tmark@isc.org>
Mon, 15 Apr 2019 15:06:10 +0000 (11:06 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 18 Apr 2019 11:59:17 +0000 (07:59 -0400)
commit251efcd5f518a215173845b22555276df0e0ffc6
tree0f6197029e8e34f96074b9f0b7c0e6405e4b811c
parenteec015ffc7acbb27efb784be8e17fe3ebfdcfcd4
[#484] Expands supported hex literal formats in option data

src/bin/dhcp4/tests/config_parser_unittest.cc
    TEST_F(Dhcp4ParserTest, optionDataInvalidHexLiterals)
    TEST_F(Dhcp4ParserTest, optionDataValidHexLiterals) - new tests

src/bin/dhcp6/tests/config_parser_unittest.cc
    TEST_F(Dhcp6ParserTest, optionDataInvalidHexLiterals)
    TEST_F(Dhcp6ParserTest, optionDataValidHexLiterals) - new tests

src/lib/dhcpsrv/parsers/option_data_parser.*
    OptionDataParser::createOption() - modified to use
    util::str::decodeFormattedHexString()

src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
    TEST_F(ParseConfigTest, hexOptionData) - new test

src/lib/util/strutil.*
    decodeSeparatedHexString() - new function which accepts
    the octet separator as a parameter

    decodeFormattedHexString() - now detects either colons or
    or spaces as octet separators
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/config_parser_unittest.cc
src/lib/dhcpsrv/parsers/option_data_parser.cc
src/lib/dhcpsrv/parsers/option_data_parser.h
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
src/lib/util/strutil.cc
src/lib/util/strutil.h
src/lib/util/tests/strutil_unittest.cc