1. 17 Jun, 2014 1 commit
    • Thomas Markwalder's avatar
      [3407] Integrated IOSignaling into CPL · 73f57b83
      Thomas Markwalder authored
      DController was extended to instantiate an IOSignalQueue and register for
      signals with a SignalSet.  The default implementation for signal processing
      supports SIGHUP as config file reload, and SIGINT/SIGTERM for graceful
      shutdown.  D2Controller inherits this support without change.
      
      A good deal of work went into the unit test classes as well, particularly
      DControllerTest.
      73f57b83
  2. 16 Jun, 2014 1 commit
    • Thomas Markwalder's avatar
      [3407] Added IOSignal class to send signals to IOService · 231f440a
      Thomas Markwalder authored
      Created d2::IOSignal and d2::IOSignalQueue for propagating
      caught OS signals to IOService instances.
      Added TimedSignal test class.
      
      New files:
          src/bin/d2/io_service_signal.cc
          src/bin/d2/io_service_signal.h
          src/bin/d2/tests/io_service_signal_unittests.cc
      231f440a
  3. 10 Jun, 2014 3 commits
  4. 09 Jun, 2014 1 commit
    • Thomas Markwalder's avatar
      [3401] Addressed reveiw comments · 2c0ab179
      Thomas Markwalder authored
      Static handlers were removed from DControllerBase.
      Developer's guide has been updated to with --with-kea-config
      discussion and updated diagrams.
      Other minor corrections.
      
      (Note ingore diffs in the diagram .svg files, they aren't particularly
      meaningful to the human eye).
      2c0ab179
  5. 05 Jun, 2014 2 commits
    • Thomas Markwalder's avatar
      [3401] Fixed Daemon::loggerInit implementation · 8daa5237
      Thomas Markwalder authored
      Replaced Daemon::loggerInit with implemetation used by Dhcp6 so logging
      output now goes to stdout.
      8daa5237
    • Thomas Markwalder's avatar
      3401 - D2 now supports with-kea-config switch · 1c4d345d
      Thomas Markwalder authored
      The configuration switch --with-kea-config, now selects between
      two versions of D2Controller:
      
      1. One which must run as a BUNDY module and is implemented in
      bundy_d2_controller.(h/cc)
      
      All of the BIND10 support was extracted from DControllerBase and moved
      into this version of D2Controller.
      
      This controller is tested in tests/bundy_d2_controller_unittests.cc
      
      2. One that runs as a stand alone executable which must be supplied
      with a configuration file via the command line and is implemented in
      d2_controller.(h/cc).
      
      This version of D2Controller is nearly identical the the original.
      DControllerBase supports configuration from file.
      
      This controller is tested in tests/d2_controller_unittests.cc
      
      DControllerBase now inherits from Daemon which keeps it in step with
      K4 and K6.
      
      The stand-alone mode flag has been removed from all controllers.
      1c4d345d
  6. 28 May, 2014 2 commits
  7. 27 May, 2014 1 commit
    • Thomas Markwalder's avatar
      [3432] Addressed review comments · 137c12ee
      Thomas Markwalder authored
      Consolidated DNSClient::doUpdate variants into a single method which
      accepts a smart pointer to a TSIGKey instead of TSIGKey reference.
      Simplified some unit tests.
      Added missing commentary.
      Corrected typos and copyright dates.
      137c12ee
  8. 23 May, 2014 1 commit
    • Marcin Siodelski's avatar
      [master] Bumped up timeout values in D2 controller tests. · a6c7bda2
      Marcin Siodelski authored
      On the FreeBSD10 system installed on the physical machine with the CPU:
      (Intel(R) Core(TM) i7-2700K CPU @ 3.50GHz), Kea compiled with clang 3.3,
      it takes slightly more than 2100ms (the previous timeout value) for the
      callback to occur. This seems to be specific to this system but on the
      other hand we don't test on FreeBSDs a lot, so the problem may be more
      common than we think. This was okayed on Jabber.
      a6c7bda2
  9. 20 May, 2014 2 commits
  10. 19 May, 2014 2 commits
  11. 16 May, 2014 2 commits
  12. 15 May, 2014 2 commits
  13. 14 May, 2014 2 commits
    • Thomas Markwalder's avatar
      [3432] TSIGKeyInfo now creates and owns a dns::TSIGKey · 3784b469
      Thomas Markwalder authored
      d2::TSIGKeyInfo now has an instance member for a dns::TSIGKey
      instance, which is created during the TSIGKeyInfo's construction.
      3784b469
    • Thomas Markwalder's avatar
      [3432] Added basic TSIG support to NameChangeTransaction · a00bfe54
      Thomas Markwalder authored
      Added TSIGKeyPtr instance member to NameChangeTransaction.
      Modified NameChangeTransaction::sendUpdate() to do a TSIG updates if its
      TSIGKeyPtr is not null.
      
      Extended FauxServer test class to support TSIG if given a key.
      Added round trip TSIG tests to NameChangeTransaction base class tests.
      
      This does not address how the transaction's key is determined. That
      requires changes to configuration classes in D2Config.
      a00bfe54
  14. 13 May, 2014 1 commit
  15. 12 May, 2014 1 commit
    • Thomas Markwalder's avatar
      [3432] Added support for TSIG to D2UpdateMessage and DNSClient · dd0024cf
      Thomas Markwalder authored
      Change D2UpdateMessage to support TSIG signing and verification via its
      toWire and fromWire methods.  Both now accept a pointer to a TSIGContext,
      which they should use, if its not NULL.
      
      Implemented DNSCLient::doUpdate variant that accepts a TSIGKey. It will
      use the key to create a TSIGContext that will then be used to sign the
      outbound request and to verify the response in the operator() method.
      
      Added appropriate unit tests.
      dd0024cf
  16. 10 May, 2014 1 commit
  17. 08 May, 2014 2 commits
  18. 07 May, 2014 3 commits
    • Thomas Markwalder's avatar
      [3268] Modified D2CfgMgr and spec file · 67f5da73
      Thomas Markwalder authored
      Added D2CfgMgr::buildParams() method to support the new parameters first
      processing.
      
      Removed support D2's global "interface" parameter, and added three more:
       - dns_server_timeout
       - ncr_protocol
       - ncr_format
      67f5da73
    • Thomas Markwalder's avatar
      [3268] Added container class for D2 global parameters · 0f2ef12b
      Thomas Markwalder authored
      Added d2::D2Params to act as container class for D2 global parameters.
      This permits them to be converted from their context parameter form during
      configuration parsing.
      0f2ef12b
    • Thomas Markwalder's avatar
      [3268] Treat top-level scalars as a group of globals parameters · baa06740
      Thomas Markwalder authored
      Restructured DCfgMgrBase to group the top level elements in a configuration
      into scalars (strings, bools, ints, etc...) and objects (maps, lists, etc),
      and parse the scalars first, then objects.  This permits the top level
      scalars to be treated as a group of global parameters that are parsed first.
      
      Ordered parsing is now relegated to only object elements. Scalars are parsed
      first before any objects.
      
      Also added the ability to reset config manager's context and rather than
      than starting configuration parsing with a copy of the current context, it
      starts with an empty context.
      
      Modified unit tests accordingly.
      baa06740
  19. 24 Apr, 2014 1 commit
  20. 18 Apr, 2014 1 commit
  21. 17 Apr, 2014 2 commits
  22. 16 Apr, 2014 3 commits
  23. 15 Apr, 2014 1 commit
  24. 14 Apr, 2014 1 commit
  25. 02 Apr, 2014 1 commit