src/lib/dhcpsrv/d2_client_mgr.h
D2ClientMgr::adjustDomainName() - modified to start with
raw text domain name, this allows us to cope with escape
sequences
src/lib/dhcpsrv/tests/d2_client_unittest.cc
Updated unit tests
src/lib/dhcpsrv/d2_client_mgr.h
D2ClientMgr::adjustDomainName() - added logic to
sanitize the inbound FQDN name when configured to do so
src/lib/dhcpsrv/tests/d2_client_unittest.cc
TEST(D2ClientMgr, sanitizeFqdnV4)
TEST(D2ClientMgr, sanitizeFqdnV6) - new tests
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, sanitizeFqdn) - new test
src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processHostnameOption() - sanitizes client hostname
if configured to do so
src/bin/dhcp4/tests/fqdn_unittest.cc
TEST_F(NameDhcpv4SrvTest, sanitizeHostname) - new test to
verify hostname sanitizing works as expected
src/lib/dhcpsrv/d2_client_cfg.h
D2ClientConfig::getHostnameSanitizer() added missing getter
src/lib/dhcpsrv/tests/d2_client_unittest.cc
TEST(D2ClientConfigTest, constructorsAndAccessors) - updated to
verify hostname sanitizing stuff
src/lib/util/strutil.cc
fixed regex compilation issue
Added to parsing and parsing unit tests.
Servers do not yet utilize the values.
Modified:
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
src/bin/dhcp4/tests/get_config_unittest.
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
src/bin/dhcp6/tests/get_config_unittest.
src/lib/dhcpsrv/d2_client_cfg.*
src/lib/dhcpsrv/parsers/dhcp_parsers.cc
src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
src/lib/dhcpsrv/tests/d2_client_unittest.cc
src/lib/dhcpsrv/tests/d2_udp_unittest.cc
Added defaults and handling for new params,
hostname-char-set and hostname-char-replacement
configure.ac
Added logic to detect usable C++11 regex
src/lib/util/strutil.*
sanitizeString() - new function that replaces all
occurances of invalid chars in a string with a
specified replacement
src/lib/util/tests/strutil_unittest.cc
TEST(StringUtilTest, sanitizeString) - new test