1. 02 Jul, 2015 3 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] DHPCv4 now uses PID file, made pid test common · 24267d20
      Thomas Markwalder authored
      src/lib/testutils/dhcp_test_lib.sh.in
          - server_pid_file_test() - common test for any server
          to verify PID file management
      
      src/bin/d2/tests/d2_process_tests.sh.in
          remmoved duplicate_server_start_test
          now calls server_pid_file_test
      
      Added PID file creation to DHCP4
          src/bin/dhcp4/dhcp4_messages.mes
          -  added log DHCP4_ALREADY_RUNNING
      
          src/bin/dhcp4/main.cc
          - added logic to create the PID and catch
          exception specific to PID conflict
      
          src/bin/dhcp4/tests/Makefile.am
          - exports KEA_PIDFILE_DIR
      
          src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
          - added call to server_pid_file_test
      
          src/bin/dhcp4/tests/dhcp4_unittests.cc
          - main(int argc, char* argv[])
          sets env var KEA_PIDFILE_DIR
      24267d20
    • 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
  2. 30 Jun, 2015 2 commits
  3. 29 Jun, 2015 1 commit
  4. 24 Jun, 2015 9 commits
  5. 23 Jun, 2015 4 commits
  6. 22 Jun, 2015 1 commit
  7. 20 Jun, 2015 1 commit
  8. 19 Jun, 2015 12 commits
  9. 18 Jun, 2015 3 commits
    • Thomas Markwalder's avatar
      [3797] Added support for Control Channel to DHCPv6 · e103da11
      Thomas Markwalder authored
      src/bin/dhcp6/ctrl_dhcp6_srv.cc
          ControlledDhcpv6Srv::ControlledDhcpv6Srv()
              added CommandMgr init and handler registration
      
          ControlledDhcpv6Srv::~ControlledDhcpv6Srv() {
              added CommandMgr shutdown and handler deregistration
      
      src/bin/dhcp6/json_config_parser.cc
          - createGlobal6DhcpConfigParser()
              added support for "control-socket" element
      
          - configureDhcp6Server()
              added logic to configure CommandMgr based on
              control-socket configuration element
      
      src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
          - UnixControlClient  - new class that acts as UnixCommandSocket client    - CtrlChannelDhcpv6SrvTest - new test fixture for testing a DHCPv6 server
          with a Control Channel
      
          - Added the following tests:
          TEST_F(CtrlDhcpv6SrvTest, commandsRegistration)
          TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelNegative)
          TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelShutdown)
          TEST_F(CtrlChannelDhcpv6SrvTest, controlChannelStats)
      e103da11
    • Shawn Routhier's avatar
      [3795] Fix some typos · 381ae719
      Shawn Routhier authored
      381ae719
    • Shawn Routhier's avatar
      [3799] Add more tests · f4963266
      Shawn Routhier authored
      Update the documents a bit
      
      Fix up handling reservations from outside the subnet
      
      Add more tests
      f4963266
  10. 17 Jun, 2015 1 commit
    • Shawn Routhier's avatar
      [3799] Add v6 subnet statistics · 5f8a84bd
      Shawn Routhier authored
      Using the v4 changes as a guide (3798) add statistics
      for subnets for v6.  The four stats are total addresses
      and addresses used for both NA and PD.
      5f8a84bd
  11. 16 Jun, 2015 3 commits