1. 28 Oct, 2019 3 commits
  2. 24 Oct, 2019 1 commit
  3. 10 Oct, 2019 4 commits
    • Thomas Markwalder's avatar
      [#35,!517] Addressed review comments · 7cfc5d3f
      Thomas Markwalder authored
      Addressed a myriad of minor typos and wording issues.
      
      modified:
      ChangeLog
      doc/examples/kea4/all-keys.json
      doc/examples/kea6/all-keys.json
      doc/sphinx/arm/dhcp4-srv.rst
      doc/sphinx/arm/dhcp6-srv.rst
      src/bin/dhcp4/dhcp4_srv.cc
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp4/tests/fqdn_unittest.cc
      src/bin/dhcp6/tests/config_parser_unittest.cc
      src/bin/dhcp6/tests/d2_unittest.cc
      src/bin/dhcp6/tests/fqdn_unittest.cc
      src/lib/dhcpsrv/alloc_engine.cc
      src/lib/dhcpsrv/alloc_engine.h
      src/lib/dhcpsrv/d2_client_cfg.h
      src/lib/dhcpsrv/parsers/base_network_parser.cc
      src/lib/dhcpsrv/srv_config.h
      7cfc5d3f
    • Thomas Markwalder's avatar
      [#35,!517] Removed ddns params from INHERIT_TO_SUBNETX lists · 1f60cb9d
      Thomas Markwalder authored
      src/bin/dhcp4/tests/get_config_unittest.cc
      src/bin/dhcp6/tests/get_config_unittest.cc
          regenerated tests
      
      src/lib/dhcpsrv/parsers/simple_parser4.cc
          Removed DDNS params from INHERIT_TO_SUBNET4 list
      
      src/lib/dhcpsrv/parsers/simple_parser6.cc
          Removed DDNS params from INHERIT_TO_SUBNET6 list
      1f60cb9d
    • Thomas Markwalder's avatar
      [#35,!517] Rework kea-dhcp6 parsing and server · ce14110b
      Thomas Markwalder authored
      src/bin/dhcp6/ctrl_dhcp6_srv.cc
          Removed setting D2ClientCfg fetch function
      
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
          ddns-send-updates
          ddns-override-no-update
          ddns-override-client-update
          ddns-replace-client-name
          ddns-generated-prefix
          ddns-qualifying-suffix
          - added to DHCP4,SHARED_NETWORK,SUBNET4
      
          hostname-char-set
          hostname-char-replacement
          - added to SHARED_NETWORK,SUBNET4
      
      src/bin/dhcp6/dhcp6_srv.cc
          Dhcpv6Srv::processClientFqdn()
          Dhcpv6Srv::createNameChangeRequests()
          Dhcpv6Srv::updateReservedFqdn()
          - use cxt.getDdnsParams()
      
      src/bin/dhcp6/json_config_parser.cc
          configureDhcp6Server()
          - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters
          - handle new "ddns-" globals
      
      src/bin/dhcp6/tests/config_parser_unittest.cc
      src/bin/dhcp6/tests/fqdn_unittest.cc
      src/bin/dhcp6/tests/get_config_unittest.cc
          Updated tests
      ce14110b
    • Thomas Markwalder's avatar
      [#35,!517] Rework kea-dhcp4 parsing and server · 256feda6
      Thomas Markwalder authored
      src/bin/dhcp4/ctrl_dhcp4_srv.cc
          Removed setting D2ClientCfg fetch function
      
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          ddns-send-updates
          ddns-override-no-update
          ddns-override-client-update
          ddns-replace-client-name
          ddns-generated-prefix
          ddns-qualifying-suffix
              - added to DHCP4,SHARED_NETWORK,SUBNET4
      
          hostname-char-set
          hostname-char-replacement
              - added to SHARED_NETWORK,SUBNET4
      
      src/bin/dhcp4/dhcp4_srv.cc
      
          Dhcpv4Srv::processClientFqdnOption()
          Dhcpv4Srv::processHostnameOption()
          Dhcpv4Srv::assignLease()
              Use scoped DdnsParams from context to make decisions, pass
              into D2ClientMgr functions, and supply hostname sanitizer
      
      src/bin/dhcp4/json_config_parser.cc
          configureDhcp4Server()
          - use SrvConfig::moveDdnsParams() to move dhcp-ddns parameters
          - handle new "ddns-" globals
      
      src/bin/dhcp4/tests/config_parser_unittest.cc
      src/bin/dhcp4/tests/d2_unittest.cc
      src/bin/dhcp4/tests/dhcp4_test_utils.cc
      src/bin/dhcp4/tests/fqdn_unittest.cc
      src/bin/dhcp4/tests/get_config_unittest.cc
          Updated and new tests
      256feda6
  4. 20 Sep, 2019 2 commits
  5. 06 Sep, 2019 11 commits
  6. 31 Aug, 2019 1 commit
  7. 26 Aug, 2019 1 commit
  8. 19 Aug, 2019 1 commit
  9. 16 Aug, 2019 10 commits
    • Thomas Markwalder's avatar
      c4a888a5
    • Thomas Markwalder's avatar
      [#805,!5-p] Updated example confs · 13e1bb43
      Thomas Markwalder authored
      13e1bb43
    • Thomas Markwalder's avatar
      [#805,!5-p] Memfile and kea-dhcp4 now suppor max-row-errors parameter · 877ca524
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Added max-row-errors
      
      src/lib/database/database_connection.*
      src/lib/database/dbaccess_parser.*
          Added max-row-errors
      
      src/lib/database/tests/dbaccess_parser_unittest.cc
          New tests for max-row-errors
      
      src/lib/dhcpsrv/lease_file_loader.h
          Changed logic value of 0 means unlimited
      
      src/lib/dhcpsrv/memfile_lease_mgr.cc
          Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
          connection parmater value for max-row-errors or 0
          if not specified
      
      src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
          TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
          to verify max-row-errors operation
      
      src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
         TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
         max-row-errors
      877ca524
    • Thomas Markwalder's avatar
      [#805,!5-p] Updated example confs · e961af14
      Thomas Markwalder authored
      e961af14
    • Thomas Markwalder's avatar
      [#805,!5-p] kea-dhcp6 now supports max-row-errors parameter · 5caea854
      Thomas Markwalder authored
      src/bin/dhcp6/dhcp6_lexer.ll
      src/bin/dhcp6/dhcp6_parser.yy
          Added max-row-errors
      
      src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
          TEST_F(LeaseFileLoaderTest, maxRowErrors6) - new unit test
          to verify max-row-errors operation
      5caea854
    • Thomas Markwalder's avatar
      [#805,!5-p] Memfile and kea-dhcp4 now suppor max-row-errors parameter · 331888d2
      Thomas Markwalder authored
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Added max-row-errors
      
      src/lib/database/database_connection.*
      src/lib/database/dbaccess_parser.*
          Added max-row-errors
      
      src/lib/database/tests/dbaccess_parser_unittest.cc
          New tests for max-row-errors
      
      src/lib/dhcpsrv/lease_file_loader.h
          Changed logic value of 0 means unlimited
      
      src/lib/dhcpsrv/memfile_lease_mgr.cc
          Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
          connection parmater value for max-row-errors or 0
          if not specified
      
      src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
          TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
          to verify max-row-errors operation
      
      src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
         TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
         max-row-errors
      331888d2
    • Thomas Markwalder's avatar
      [#730,!2-p] Addressed review comments · 1878553a
      Thomas Markwalder authored
          Minor cleanup
      
      ChangeLog
      src/bin/dhcp4/dhcp4_messages.mes
      src/bin/dhcp4/dhcp4_srv.cc
      src/lib/dns/tests/name_unittest.cc
      1878553a
    • Thomas Markwalder's avatar
      [#730,!2] Addressed review comments · 27fbe6f4
      Thomas Markwalder authored
      ChangeLog - added an entry
      
      src/bin/dhcp4/tests/fqdn_unittest.cc
          TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) - added
          commentary
      
      src/lib/exceptions/isc_assert.h
          commentary changes
      
      src/lib/exceptions/tests/exceptions_unittest.cc
          TEST(IscThrowAssert, checkMessage) - replace use of explicit line number
      27fbe6f4
    • Thomas Markwalder's avatar
      [#730,!2] Corrected assertion failure on malformed hostname from kea-dhcp4 · 9260b6d9
      Thomas Markwalder authored
      src/lib/exceptions/isc_assert.h
          New file that defines isc_assert_throw()
      
      src/lib/exceptions/Makefile.am
          added isc_asssert.h
      
      src/lib/exceptions/tests/exceptions_unittest.cc
          TEST(IscThrowAssert, checkMessage) - new test
      
      src/lib/dns/labelsequence.cc
      src/lib/dns/name.cc
          Replaced assert() calls with isc_throw_assert() calls
      
      src/lib/dns/tests/name_unittest.cc
          TEST_F(NameTest, unexpectedParseError) - new unit test
          for hostname option content based on fuzz test failure
      
      src/lib/dhcp_ddns/ncr_msg.cc
          Removed unnecessary include of dns/name.h
      
      src/bin/dhcp4/dhcp4_srv.cc
          Dhcpv4Srv::processHostnameOption() - added try catch
          around OptionDataTypeUtil::getLabelCount() call
      
      src/bin/dhcp4/dhcp4_messages.*
          added new log message DHCP4_CLIENT_HOSTNAME_MALFORMED
      
      src/bin/dhcp4/tests/fqdn_unittest.cc
          TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) -
          renamed test and augmented it to include the packet of death
          produced by fuzz testing.
      9260b6d9
    • Tomek Mrugalski's avatar
      cf2967fb
  10. 14 Aug, 2019 2 commits
    • Tomek Mrugalski's avatar
      2add51ec
    • Thomas Markwalder's avatar
      [#665,!460] Initial implementation, kea-dhcp4 only · 784d5599
      Thomas Markwalder authored
      Added an optional "pattern" parameter to logger output options. It supports
      any combination of content described here:
      
      https://log4cplus.sourceforge.io/docs/html/classlog4cplus_1_1PatternLayout.html
      
      src/lib/log/output_option.*
          Added constants to define default patterns:
              OutputOption::DEFAULT_CONSOLE_PATTERN = "%D{%Y-%m-%d %H:%M:%S.%q} %-5p [%c/%i] %m\n";
              OutputOption::DEFAULT_FILE_PATTERN = "%D{%Y-%m-%d %H:%M:%S.%q} %-5p [%c/%i] %m\n";
              OutputOption::DEFAULT_SYSLOG_PATTERN = "%-5p [%c] %m\n";
      
          OutputOption::pattern_ - new member for conveying pattern string
      
      src/lib/log/logger_manager_impl.*
          LoggerManagerImpl::createConsoleAppender()
          LoggerManagerImpl::createFileAppender()
          LoggerManagerImpl::createSyslogAppender() uses either
          paramater, option.pattern, or the appropriate default pattern
      
          LoggerManagerImpl::setAppenderLayout() - new, common method to
          set the layout, accepts a pattern string parameter
      
          LoggerManagerImpl::setConsoleAppenderLayout()
          LoggerManagerImpl::setSyslogAppenderLayout() - deleted
      
      src/lib/process/log_parser.cc
          LogConfigParser::parseOutputOptions() - now supports pattern
      
      src/lib/process/logging_info.*
          LoggingDestination::pattern_  - new member for conveying pattern string
      
      src/bin/dhcp4/dhcp4_lexer.ll
      src/bin/dhcp4/dhcp4_parser.yy
          Added "pattern" to the parser grammar
      784d5599
  11. 05 Aug, 2019 3 commits
  12. 30 Jul, 2019 1 commit