1. 11 Jan, 2017 1 commit
    • Thomas Markwalder's avatar
      [5033] - migrated D2ClientConfigParser to SimpleParser, kea-dhcp4 uses it · 85640c19
      Thomas Markwalder authored
      src/bin/dhcp4/json_config_parser.cc
          createGlobalDhcp4ConfigParser()
          - added clause to invoke new D2ClientConfigParser to
          set staging config
          - added clause to apply staged D2ClientConfig (formerly done
          by parser commit
      
      src/bin/dhcp4/parser_context.h
      src/bin/dhcp4/parser_context.cc
          aded PARSER_DHCP_DDNS context
      
      src/bin/dhcp4/simple_parser4.h
      src/bin/dhcp4/simple_parser4.cc
          defined SimpleParser4::D2_CLIENT_CONFIG_DEFAULTS
          SimpleParser4::setAllDefaults() - now sets defaults
          for D2ClientConfig
      
      src/bin/dhcp4/tests/d2_unittest.cc
      src/bin/dhcp4/tests/fqdn_unittest.cc
          Updated replace-name-mode values (true/false no longer supported)
      
      src/lib/dhcpsrv/parsers/dhcp_parsers.h
      src/lib/dhcpsrv/parsers/dhcp_parsers.cc
          D2ClientConfig now derives from SimpleParser
      
      src/lib/dhcpsrv/srv_config.h
      src/lib/dhcpsrv/srv_config.cc
          Added a D2ClientConfigPtr member to SrvConfig.
      
      src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
          Updated tests to set D2 client config defaults
      
      doc/guide/dhcp4-srv.xml
          Updated, replace-client-name no longer accepts booleans
      85640c19
  2. 12 Sep, 2016 1 commit
  3. 07 Apr, 2016 1 commit
  4. 06 Apr, 2016 1 commit
    • Thomas Markwalder's avatar
      [4259] Addressed review comments · 773659ff
      Thomas Markwalder authored
          Moved string/enum conversion functions inside D2ClientConfig
      
          Changed underscores to hypens in replace-client-name values and changed
          all literal values to lower case.
      
          Fixed minor wording issues in admin guide and new log messages.
      
          Added commentary and extra error logging to unit tests
      
          Added test case for invalid value of replace-client-name
      773659ff
  5. 04 Apr, 2016 2 commits
    • Thomas Markwalder's avatar
      [4259] kea-dhcp4 now supports replace-client-name modes · bc8768e9
      Thomas Markwalder authored
          src/bin/dhcp4/dhcp4_messages.mes
              - Added new log message DHCP4_SUPPLY_HOSTNAME
      
          src/bin/dhcp4/dhcp4_srv.cc
              - Dhcpv4Srv::processClientName() - pushed lack of host option in the
              client request down into processHostoption()
      
              - Dhcpv4Srv::processHostnameOption() - modified to support the new name
              replacement modes
      
          src/bin/dhcp4/tests/fqdn_unittest.cc
              - NameDhcpv4SrvTest:: testReplaceClientNameMode() - new method which
              tests a server's handling of a single client packet for a given
              replace-client-name mode.
      
              - TEST_F(NameDhcpv4SrvTest, replaceClientNameModeTest) - new test which
              exercises the permutations of client packets and replace-client-name
              modes.
      bc8768e9
    • Thomas Markwalder's avatar
      [4259] Converted replace-client-name from boolean to enumeration · d80e28d3
      Thomas Markwalder authored
          The D2 client configuration parameter, replace-client-name, was
          changed from a boolean, to an enumerated list of modes:
      
              "NEVER" - do not alter or supply the client name
              "ALWAYS" - always replace the client name, or supply it if
               not sent by the client
              "WHEN_PRESENT" - replace the client name sent by the client,
               do not supply one otherwise
              "WHEN_NOT_PRESENT" - supply the client name only if one was
              not sent by the client
      
          src/lib/dhcpsrv/d2_client_cfg.cc
          src/lib/dhcpsrv/d2_client_cfg.h
              Added the D2ClientConfig::ReplaceClientNameMode enumeration.
      
          src/lib/dhcpsrv/parsers/dhcp_parsers.cc
              - Alter replace-client-name parsing to parse the mode labels.
              - Maps boolean literals true and false to RCM_WHEN_PRESENT and
              RCM_NEVER respectively
      
          src/bin/dhcp4/dhcp6_srv.cc
          src/bin/dhcp4/dhcp4_srv.cc
          src/lib/dhcpsrv/d2_client_mgr.h
              - Adapted to use the enumeration
      
          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/fqdn_unittest.cc
          src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
          src/lib/dhcpsrv/tests/d2_client_unittest.cc
          src/lib/dhcpsrv/tests/d2_udp_unittest.cc
          src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
              - Alter existing tests to use the enumeration. Note false was replaced
              with RCM_NEVER and true with RCM_WHEN_PRESENT
      d80e28d3
  6. 16 Dec, 2015 1 commit
  7. 26 Oct, 2015 1 commit
  8. 20 Oct, 2015 1 commit
    • Marcin Siodelski's avatar
      [3977] Name change requests are now generated when lease is reused. · 5de74693
      Marcin Siodelski authored
      This change triggered a lot of code refactoring for generating the
      NameChangeRequests. Long story short is that the functions responsible
      for generating NCRs from the lease information have been moved to
      the libdhcpsrv where they better fit and where they may be used
      by both allocation engine and the servers.
      5de74693
  9. 18 Oct, 2015 1 commit
  10. 11 May, 2015 1 commit
    • Marcin Siodelski's avatar
      [3747] Removed spurious check when generating NCRs. · a829b4c3
      Marcin Siodelski authored
      Before creating NCRs the code used to check if there is a match
      between a new and old lease and refused to send NCRs if there was
      no match. This was wrong behavior because the allocation engine
      could be reusing other client's lease in which case there could
      be no match whatsoever and the NCRs should still be generated.
      a829b4c3
  11. 08 May, 2015 2 commits
  12. 05 May, 2015 1 commit
  13. 12 Mar, 2015 2 commits
  14. 11 Mar, 2015 2 commits
  15. 10 Mar, 2015 2 commits
  16. 22 Jan, 2015 1 commit
  17. 16 Jan, 2015 2 commits
  18. 17 Oct, 2014 1 commit
  19. 17 Apr, 2014 1 commit
  20. 13 Mar, 2014 1 commit
  21. 01 Mar, 2014 1 commit
  22. 19 Feb, 2014 1 commit
  23. 14 Feb, 2014 1 commit
  24. 03 Feb, 2014 1 commit
  25. 29 Jan, 2014 1 commit
  26. 20 Jan, 2014 1 commit
  27. 02 Jan, 2014 1 commit
  28. 20 Nov, 2013 2 commits
  29. 19 Nov, 2013 1 commit
  30. 11 Sep, 2013 1 commit
    • Marcin Siodelski's avatar
      [3035] Removed const for enums in DHCPv4 FQDN unit tests. · 90b595cc
      Marcin Siodelski authored
      The cppcheck expects that the const enum value is passed by reference and
      outputs errors. In the same time it doesn't expect that non-const enum
      is passed by reference. Since there is no need to pass an enum by reference
      the const was removed for enum values as a workaround. It doesn't have
      an impact on the test.
      90b595cc
  31. 09 Sep, 2013 3 commits