1. 22 Feb, 2017 1 commit
  2. 15 Feb, 2017 1 commit
    • Thomas Markwalder's avatar
      [5110] Addressed review comments part 1 · 0fe888f4
      Thomas Markwalder authored
          Fixed unused parameter errors
          Fixed doxygen errors
          Commentary changes
          Removed reference to .spec file from commentary
          TSIGKeyListParser now uses only one instance of TSIGKeyInfoParser
          src/bin/d2/d2_parser.yy -  added upper limit to port tests
          Updated unit tests to use "example.com"
      0fe888f4
  3. 26 Jan, 2017 1 commit
    • Thomas Markwalder's avatar
      [5110] Added alternate parsing hooks into DController and DCfgMgrBase · 4a5e73f7
      Thomas Markwalder authored
      In order to accomodate bison parsing for JSON text and SimpleParser
      based element parsing, virtual methods were added to allow derivations
      to migrate.
      
      src/lib/process/d_cfg_mgr.h
      src/lib/process/d_cfg_mgr.cc
          DCfgMgrBase::parseElement() - new method to allow derivaitons
          to support alternate Element parsers on a element by element basis
      
          DCfgMgrBase::buildParams()
          DCfgMgrBase::buildAndCommit() - added call to parseElement()
      
      src/lib/process/d_controller.h
      src/lib/process/d_controller.cc
          DControllerBase::parseFile() - new method to allow derivations
          to use alternate JSON parsers
          DControllerBase::configFromFile() - added call to parseFile()
      4a5e73f7
  4. 01 Dec, 2016 3 commits
  5. 08 Nov, 2016 1 commit
  6. 28 Aug, 2016 1 commit
  7. 23 Jun, 2016 2 commits
  8. 16 Dec, 2015 1 commit
  9. 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
          src/bin/dhcp6/dhcp6_messages.mes
          -  added log DHCP6_ALREADY_RUNNING
      
          src/bin/dhcp6/main.cc
          - added logic to create the PID and catch
          exception specific to PID conflict
      
          src/bin/dhcp6/tests/Makefile.am
          - exports KEA_PIDFILE_DIR
      
          src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
          - added call to server_pid_file_test
      
          src/bin/dhcp6/tests/dhcp6_unittests.cc
          - main(int argc, char* argv[])
          sets env var KEA_PIDFILE_DIR
      5776ee0c
    • Thomas Markwalder's avatar
      [3769] Added env var,KEA_PIDFILE_DIR; D2 now uses a PIDFile · d743c5f2
      Thomas Markwalder authored
      src/lib/dhcpsrv/daemon.c/h
          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.
      
      src/lib/testutils/dhcp_test_lib.sh.in
          - 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.
      
      src/bin/keactrl/tests/Makefile.am
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      
      Added PID file creation to D2
          src/bin/d2/d_controller.cc
          - DControllerBase::launch() - Added block to createPIDFile()
      
          -DControllerBase::parseArgs() Replaced call to Daemon::init()
          with call to Daemon::setConfigFile()
      
          src/bin/d2/tests/Makefile.am
          - added export of KEA_PIDFILE_DIR to override default PID directory during tests
      
          src/bin/d2/tests/d2_process_tests.sh.in
          - dupcliate_server_start_test() - new test which verifies that D2 cannot be
          started twice (with the same configuration file)
      
          src/bin/d2/tests/d2_unittests.cc
          - main(int argc, char* argv[]) sets environment variable KEA_PIDFILE_DIR
           to override default PID diretory during tests
      
      src/lib/util/pid_file.cc/h
      src/lib/util/tests/pid_file_unittest.cc
          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.
      d743c5f2
  10. 24 Jun, 2015 1 commit
  11. 19 Jun, 2015 2 commits
  12. 13 Jun, 2015 1 commit
  13. 10 Jun, 2015 2 commits
  14. 09 Jun, 2015 1 commit
  15. 22 May, 2015 1 commit
  16. 20 May, 2015 1 commit
  17. 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
      2becffcd
  18. 17 May, 2015 2 commits
  19. 21 Jan, 2015 1 commit
  20. 16 Jan, 2015 1 commit
  21. 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.
      79014890
  22. 15 Sep, 2014 1 commit
  23. 09 Sep, 2014 1 commit
  24. 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.
      24154b6c
  25. 11 Aug, 2014 3 commits
  26. 06 Aug, 2014 1 commit
  27. 29 Jul, 2014 1 commit
  28. 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
      d26a4945
  29. 15 Jul, 2014 1 commit
  30. 18 Jun, 2014 1 commit
  31. 17 Jun, 2014 1 commit
    • 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.
      d66abdf4