summaryrefslogtreecommitdiff
path: root/omapip/connection.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2007-05-19 18:47:15 +0000
committerDavid Hankins <dhankins@isc.org>2007-05-19 18:47:15 +0000
commitfe5b0fdd70907a228c996a0d9a2857bc90a67e6f (patch)
tree98fca773de13ea25b36a8354547aff15b4070b52 /omapip/connection.c
parent786b09305811b4f210e695961aaf3785a5d0d72d (diff)
downloadisc-dhcp-fe5b0fdd70907a228c996a0d9a2857bc90a67e6f.tar.gz
- Replaced ./configure shellscripting with GNU Autoconf. [ISC-Bugs #16405b]
- RELNOTES/README++ - s/wether/whether/ in dhcp-options.5 manpage edits.
Diffstat (limited to 'omapip/connection.c')
-rw-r--r--omapip/connection.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/omapip/connection.c b/omapip/connection.c
index 598fb86e..eeb26569 100644
--- a/omapip/connection.c
+++ b/omapip/connection.c
@@ -32,9 +32,12 @@
* ``http://www.nominum.com''.
*/
+#include "dhcpd.h"
+
#include <omapip/omapip_p.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
+#include <errno.h>
#if defined (TRACING)
@@ -187,7 +190,7 @@ isc_result_t omapi_connect_list (omapi_object_t *c,
obj -> local_addr = local_sin;
}
-#if defined (HAVE_SETFD)
+#if defined(F_SETFD)
if (fcntl (obj -> socket, F_SETFD, 1) < 0) {
close (obj -> socket);
omapi_connection_dereference (&obj, MDL);
@@ -383,9 +386,6 @@ static void trace_connect_input (trace_type_t *ttype,
lp -> state = omapi_connection_connected;
lp -> remote_addr = remote;
lp -> remote_addr.sin_family = AF_INET;
-#if defined (HAVE_SIN_LEN)
- lp -> remote_addr.sin_len = sizeof remote;
-#endif
omapi_addr_list_dereference (&lp -> connect_list, MDL);
lp -> index = connect_index;
status = omapi_signal_in ((omapi_object_t *)lp,
@@ -568,7 +568,7 @@ static isc_result_t omapi_connection_connect_internal (omapi_object_t *h)
{
int error;
omapi_connection_object_t *c;
- SOCKLEN_T sl;
+ socklen_t sl;
isc_result_t status;
if (h -> type != omapi_type_connection)