How to disconnect correctly? - PATCH PROPOSED

sscdvp at sscdvp at
Fri Feb 4 08:22:40 UTC 2011

Hi, Michael

It seems that OMAPI code completely lacks for socket disconnecting routine.
The patch against dhcp-4.2.0-P2 which solves that issue is proposed.

Use new disconnect routine like this

dhcpctl_handle connection = NULL;
isc_result_t status;

status = dhcpctl_connect (&connection,<....>);
if (status == ISC_R_SUCCESS) {
    if (connection != NULL)
        dhcpctl_handle_dereference (&connection, MDL);

Please let me know if it helped to solve your problem.

Serghei Samsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcp-4.2.0-P2-omapi-handle-disconnect-feature.patch
Type: application/octet-stream
Size: 2004 bytes
Desc: not available
URL: <>

More information about the dhcp-users mailing list