1. 14 Apr, 2016 2 commits
  2. 13 Apr, 2016 2 commits
  3. 06 Apr, 2016 2 commits
    • Marcin Siodelski's avatar
      [4301] Addressed review comments. · 253b032f
      Marcin Siodelski authored
      253b032f
    • 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
  4. 05 Apr, 2016 4 commits
  5. 04 Apr, 2016 5 commits
    • Thomas Markwalder's avatar
      [4259] kea-dhcp6 now supports replace-client-name modes · b3f483e5
      Thomas Markwalder authored
          src/bin/dhcp6/dhcp6_messages.mes
              - Added new log message, DHCP6_DDNS_SUPPLY_FQDN
      
          src/bin/dhcp6/dhcp6_srv.cc
              - Dhcpv6Srv::processClientFqdn() - modified to support the name
              replacement modes
      
          src/bin/dhcp6/tests/fqdn_unittest.cc
              - FqdnDhcpv6SrvTest::testReplaceClientNameMode() new method which tests
              a server's handling of a single client packet for a given
              replace-client-name mode.
      
              - TEST_F(FqdnDhcpv6SrvTest, replaceClientNameModeTest) - new test which
              exercises the permutations of client packets and replace-client-name
              modes.
      b3f483e5
    • 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
    • Thomas Markwalder's avatar
      [4259] Add unit tests to ensure StringParser can parse booleans · 849439da
      Thomas Markwalder authored
          Added checks to ensure that StringParser can handle being given
          a boolean literal (i.e. unquoted true or false)
      849439da
    • Marcin Siodelski's avatar
    • Marcin Siodelski's avatar
  6. 01 Apr, 2016 2 commits
  7. 31 Mar, 2016 3 commits
  8. 29 Mar, 2016 1 commit
  9. 24 Mar, 2016 2 commits
  10. 23 Mar, 2016 1 commit
  11. 22 Mar, 2016 1 commit
  12. 21 Mar, 2016 5 commits
  13. 18 Mar, 2016 2 commits
  14. 17 Mar, 2016 3 commits
    • Marcin Siodelski's avatar
      [4319] Addressed some review comments. · 8576546a
      Marcin Siodelski authored
      - use unsigned int in for loops
      - NULL pointer rather than NULL in function descriptions
      8576546a
    • Shawn Routhier's avatar
      [trac4309] Fix some typos · 6f0b3a5c
      Shawn Routhier authored
      6f0b3a5c
    • Thomas Markwalder's avatar
      [4243] Disable optimization of boost:asio for gcc 5.2.0 through 5.3.0 · ac5d93b8
      Thomas Markwalder authored
      Optimization of boost:asio code is now disabled when building with
      BOOST_ERROR_CODE_HEADER_ONLY under GCC versions 5.2.0 through 5.3.0.
      
      src/lib/asiolink/asio_wrapper.h
          New file which wraps boost/asio/asio.hpp around compilation
          logic to suppress optimization under GNU 5.2.0 thru 5.3.0.
      
      The remaining changes either removed the inclusion of <asio/asio.hpp> or
      replaced it with the inclusion of <<asiolink/asio_wrapper.h>.  Inclusion
      file order was also altered to better comply with our coding guidelines.
      ac5d93b8
  15. 15 Mar, 2016 1 commit
  16. 14 Mar, 2016 2 commits
    • Thomas Markwalder's avatar
      [4309] Fixed Coverity issue 1341466e in alloc_engine.cc · d981c5ce
      Thomas Markwalder authored
      src/lib/dhcpsrv/alloc_engine.cc
       - AllocEngine::reclaimExpiredLease(const Lease6Ptr& lease,
                                       const DbReclaimMode& reclaim_mode,
                                       const CalloutHandlePtr& callout_handle)
      
         Simplified logic for flagging a lease for removal.  Renamed "remove_tmp"
         to "remove_lease" for clarity.
      
       - AllocEngine::reclaimExpiredLease(const Lease4Ptr& lease,
                                       const DbReclaimMode& reclaim_mode,
                                       const CalloutHandlePtr& callout_handle)
      
         Simplified logic for flagging a lease for removal.  Renamed "remove_tmp"
         to "remove_lease" for clarity.
      d981c5ce
    • Francis Dupont's avatar
      299e3835
  17. 11 Mar, 2016 1 commit
  18. 09 Mar, 2016 1 commit