]> git.ipfire.org Git - thirdparty/kea.git/commit
[3797] Added support for Control Channel to DHCPv6
authorThomas Markwalder <tmark@isc.org>
Thu, 18 Jun 2015 19:11:22 +0000 (15:11 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 18 Jun 2015 19:11:22 +0000 (15:11 -0400)
commite103da116202f52aa5e24415e494ed25cb97441c
tree51dd62b49cc073a0958c429e6c30660caacb8fb0
parentc3346812b6968a1253ae1e346285a188e06e3f2e
[3797] Added support for Control Channel to DHCPv6

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)
src/bin/dhcp6/ctrl_dhcp6_srv.cc
src/bin/dhcp6/json_config_parser.cc
src/bin/dhcp6/tests/Makefile.am
src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc