From: Howard Chu Date: Fri, 14 Aug 2009 20:02:08 +0000 (+0000) Subject: More for prev commit X-Git-Tag: ACLCHECK_0~330 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b87553684a928c8610f3c72aa2b7c48e8ef92c0d;p=openldap More for prev commit --- diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index ec3244c2de..49fdc271b3 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -162,7 +162,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto ) if ( ld->ld_options.ldo_keepalive_probes > 0 ) { #ifdef TCP_KEEPCNT - if ( setsockopt( s, SOL_TCP, TCP_KEEPCNT, + if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPCNT, (void*) &ld->ld_options.ldo_keepalive_probes, sizeof(ld->ld_options.ldo_keepalive_probes) ) == AC_SOCKET_ERROR ) { @@ -179,7 +179,7 @@ ldap_int_prepare_socket(LDAP *ld, int s, int proto ) if ( ld->ld_options.ldo_keepalive_interval > 0 ) { #ifdef TCP_KEEPINTVL - if ( setsockopt( s, SOL_TCP, TCP_KEEPINTVL, + if ( setsockopt( s, IPPROTO_TCP, TCP_KEEPINTVL, (void*) &ld->ld_options.ldo_keepalive_interval, sizeof(ld->ld_options.ldo_keepalive_interval) ) == AC_SOCKET_ERROR ) {