How to disconnect correctly? - PATCH PROPOSED

sscdvp at gmail.com sscdvp at gmail.com
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.

Regards,
Serghei Samsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110204/70fe37d5/attachment.html>
-------------- 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: <https://lists.isc.org/pipermail/dhcp-users/attachments/20110204/70fe37d5/attachment.obj>


More information about the dhcp-users mailing list