kea:992-include-the-client-supplied-ciaddr-when-acking-dhcpinform

Last commit made on 2019-11-19
Get this branch:
git clone -b 992-include-the-client-supplied-ciaddr-when-acking-dhcpinform https://git.launchpad.net/kea

Branch merges

Branch information

Name:
992-include-the-client-supplied-ciaddr-when-acking-dhcpinform
Repository:
lp:kea

Recent commits

069987f... by Francis Dupont <email address hidden>

[992-include-the-client-supplied-ciaddr-when-acking-dhcpinform] Copy ciaddr to inform responses

628d764... by Marcin Siodelski <email address hidden>

[#964,!577] Two trivial fixes as a result of second review.

- Addeed asterisk in the changelog to mark it incompatible change.
- Fixed comma character in the new line.

d88862e... by Thomas Markwalder

[#964,!577] Fixed segfaulting unit test

src/lib/http/client.cc
    HttpClient::CloseIfOutOfBandwith() - added missing loop
    break after erasure.

d0682c2... by Thomas Markwalder

[#964,!577] Added unit tests

src/lib/dhcp/tests/iface_mgr_unittest.cc
    Modified tests to verify that external socket callbacks receive
    the correct socket descriptor when invoked by IfaceMgr.

src/lib/http/tests/server_client_unittests.cc
    TEST_F(HttpClientTest, closeIfOutOfBandwidth) - new test to
    verifies HttpClient::closeIfOutOfBandwidth()

ed13fb5... by Thomas Markwalder

[#964,!577] Revamped to detect and close OOB Connections

Rather than just unregistering the socket, we now actually close
the Connection. This ensures we never end up with an unregistered
but open connection.

src/hooks/dhcp/high_availability/ha_service.*
    HAService::clientConnectHandler() - modified to call
    HttpClient::closeIfOutOfBandwidth().

src/lib/http/client.*
    Connection - replaced isTransaction(int socket_fd) with
    isMySocket(int socket_fd)

    ConnectionPool - replaced isTransaction(int socket_fd) with
    closeIfOutOfBandwidth(int socket_fd)

    HttpClient - replaced isTransaction(int socket_fd) with
    closeIfOutOfBandwidth(int socket_fd)

16f37ca... by Thomas Markwalder

[#964,!577] Added external socket ready handler to HAService

src/hooks/dhcp/high_availability/ha_service.*
    HAService::socketReadyHandler(int tcp_native_fd) - new handler for external socket ready
    callback. It detects out-of-transaction ready socket and unregisters it.

src/lib/http/client.*
    isTransactionOngoing(int socket_fd) - new method to return true if any of the clients
    connections are using the socket in an ongoing transaction

14742a0... by Thomas Markwalder

[#964,!577] Added socket descriptor parameter to IfaceMgr external callback handler

src/lib/dhcp/iface_mgr.*
    typedef SocketCallback - added socket descriptpor parameter
    Added socket fd to invocations of socket ready callback

src/bin/dhcp4/dhcp4to6_ipc.*
    void Dhcp4to6Ipc::handler(int /* fd */)

src/bin/dhcp6/dhcp6to4_ipc.*
    void Dhcp6to4Ipc::handler(int /* fd */)

     Dhcp6to4Ipc& ipc = Dhcp6to4Ipc::instance();
     Pkt6Ptr pkt;

src/hooks/dhcp/high_availability/ha_service.*
    socketReadyHandler() - initial stub implementation of socket ready handler

00fd7bc... by Francis Dupont <email address hidden>

[970-implement-multi-threading-critical-section] Removed the enabled_ local copy of the MT mode

d54a54a... by Francis Dupont <email address hidden>

[970-implement-multi-threading-critical-section] Moved to Camel names

6fe1cd7... by Francis Dupont <email address hidden>

[970-implement-multi-threading-critical-section] Finished first version