1. 01 Dec, 2016 1 commit
  2. 08 Nov, 2016 1 commit
  3. 28 Aug, 2016 1 commit
  4. 23 Jun, 2016 2 commits
  5. 16 Dec, 2015 1 commit
  6. 02 Jul, 2015 2 commits
    • Thomas Markwalder's avatar
      [3769] DHCPv6 now uses PID file · 5776ee0c
      Thomas Markwalder authored
      Added PID file creation to DHCP6
          -  added log DHCP6_ALREADY_RUNNING
          - added logic to create the PID and catch
          exception specific to PID conflict
          - exports KEA_PIDFILE_DIR
          - added call to server_pid_file_test
          - main(int argc, char* argv[])
          sets env var KEA_PIDFILE_DIR
    • Thomas Markwalder's avatar
      [3769] Added env var,KEA_PIDFILE_DIR; D2 now uses a PIDFile · d743c5f2
      Thomas Markwalder authored
          Daemon::Daemon() - Constructor will now override the default PID
          directory with the value of env variable KEA_PIDFILE_DIR.  This
          provides a simple means to alter the value for tests.
          Added am_file_author_ flag so Daemon instances will only delete
          a file they have written.
          - verify_server_pid() - new function which verifies that a server has a PID file
          and that it contains the server's PID, and that the process is alive.
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      Added PID file creation to D2
          - DControllerBase::launch() - Added block to createPIDFile()
          -DControllerBase::parseArgs() Replaced call to Daemon::init()
          with call to Daemon::setConfigFile()
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
          - dupcliate_server_start_test() - new test which verifies that D2 cannot be
          started twice (with the same configuration file)
          - main(int argc, char* argv[]) sets environment variable KEA_PIDFILE_DIR
           to override default PID diretory during tests
          Changed PIDFile::check() to return either the PID contained in the PID file
          if the process is alive, or 0, rather than bool.  This permits callers
          to see/log the PID.
  7. 24 Jun, 2015 1 commit
  8. 19 Jun, 2015 2 commits
  9. 13 Jun, 2015 1 commit
  10. 10 Jun, 2015 2 commits
  11. 09 Jun, 2015 1 commit
  12. 22 May, 2015 1 commit
  13. 20 May, 2015 1 commit
  14. 19 May, 2015 1 commit
    • Shawn Routhier's avatar
      [trac3808] Enhance logging for D2 · 2becffcd
      Shawn Routhier authored
      Split the logging into three loggers
       config & general
       dhcp to d2
       d2 to dns (and back)
      Print out a request ID for each NCR event.  Currently this is the
      DHCID but it could be changed in the future to allow for comparing
      log entries between DHCP servers and D2.
      Fix up some typos I ran across while reading the code
  15. 17 May, 2015 2 commits
  16. 21 Jan, 2015 1 commit
  17. 16 Jan, 2015 1 commit
  18. 20 Oct, 2014 1 commit
    • Thomas Markwalder's avatar
      [trac3470] Replace static containers with shared pointers in SignalSet · 79014890
      Thomas Markwalder authored
      Changed the functions, getRegisteredSignals() and getSignalStates()
      to instantiate static shared pointers and return these, rather than
      raw pointers to statically declared containers.
      Added private shared pointer members to SignalSet, registered_signals_
      and signal_states_.  These are initialized within SignalSet constructors
      by calling the functions getRegisteredSignals() and getSignalStates()
      respectively.  This ensures that both static lists remain inscope until
      all SignalSets have been destroyed.
      Replaced use of getRegisteredSignals() and getSignalStates() with
      new private members, registered_signals_ and signal_states_.
      Removed work-around code in src/bin/d2/d_controller.cc put in place
      until this ticket was resolved.
  19. 15 Sep, 2014 1 commit
  20. 09 Sep, 2014 1 commit
  21. 03 Sep, 2014 1 commit
    • Marcin Siodelski's avatar
      [3534] Logger configuration can be rolled back. · 24154b6c
      Marcin Siodelski authored
      Previously, the logger configuration was applied (to log4cplus) as soon as
      it was parsed. We decided in the jabber discussion that the logger
      configuration should only be applied if the whole configuration goes
      through. So, the logger configuration is now 2-stage: parsing and commit
      as for other configuration parameters.
  22. 11 Aug, 2014 3 commits
  23. 06 Aug, 2014 1 commit
  24. 29 Jul, 2014 1 commit
  25. 18 Jul, 2014 1 commit
    • Tomek Mrugalski's avatar
      [3427] Changes after review: · d26a4945
      Tomek Mrugalski authored
       - Kea ARM updated
       - shell tests for Kea4,Kea6 and D2 are now passing
       - kea.conf updated with logging info
       - Various improvements in Daemon and LogConfigParser
       - DEFAULT_SYSLOG_NAME removed
       - Copyright years fixed
       - Couple additional tests written
  26. 15 Jul, 2014 1 commit
  27. 18 Jun, 2014 1 commit
  28. 17 Jun, 2014 2 commits
    • Thomas Markwalder's avatar
      [3407] Added workaround for SignalSet bug, see Trac #3470 · d66abdf4
      Thomas Markwalder authored
      Added workaround to DControllerBase to explicitly clear
      its SignalSet before exiting launch().
      SignalSets can outlive their static lists which can cause
      destructing them as part of process exit segfault.
      Once this is fixed under #3470 the workaround can be removed.
    • 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
  29. 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).
  30. 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.
    • 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
      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
      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.
  31. 16 Aug, 2013 1 commit
    • Thomas Markwalder's avatar
      [3075] Implemented main event loop in b10-dhcp-ddns · c39eb9bb
      Thomas Markwalder authored
      Added main process event loop to D2Process which is the
      primary application "object" in b10-dchp-ddns.
      Along the way it was necessary to adjust D2QueueManager to treat
      stopping as an asyncrhonous event when IO is pending. This
      requied a change in lib-dchp-ddns to have awareness of when
      IO is pending.
      Fixed a bug in D2 configuration parsing in which parsing a
      a subsequent configuration caused duplicate TSIGKeyInfo